npm.io
0.2.2 • Published 1 week ago

@spacefast/common

Licence
MIT
Version
0.2.2
Deps
7
Size
3.8 MB
Vulns
0
Weekly
0

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

Use 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/common

Exports

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.

Documentation