Monorepo for the Nosana developer toolkit: TypeScript packages and documentation for the Nosana Network on Solana.
| Package | Description |
|---|---|
| @nosana/kit | Main SDK for jobs, markets, runs, staking, IPFS, and API integration. Start here for building on Nosana. |
| @nosana/types | Shared types and schemas. |
| @nosana/api | Nosana API client. |
| @nosana/authorization | Message signing and validation for API auth. |
| @nosana/connect | "Connect with Nosana" OAuth 2.1 / OIDC client for third-party apps. |
| @nosana/endpoints | Endpoint and environment configuration. |
| @nosana/ipfs | IPFS pinning and retrieval. |
| @nosana/ssh | SSH key pairs, key validation and node access for jobs. |
| @nosana/jobs-program | Generated Solana jobs program client. |
| @nosana/stake-program | Generated Solana stake program client. |
| @nosana/merkle-distributor-program | Generated Solana merkle distributor program client. |
| @nosana/rewards-program | Generated Solana rewards program client. |
| @nosana/pools-program | Generated Solana pools program client. |
| @nosana/localnet | Docker-based Solana test validator with pre-baked Nosana programs. |
| @nosana/scenario | Network-aware scenario test helpers (localnet / devnet / mainnet). |
| @nosana/docs | Documentation site (VitePress). |
For detailed SDK usage, see the Nosana Kit README.
packages/skills is a Claude Code plugin that teaches AI
coding agents to deploy and monitor Nosana workloads. It is not published to npm.
Install it by typing these at the Claude Code prompt (not in your shell):
/plugin marketplace add nosana-ci/nosana-kit
/plugin install nosana@nosana
- Node.js >= 20.18.0
- pnpm >= 9.15.0
- TypeScript >= 5.3.0 (for development)
All commands below are run from the repository root unless stated otherwise.
pnpm install
pnpm build
pnpm testBuild only a package and its workspace dependencies:
# Kit and its deps (generated clients), skip docs
pnpm --filter @nosana/kit run build:with-deps
# Docs (builds kit first, then docs)
pnpm --filter @nosana/docs run build:with-depsFrom a package directory:
cd packages/kit && pnpm run build:with-depsUse pnpm build when you want everything built (e.g. before a PR or publish).
After changing IDLs in /idl:
pnpm run generate-clientsThen run pnpm build so the rest of the workspace picks up the changes.
Run all watch processes and the docs dev server:
pnpm devRun watch for a single package and its deps:
pnpm --filter @nosana/kit run dev:with-deps
pnpm --filter @nosana/docs run dev:with-depspnpm lint
pnpm format
pnpm format:fixFor one package: pnpm --filter @nosana/kit run lint (or format / format:fix).
pnpm --filter @nosana/docs dev # Dev server
pnpm --filter @nosana/docs build # Production build
pnpm --filter @nosana/docs preview # Preview built docsRun SDK integration tests against a local Solana validator with pre-baked Nosana programs:
# Start localnet and run scenario tests
pnpm --filter @nosana/scenario run test:scenario:localnet
# Or manage the validator manually
pnpm --filter @nosana/scenario run localnet:up
pnpm --filter @nosana/scenario run test:scenario
pnpm --filter @nosana/scenario run localnet:downRun the same tests against devnet or mainnet by setting environment variables:
NOSANA_NETWORK=devnet NOSANA_WALLET=~/.config/solana/id.json pnpm --filter @nosana/scenario run test:scenarioSee @nosana/localnet for Docker validator details and @nosana/scenario for the full API reference.
MIT