@treeseed/core is the Treeseed web runtime for Astro/Starlight sites. Use it when you want a Treeseed-compatible site that can load tenant configuration, compose package plugins, render content, run local development, and participate in Treeseed web hosting workflows.
Core is not the admin portal and is not the reusable component library. @treeseed/admin contributes admin routes, and @treeseed/ui contributes layout-down components and styles.
- Treeseed-compatible Astro/Starlight sites
- host applications that layer packages through
treeseed.site.yaml - local development sessions through
trsd dev - web-only Cloudflare hosting surfaces
- content and site runtime integration for Treeseed tenants
npm install @treeseed/core @treeseed/sdk @treeseed/uiFor package development from this repository:
npm install
npm run verify:localA host site declares plugins in treeseed.site.yaml:
plugins:
- package: "@treeseed/core/plugin-default"
- package: "@treeseed/admin/plugin"Core loads site layers, resolves routes, merges plugin hooks, and builds the Astro config used by the host app. The host app still owns deployment, tenant config, content, and branding.
The installable CLI delegates local web runtime orchestration to Core:
npx trsd dev
npx trsd dev start --web-runtime local --json
npx trsd dev status --all --json
npx trsd dev logs --follow
npx trsd dev stop --jsonIn the Treeseed market workspace, the web process runs from the root repo, while API and operations-runner processes run from packages/api.
@treeseed/uiowns reusable components and styles.@treeseed/adminowns admin routes, middleware, view models, and admin behavior.@treeseed/markethosts the concrete Treeseed public site and future ecommerce.@treeseed/apiowns backend API, PostgreSQL, migrations, and operations runner.@treeseed/sdkowns reconciliation, config, workflow, graph, and shared platform contracts.@treeseed/agentowns capacity-provider runtime.- TreeDX is consumed through SDK/API integration when repository intelligence is configured.
Core should stay reusable as a web runtime package and should not duplicate admin, API, agent, or market business logic.
src/: package sourcescripts/: build, release, and verification scriptstest/: package tests.fixtures/treeseed-fixtures/: shared integrated fixture.github/workflows/: package CI and publish workflowstemplates/github/deploy-web.workflow.yml: downstream tenant web deploy workflow template
npm run dev
npm run dev:web
npm run fixtures:check
npm run build:dist
npm run test:unit
npm run check
npm run build
npm run test:smoke
npm run verify:localThe direct verification chain is:
- build distributable
dist/ - run unit tests
- run Astro check against the shared fixture
- build the fixture app
- run packed-install smoke tests
Core validates itself against the integrated shared fixture rather than a Core-specific fork. The fixture may reference SDK, Core, Admin, UI, API, CLI, and Agent surfaces where the canonical integrated project genuinely uses them. Package verification adapts to the fixture; it must not rewrite the fixture to satisfy one package.
Package workflows verify and publish the package from this repository. The downstream web deploy workflow template is for host applications, not for publishing Core.
npm run release:check-tag -- 0.1.0
npm run release:publishThe publish workflow expects NPM_TOKEN in the package repository GitHub production environment.
- reusable layout-down UI primitives; use
@treeseed/ui - admin routes, auth/session UI, admin middleware, or admin view models; use
@treeseed/admin - backend API implementation, PostgreSQL, operations runner, or migrations; use
@treeseed/api - capacity provider runtime; use
@treeseed/agent - checkout, billing, licensing, or marketplace policy; use root market/future commerce plugin
- TreeDX service implementation
See the root Package Ownership guide for the full package map.