@spacefast/common
v0.0.12
Published
Shared TypeScript contracts and utilities for Spacefast packages.
Readme
@spacefast/common
Shared TypeScript contracts and utilities used by Spacefast first-party packages.
Most users should install the CLI or framework integrations instead:
curl -fsSL https://spacefast.com/install.sh | bashUse this package directly only when you are building against Spacefast contracts or need the same validation helpers used by the CLI and dashboard.
Install
npm install @spacefast/commonExports
import { spacePatchSchema } from "@spacefast/common/contracts/spaces";
import { detectSpaFromPaths } from "@spacefast/common/utils/publish-detection";The public exports are grouped by concern:
@spacefast/common/contracts/*for shared API and CLI schemas.@spacefast/common/utils/*for small helpers used across Spacefast packages.@spacefast/common/docs/*for agent-facing setup text used by Spacefast surfaces.
This package is public so the Spacefast CLI and plugins can install cleanly from npm. It is still an implementation package: prefer documented CLI and API surfaces unless you need these exact contracts.
