A git submodule-based monorepo for the Recoup platform.
# Clone with submodules
git clone --recurse-submodules [email protected]:Recoupable-com/Recoup-Monorepo.git
# Or if already cloned, initialize submodules
git submodule update --init --recursive| Submodule | Description | Tech Stack |
|---|---|---|
Recoup-Chat |
Main chat application | Next.js 16, React 19, Vercel AI SDK, Stagehand |
Recoup-API |
API service with payment middleware | Next.js 16, x402-next, Supabase |
Recoup-Tasks |
Background job workers | Trigger.dev v4 |
Recoup-Docs |
API documentation | Mintlify |
Recoup-Supabase |
Database migrations | Supabase CLI |
This monorepo is designed for LLM-assisted development. Each submodule contains its own CLAUDE.md with project-specific context and instructions.
CLAUDE.md(root): Monorepo-wide guidance, git workflow, cross-project architecture- Each submodule's
CLAUDE.md: Project-specific build commands, patterns, and conventions - API Docs: https://developers.recoupable.com (LLM-readable)
- Start with context: Point your LLM to
CLAUDE.mdat the root for overall guidance - Work in submodules: Each submodule is an independent git repo - cd into the relevant folder
- Branch workflow: Never push directly to
main. Use feature branches and PRs - Special branches:
Recoup-APIandRecoup-Chathave atestbranch - PRs should targettest, notmain
Recoup-Chat (frontend) → Recoup-API (backend) → Supabase (database)
↓
Recoup-Tasks (async jobs)
All projects use pnpm:
pnpm install # Install dependencies
pnpm dev # Start dev server
pnpm build # Production build
pnpm lint # Fix lint issues
pnpm format # Run prettier