This repository contains the public npm packages and AI workflow assets for building with SELISE Blocks.
SELISE Blocks provides a CLI for project setup and administration, a framework-neutral frontend SDK for runtime application code, and a set of AI workflow skills, kept in this repository, that guide agents through supported Blocks workflows.
| Package | Source | Purpose |
|---|---|---|
@seliseblocks/cli-os |
blocks-cli |
Terminal/admin/AI control plane for auth, projects, scaffolding, Data configuration, Release operations, IAM, MFA, Auth, Mail, Notification, and Storage. |
@seliseblocks/client |
blocks-client |
Framework-neutral TypeScript SDK for frontend/runtime access to Auth, IAM, Data, Localization, Mail, MFA, and Notifier APIs. |
.
|-- blocks-cli/ # @seliseblocks/cli-os source, README, agent guide, tests
|-- blocks-client/ # @seliseblocks/client source, README, agent guide, tests
|-- blocks-skills/ # AI workflow skills (repo-only; not shipped in either package)
|-- docs/ # Cross-package documentation, including the AI routing guide
|-- AGENTS.md # Repository instructions for AI coding agents
|-- CONTRIBUTING.md # Contribution workflow
|-- CODE_OF_CONDUCT.md # Community standards
|-- SECURITY.md # Private vulnerability disclosure policy
`-- LICENSE # MIT license
Install the CLI globally when you want to operate Blocks from a terminal or automation environment:
npm install -g @seliseblocks/cli-os@latest
blocks --versionInstall the SDK inside a frontend application:
npm install @seliseblocks/client@latestBoth packages require Node.js 20 or newer.
blocks --help
blocks login
blocks auth status --json
blocks doctor --jsonThe CLI uses supported Blocks APIs and stores local auth state through OS-aware credential storage. Do not inspect local token/config files directly; use blocks auth status and blocks doctor for diagnostics.
Run blocks help for the full command reference, or see blocks-cli/README.md for setup and account/project details.
import { createBlocksClient } from "@seliseblocks/client";
const blocks = createBlocksClient({
apiUrl: "https://api.seliseblocks.com",
xBlocksKey: "<blocks-key>",
accessToken: () => currentUserSession?.accessToken,
oidc: {
url: "https://iam.seliseblocks.com",
clientId: "<public-browser-client-id>",
redirectUri: `${window.location.origin}/login/callback`
}
});See blocks-client/README.md for SDK setup and runtime examples.
AI agents should start with docs/AI_ROUTING_GUIDE.md. It routes agents based on whether they are bootstrapping setup, building a Blocks app, operating the CLI, using the SDK, or maintaining this monorepo.
Use these package-specific guides for exact contracts:
The task-level workflow skills live in blocks-skills/ in this
repository. They are not part of either npm package — copy the ones you want
into your agent's own skills directory from here.
Each skill is self-contained by design: it assumes only the installed blocks
CLI and a project-local @seliseblocks/client, and never links to a sibling
skill or to this repository's layout, so copying a single SKILL.md (plus its
flows/ folder, if it has one) is enough. blocks-skills/lint.mjs enforces
that, and runs as part of npm test.
Install workspace dependencies from the repository root:
npm installBuild all packages:
npm run buildRun all package tests:
npm testWork on a single package:
cd blocks-cli
npm test
cd ../blocks-client
npm testOn Windows PowerShell, use npm.cmd if script execution policy blocks npm.
Before publishing a package, run its local test suite and verify the tarball contents:
cd blocks-cli
npm test
npm pack --dry-run
cd ../blocks-client
npm test
npm pack --dry-runBoth packages are configured for public npm publishing through publishConfig.access = "public".
GitHub displays these root-level files automatically in the repository UI:
Please report suspected vulnerabilities privately through the process in SECURITY.md.