Skip to content

objectstack-ai/templates

Repository files navigation

ObjectStack Templates

CI License: Apache-2.0 Node >=20

Official starter templates for ObjectStack β€” production-shaped scaffolds users adopt via the CLI.

pnpm dlx @objectstack/cli create my-app --template todo

Available templates

Template Domain Status Port
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/content/ Content marketing engine β€” editorial calendar, competitive signals, channel ROI, 8-state piece lifecycle βœ… v0 4008
packages/helpdesk/ Ticketing, SLA, knowledge base 🚧 planned 4006
packages/sales-pipeline/ Lite CRM (leads, opportunities, accounts) 🚧 planned 4007

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 = @template/<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 @template/todo dev   # http://localhost:4002
pnpm typecheck
pnpm format

Reset a template's local SQLite database:

rm -rf packages/todo/.objectstack

Contributing

  1. Read CONTRIBUTING.md for the workflow.
  2. 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 β†’ @template/<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 @template/<your-template> dev

Publishing to the marketplace

Push to main β†’ .github/workflows/publish.yml rebuilds every template and POSTs each one to the cloud control plane (POST /api/v1/cloud/packages

  • POST /api/v1/cloud/packages/:id/versions). Re-running is idempotent β€” the version endpoint returns 409 when the (package, version) pair already exists and the script reports skipped.

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

About

πŸ“¦ A collection of small, ready-to-deploy application templates for the ObjectStack cloud marketplace.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors