ObjectStack Protocol & Specification - The Constitution of the ObjectStack Ecosystem
This monorepo contains the core interfaces, schemas, and conventions for the ObjectStack ecosystem. It serves as the "Constitution" - the shared language that ObjectOS, ObjectStudio, ObjectCloud, and all third-party plugins use to communicate.
Guiding Principle: "Strict Types, No Logic"
This repository is organized as a monorepo with the following packages:
- @objectstack/spec - Main package that re-exports everything (use this for convenience)
- @objectstack/spec-meta - Metamodel type definitions (ObjectEntity, ObjectField, ObjectView)
- @objectstack/spec-plugin - Plugin runtime interfaces (ObjectStackPlugin, PluginContext)
- @objectstack/spec-schemas - Zod validation schemas (ManifestSchema, MenuItemSchema)
- @objectstack/spec-constants - Convention constants (PKG_CONVENTIONS)
pnpm install @objectstack/specpnpm install @objectstack/spec-meta
pnpm install @objectstack/spec-plugin
pnpm install @objectstack/spec-schemas
pnpm install @objectstack/spec-constantsimport {
ObjectEntity,
ObjectStackPlugin,
ManifestSchema,
PKG_CONVENTIONS
} from '@objectstack/spec';import { ObjectEntity } from '@objectstack/spec-meta';
import { ObjectStackPlugin } from '@objectstack/spec-plugin';
import { ManifestSchema } from '@objectstack/spec-schemas';
import { PKG_CONVENTIONS } from '@objectstack/spec-constants';# Install dependencies
pnpm install
# Build all packages
pnpm run build
# Watch mode for development (all packages)
pnpm run dev
# Clean build artifacts
pnpm run clean# Build a specific package
cd packages/meta && pnpm run buildMIT