create-davepi-app
v0.6.2
Published
Scaffolder for new dAvePi projects. Run: npx create-davepi-app <name> [--template <name>]
Maintainers
Readme
create-davepi-app
Scaffold a new dAvePi project in one command.
npx create-davepi-app my-app
npx create-davepi-app my-crm --template crm
npx create-davepi-app my-tickets --template ticketing
npx create-davepi-app my-blog --template contentTemplates
| Template | What you get |
|----------|--------------|
| blank | Minimal — one resource (note) with full-text search. |
| crm | Accounts / contacts / deals (state machine) / activities. Showcases relations, computed fields, file uploads, aggregations. |
| ticketing | Tickets with two state machines (status + priority) plus comments. Showcases ACL on a comment field. |
| content | Blog / CMS skeleton: articles (editorial workflow), categories, hero image uploads, computed slugs. |
| content-team | CMS plus a multi-agent team: a leader (content-lead) decomposes a content goal and delegates to researcher / writer / editor specialists in parallel, assesses their work, and iterates. Showcases @davepi/agent team delegation, the bundled learning-layer schemas (persona / memory / skill / conversation), a shared contentTask board, and governed runbooks. |
| b2b-saas | Multi-tenant SaaS skeleton: orgs / workspaces / invites (state machine) / billing-event ledger with monthly aggregations. |
| hr | HR system — employees (field-level PII ACL), leave & expense approval workflows, policy library, append-only audit log, accountant CSV exports, plus OAuth/object-storage/cron/audit plugins and two cron jobs. Ships a custom index.js. |
| workout | Subscription AI workout coach — program builder, calendar scheduling, live session logging with automatic PR detection, progress aggregations, a readiness-driven autoregulation engine, persistent athlete memory, and a negotiable coaching log. Agent-first (every resource is an MCP tool), Stripe-gated premium coaching, two cron jobs, custom index.js. |
What's scaffolded
my-app/
├── .env # random TOKEN_KEY, local Mongo URI
├── .gitignore
├── .mcp.json # Claude Code wiring, ready to go
├── .cursorrules # mirrors agent.md for Cursor
├── README.md
├── TEMPLATE.md # walkthrough of the chosen template's schemas
├── agent.md # drop-in agent guide
├── docker-compose.yml # local Mongo
├── index.js # `require('davepi')`
├── package.json
└── schema/
└── versions/
└── v1/
└── *.js # the template's resource definitionsFlags
| Flag | Default | Effect |
|------|---------|--------|
| --template <name> | blank | Pick the starter from the table above. |
| --no-install | (run install) | Skip npm install. |
| --davepi-version <range> | latest | Pin a specific dAvePi version in the generated package.json. |
Next steps after scaffolding
cd my-app
docker compose up -d # start Mongo
npm start # http://localhost:5050Then open the project in Claude Code or Cursor — the MCP server is already wired and the agent guide lives at agent.md. Ask the agent to add a resource and watch it land via hot-reload.
