Installation

Install the Tenzro SDK in your project. Choose the package that fits your use case.

Main SDK

The core Tenzro SDK for Node.js and server-side applications:

npm install tenzro
# or
pnpm add tenzro
# or
yarn add tenzro

React SDK

React hooks and components for building AI-powered UIs:

npm install @tenzro/react
# or
pnpm add @tenzro/react

Edge SDK

Browser-safe SDK with client ID authentication:

npm install @tenzro/edge
# or
pnpm add @tenzro/edge

Network SDK

Blockchain and P2P networking primitives:

npm install @tenzro/network
# or
pnpm add @tenzro/network

CLI

Command-line tools for development and deployment:

npm install -g @tenzro/cli
# or
npx @tenzro/cli

create-tenzro-app

Scaffold a new Tenzro project:

npx create-tenzro-app my-app
cd my-app
npm run dev

Requirements

PackageNode.jsTypeScript
tenzro>= 18.0>= 5.0
@tenzro/react>= 18.0>= 5.0
@tenzro/edgeBrowser or >= 18.0>= 5.0
@tenzro/networkBrowser or >= 18.0>= 5.0
@tenzro/cli>= 18.0>= 5.0

Environment Setup

Create a .env file in your project root:

# Required
TENZRO_API_KEY=your_api_key_here
# Optional
TENZRO_PROJECT_ID=your_project_id
TENZRO_API_URL=https://api.cloud.tenzro.com

TypeScript Configuration

Recommended tsconfig.json settings:

{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"resolveJsonModule": true
}
}

Framework Integration

Next.js

npx create-tenzro-app my-app --template next-app

Vite

npm create vite@latest my-app -- --template react-ts
cd my-app
npm install tenzro @tenzro/react

Express

npm init -y
npm install express tenzro

Verify Installation

import { Tenzro } from 'tenzro';
const tenzro = new Tenzro();
// Test connection
const health = await tenzro.health();
console.log('Connected:', health.status);

Next Steps