open-index/open-npm huggingface dataset:
npm package: @nodes/sdk
Description: Nodes platform SDK and CLI
Latest version: 0.0.1

# @nodes/sdk

Nodes platform SDK and CLI. Connects to Nodes via MCP.

**Status: WIP — API may change.**

## Install

```bash
npm install @nodes/sdk
```

## Usage

```ts
import { NodesClient } from '@nodes/sdk'

const nodes = new NodesClient({
  url: 'https://nodes.ws',
  apiKey: process.env.NODES_API_KEY,
})

await nodes.page.read(nodeId)
await nodes.page.write({ parentId, name: 'New Page', markdown: '# Hello' })
await nodes.tree.list(parentId)
```

## CLI

```bash
NODES_API_KEY=... nd page read <nodeId>
```