Skip to content

treeseed-ai/core

Repository files navigation

@treeseed/core

@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.

What You Can Build With Core

  • 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

Install

npm install @treeseed/core @treeseed/sdk @treeseed/ui

For package development from this repository:

npm install
npm run verify:local

Use Core In A Site

A 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.

Local Development

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 --json

In the Treeseed market workspace, the web process runs from the root repo, while API and operations-runner processes run from packages/api.

How Core Fits With Other Packages

  • @treeseed/ui owns reusable components and styles.
  • @treeseed/admin owns admin routes, middleware, view models, and admin behavior.
  • @treeseed/market hosts the concrete Treeseed public site and future ecommerce.
  • @treeseed/api owns backend API, PostgreSQL, migrations, and operations runner.
  • @treeseed/sdk owns reconciliation, config, workflow, graph, and shared platform contracts.
  • @treeseed/agent owns 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.

Package Layout

  • src/: package source
  • scripts/: build, release, and verification scripts
  • test/: package tests
  • .fixtures/treeseed-fixtures/: shared integrated fixture
  • .github/workflows/: package CI and publish workflows
  • templates/github/deploy-web.workflow.yml: downstream tenant web deploy workflow template

Commands

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:local

The direct verification chain is:

  1. build distributable dist/
  2. run unit tests
  3. run Astro check against the shared fixture
  4. build the fixture app
  5. run packed-install smoke tests

Shared Fixture

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.

GitHub Actions And Release

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:publish

The publish workflow expects NPM_TOKEN in the package repository GitHub production environment.

What Core Does Not Own

  • 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.

About

TreeSeed Core Application Platform

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors