npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sperax/tool-notebook

v0.2.2

Published

Create and manage documents in the topic notebook — an agent tool for SperaxOS.

Downloads

621

Readme

@sperax/tool-notebook

Create and manage documents in the topic notebook

Notebook is an agent tool from SperaxOS, packaged headless so you can call it from any agent framework. It ships two things: the manifest — a JSON-Schema function definition a model can call — and the executor that runs the call against the real API.

There is no UI layer and no framework lock-in. It works anywhere TypeScript runs.

Install

npm install @sperax/tool-notebook

Usage

import { NotebookManifest } from '@sperax/tool-notebook';

// NotebookManifest.api is a JSON-Schema tool definition, ready to hand to any model.

Every executor returns a BuiltinToolResult{ success, content, state }. content is prose written for the model to read; state is the typed data payload for your own code. Executors never throw: a failed call comes back as { success: false, content: '<reason>' }, so a network blip degrades the answer instead of crashing the agent loop.

Configuration

None. This tool calls a public API directly and needs no key or origin configuration.

Tool identifier

sperax-notebook

API reference

createDocument

Create a new document in the notebook. Use this to save reports, notes, articles, or any content that should persist in the topic.

| Parameter | Type | Required | Description | | --- | --- | --- | --- | | content | string | yes | The document content in Markdown format | | description | string | yes | A brief summary of the document (1-2 sentences) | | title | string | yes | A descriptive title for the document | | type | markdown | note | report | article | no | The type of document |

updateDocument

Update an existing document. Can modify title, content, or append new content to existing document.

| Parameter | Type | Required | Description | | --- | --- | --- | --- | | append | boolean | no | If true, append content to existing document instead of replacing | | content | string | no | New content for the document | | id | string | yes | The document ID to update | | title | string | no | New title for the document |

getDocument

Retrieve the full content of a specific document from the notebook.

| Parameter | Type | Required | Description | | --- | --- | --- | --- | | id | string | yes | The document ID to retrieve |

deleteDocument

Delete a document from the notebook. This action cannot be undone.

| Parameter | Type | Required | Description | | --- | --- | --- | --- | | id | string | yes | The document ID to delete |

Types

Shared types come from @sperax/agent-tools-core: BuiltinToolManifest, BuiltinToolResult, BuiltinToolContext, and the BaseExecutor class every tool executor extends.

Related

License

Apache-2.0