ObjectStack Templates
Official starter templates for ObjectStack โ production-shaped scaffolds users adopt via the CLI.
pnpm dlx @objectstack/cli create my-app --template todo
Built for AI-native development
ObjectStack is designed from the ground up to be authored, extended, and
operated by AI agents alongside humans. Every primitive โ objects, views,
flows, formulas, permissions, i18n โ is a small, declarative TypeScript file
that an LLM can read, diff, and safely modify without breaking the runtime.
- Skill bundle for agents. The companion
objectstack-ai/framework
ships a set of authoring skills (objectstack-data, objectstack-query,
objectstack-ui, objectstack-automation, objectstack-formula,
objectstack-i18n, objectstack-api, objectstack-platform, objectstack-ai)
that teach Copilot CLI / Claude Code / Cursor / Codex exactly how to write
*.object.ts, *.view.ts, *.flow.ts, etc. โ install once and every
ObjectStack project on your machine becomes agent-ready.
- Deterministic, diff-friendly metadata. Schema, UI, automation, and
permissions all live in versioned source files โ no opaque database state โ
so an agent's change is reviewable in a normal PR.
- First-class AI runtime.
@objectstack/ai gives every object built-in
embeddings, semantic search, RAG, agent tools, and MCP integration; flows can
call LLMs as just another step.
- 100% AI-built templates. Every template in this repo (todo, contracts,
procurement, compliance, helpdesk, content, hr, project, โฆ) was designed,
scaffolded, and iterated end-to-end with AI agents driving the ObjectStack
skill bundle โ they are both useful starters and worked examples of what
AI-driven product development on ObjectStack looks like in practice.
Install the skills (see below)
and your agent can extend any of these templates โ add an object, wire a
flow, ship a new view โ using the same conventions we used to build them.
Available templates
| Template |
Domain |
Status |
Port |
Try it |
packages/todo/ |
Task & project management โ the universal starter |
โ
ready |
4002 |
 |
packages/contracts/ |
Post-signature contract lifecycle (CLM) โ AI-extracted metadata, approvals, renewal alerts |
โ
v0 |
4003 |
 |
packages/procurement/ |
Vendors, purchase requests, POs, goods receipt, 3-way-match rollup |
โ
v0 |
4004 |
 |
packages/compliance/ |
SOC 2 / ISO 27001 controls, evidence with expiry, assessments |
โ
v0 |
4005 |
 |
packages/helpdesk/ |
Customer support โ tickets, SLA, escalation, KB, portal; AI triage scaffolded |
โ
v0 |
4006 |
 |
packages/content/ |
Content marketing engine โ editorial calendar, competitive signals, channel ROI, 8-state piece lifecycle |
โ
v0 |
4008 |
 |
packages/hr/ |
People Ops โ employee directory, org chart, time-off approvals, document expiry alerts |
โ
v0 |
4009 |
 |
packages/project/ |
Project Management โ PMO portfolio, milestones, risks; AI forecasting scaffolded |
๐ง v0.1-wip |
4010 |
 |
packages/expense/ |
Employee expense & reimbursement โ multi-line reports, category policy, amount-tiered approval, reimbursement tracking |
โ
v0 |
4011 |
 |
