Directory Layout
Apps
Each app is independently deployable:| App | Purpose | Deployment |
|---|---|---|
publisher | Blog network frontend | Vercel |
platform | Creator tools portal | Vercel |
agency | Client dashboard | Vercel |
dashboard | Main dashboard | Vercel |
mcp (in services/) | MCP tools API | Cloudflare Workers |
docs | Documentation site | Mintlify |
Packages
Shared code imported by apps:@trendingsociety/db
Supabase client and TypeScript types:
@trendingsociety/ui
Shared React components:
@trendingsociety/content-engine
Content generation utilities:
Key Files
| File | Purpose |
|---|---|
AGENTS.md | AI agent capabilities, delegation rules |
SCHEMA.md | Database table documentation |
turbo.json | Build pipeline configuration |
.cursorrules | Cursor AI instructions |
.mcp.json | MCP server configuration |
Package Management
We use pnpm workspaces with Turborepo for:- Efficient dependency hoisting
- Parallel builds
- Incremental caching
- Dependency graph awareness
Common Commands
Adding New Apps
-
Create folder in
apps/: -
Add
package.json: -
Import shared packages:
-
Add app-specific tables with
{appname}_prefix
Adding Apps Guide
Step-by-step guide for new applications