Skip to main content
This example uses examples/node/agent_deployments/typescript_service/nullspace.agent.toml to package a TypeScript service, build it with npm run build, and expose it through a Nullspace service URL.

Setup

python -m pip install "nullspace-sdk[cli]==0.1.9"
export NULLSPACE_API_KEY=ns_live_...
export NULLSPACE_API_URL=https://api.your-nullspace-domain
cd examples/node/agent_deployments/typescript_service

CLI

nullspace agent deploy .

nullspace agent url typescript-agent-service

nullspace agent status typescript-agent-service --service adsvc_123
nullspace agent logs typescript-agent-service --service adsvc_123
nullspace agent stop typescript-agent-service
The service exposes /health and /invoke.

Config

name = "typescript-agent-service"
mode = "service"
install = "npm install"
entrypoint = "npm run start"

[service]
port = 8000
readiness = { type = "http", path = "/health", timeout_seconds = 30 }

[permissions]
public_url = true

Project Files

examples/node/agent_deployments/typescript_service/
  README.md
  package.json
  tsconfig.json
  nullspace.agent.toml
  src/server.ts
Related: Agent Deployments and Preview URLs.