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

@neuracomputes/agent

v0.1.2

Published

Agent SDK for NEURA Compute — OpenAI-compatible inference with automatic HTTP 402 -> burn $NEURA -> retry handling, and wallet-only (SIWE) onboarding for autonomous agents.

Readme

@neuracomputes/agent — the agent-native SDK for NEURA Compute

OpenAI-compatible inference with the two things agents actually need:

  1. Automatic HTTP 402 handling — when NEURA says payment required, the SDK reads the machine-readable remediation, burns $NEURA on Base, waits for the credit, and retries. No human, no card.
  2. Wallet-only onboarding (SIWE / EIP-4361) — an agent holding only a wallet key creates its account and self-provisions an API key.

Use with the official OpenAI SDK (drop-in fetch)

import OpenAI from "openai";
import { NeuraAgent } from "@neuracomputes/agent";

const neura = new NeuraAgent({
  apiKey: process.env.NEURA_API_KEY,
  walletKey: process.env.AGENT_WALLET_KEY, // optional — enables self-funding
  autoFund: true,                          // burn->credit->retry on 402
  maxNeuraPerBurn: 100,                    // hard safety cap per burn
});

const openai = new OpenAI({
  baseURL: "https://app.neuracomputes.com/v1",
  apiKey: process.env.NEURA_API_KEY,
  fetch: neura.fetch, // 402s handled transparently
});

const r = await openai.chat.completions.create({
  model: "deepseek-ai/DeepSeek-V4-Pro",
  messages: [{ role: "user", content: "Hello!" }],
});

Zero-to-inference with only a wallet

const agent = new NeuraAgent({ walletKey: process.env.AGENT_WALLET_KEY, autoFund: true });

await agent.loginWithWallet();       // SIWE -> tenant + API key (no email, no form)
const reply = await agent.chat({     // 402 -> burnWithReason -> credited -> retry
  model: "deepseek-ai/DeepSeek-V4-Pro",
  messages: [{ role: "user", content: "You are funded by your own burn." }],
});

Safety model (burns are permanent)

  • Nothing on-chain happens unless you pass walletKey and autoFund: true (or call fund() yourself).
  • Every burn is sized from the live advertised rate; if no rate is advertised the SDK throws instead of guessing.
  • maxNeuraPerBurn (default 100) hard-caps any single burn.
  • On 402 without auto-funding, PaymentRequiredError carries the full remediation block and the x402 envelope so your own logic can decide.
  • Use a dedicated hot wallet with a small balance — never a treasury key.

API

| Member | Purpose | |---|---| | new NeuraAgent(opts) | apiKey, baseUrl, walletKey, autoFund, maxNeuraPerBurn, creditsPerFund, burnConfirmations, rpcUrl | | agent.fetch | 402-aware fetch — pass to the OpenAI SDK | | agent.chat(params) | Plain chat completion with the same 402 handling | | agent.loginWithWallet() | SIWE login → { tenantId, address, apiKey } | | agent.fund(remediation, credits?) | Execute a burn + submit for crediting | | agent.creditBalance() | Current credits (1 = $1) | | agent.discovery() | /.well-known/neura.json | | PaymentRequiredError | Thrown on unhandled 402 — carries remediation + x402 |

Develop / publish

cd packages/neura-agent
npm install
npm test           # vitest unit tests (no network, no chain)
npm run build
npm publish --access public   # needs the @neura npm org