packages/sales-pipeline/ |
Lite CRM (leads, opportunities, accounts) |
๐ง planned |
4007 |
โ |
๐ Planned work โ including the AI implementation plan (several templates ship AI as a scaffold today) โ lives in docs/ROADMAP.md.
Run them all at once
Want every template in one runtime, one app launcher โ as if you installed
them all together from the marketplace? Use the all aggregator:
pnpm dev:all # builds every template, composes them, boots on :4000
It compiles each template's artifact into a single environment bundle and
serves it (admin: admin@objectos.ai / admin123). See
packages/all/ for how composition happens at the
environment layer without breaking the one-app-per-package rule (ADR-0019).
StackBlitz tip: every template runs in the browser via @objectstack/driver-sqlite-wasm (sql.js). Local dev still uses better-sqlite3 (listed as an optional dependency) for full native speed.
Looking for a full reference app? See hotcrm โ the production-grade CRM built on the same engine.
What a template is
| โ
Yes |
โ No |
| One opinionated capability |
A generic framework demo |
| < 2500 LOC, readable in one sitting |
A reference of every feature |
| Production-shaped (state machines, permissions, i18n, audit) |
Throwaway / sample-only |
| Easy to delete what you don't need |
Tightly coupled |
Every template:
- depends on published
@objectstack/* packages (no workspace links to the framework)
- ships its own
README.md, CHARTER.md, and i18n
- boots standalone with
pnpm install && pnpm dev in under a minute
Repo layout
templates/
โโโ packages/
โ โโโ <name>/ # one template = one package = @objectlab/<name>
โ โโโ src/
โ โโโ CHARTER.md # scope + hard limits (required)
โ โโโ README.md # for the end user
โ โโโ objectstack.config.ts
โ โโโ package.json
โโโ .github/
โ โโโ workflows/ # ci.yml (verify + smoke), publish.yml (marketplace)
โ โโโ dependabot.yml
โโโ CONTRIBUTING.md # conventions for contributors (incl. AI agents)
โโโ TEMPLATE_GUIDE.md # how to author a template
โโโ CHANGELOG.md
โโโ pnpm-workspace.yaml
โโโ README.md
Quick start (contributors)
Requires Node โฅ 20 and pnpm โฅ 10.
pnpm install
pnpm --filter @objectlab/todo dev # http://localhost:4002
pnpm typecheck
pnpm format
Reset a template's local SQLite database:
rm -rf packages/todo/.objectstack
Install ObjectStack skills (for AI agents)
If you're working on this repo with an AI coding agent (Copilot CLI, Claude
Code, Cursor, etc.), install the ObjectStack authoring skills globally so the
agent picks up the framework conventions automatically:
npx skills add objectstack-ai/framework
This installs the objectstack-* skill bundle (data, query, ui, automation,
formula, i18n, api, platform, ai) into your user-level skills directory and
makes them available across every project on your machine.
Contributing
- Read
CONTRIBUTING.md for the workflow.
- Read
TEMPLATE_GUIDE.md before adding a new template โ it documents file suffixes, hard limits, schema gotchas, and the build-order playbook.
Push to main. CI must be green.
Adding a new template (TL;DR)
cp -r packages/todo packages/<your-template>
# edit package.json: name โ @objectlab/<your-template>, port โ next free
# edit package.json: objectstack.marketplace.{manifestId,displayName,description,iconUrl,โฆ}
# edit objectstack.config.ts: namespace, port
# rewrite CHARTER.md with your scope
# build out src/ following the order in TEMPLATE_GUIDE.md
# add row to the table above
pnpm install
pnpm --filter @objectlab/<your-template> dev
Publishing to the marketplace
Publishing is explicit โ there's no auto-publish on push. Two ways
to trigger .github/workflows/publish.yml:
- Actions โ Publish to marketplace โ Run workflow (with optional
dry_run to inspect the payload first).
- Create a GitHub Release with a tag like
todo-v0.2.0 โ the
workflow narrows the publish to that template via the tag pattern.
Re-running is idempotent โ the version endpoint returns 409 for any
(package, version) pair that already exists, so unchanged templates are
reported as skipped rather than failing.
See docs/PUBLISHING.md for the full contract,
required GitHub Secrets (OS_CLOUD_API_KEY) / Variables (OS_CLOUD_URL),
local dry-run, and failure modes.
Ports
| Range |
Owner |
| 3000โ3002 |
framework/ engine + studio |
| 4001 |
hotcrm/ production reference |
| 4002+ |
templates (one port per template) |
Related repos
framework โ runtime, spec, CLI, studio
hotcrm โ production CRM reference app
docs โ platform documentation
License
Apache-2.0