Skip to content
Proyectos

Acerca de

Nosana Kit

Herramientas de desarrollo

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

Nosana Kit Monorepo

Monorepo for the Nosana developer toolkit: TypeScript packages and documentation for the Nosana Network on Solana.

Packages

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.

Agent Skill

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

Requirements

  • Node.js >= 20.18.0
  • pnpm >= 9.15.0
  • TypeScript >= 5.3.0 (for development)

Development

All commands below are run from the repository root unless stated otherwise.

Setup

pnpm install
pnpm build
pnpm test

Building a subset

Build 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-deps

From a package directory:

cd packages/kit && pnpm run build:with-deps

Use pnpm build when you want everything built (e.g. before a PR or publish).

Regenerating program clients

After changing IDLs in /idl:

pnpm run generate-clients

Then run pnpm build so the rest of the workspace picks up the changes.

Development mode

Run all watch processes and the docs dev server:

pnpm dev

Run watch for a single package and its deps:

pnpm --filter @nosana/kit run dev:with-deps
pnpm --filter @nosana/docs run dev:with-deps

Lint and format

pnpm lint
pnpm format
pnpm format:fix

For one package: pnpm --filter @nosana/kit run lint (or format / format:fix).

Documentation

pnpm --filter @nosana/docs dev      # Dev server
pnpm --filter @nosana/docs build   # Production build
pnpm --filter @nosana/docs preview # Preview built docs

Scenario Testing

Run 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:down

Run 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:scenario

See @nosana/localnet for Docker validator details and @nosana/scenario for the full API reference.

License

MIT

Links

Explorar proyectos relacionados

Cargando…