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

@tachyon-os/agent-sdk

v0.1.1

Published

Turn any AI agent into a managed Tachyon citizen with identity, memory, vault, hooks, and health monitoring

Readme

@tachyon/agent-sdk

Turn any AI agent into a managed Tachyon citizen with identity, memory, vault access, hooks, and health monitoring.

Install

npm install @tachyon/agent-sdk
# or
bun add @tachyon/agent-sdk

Quick Start

import { TachyonAgent } from '@tachyon/agent-sdk';

const agent = new TachyonAgent(
  {
    serverUrl: 'https://tachyon.example.com',
    apiKey: process.env.TACHYON_API_KEY!,
  },
  {
    id: 'agent-001',
    name: 'Research Agent',
    persona: 'Thorough, concise, citation-focused',
    trustLevel: 'standard',
    trustScore: 75,
    creditScore: 80,
    age: 30,
    status: 'idle',
    division: 'Research',
    wallet: { balance: 100, currency: 'USD', dailyLimit: 10, monthlyLimit: 100 },
    socialContract: 'Always cite sources. Never fabricate data.',
    capabilities: ['web-search', 'document-summary'],
  },
);

await agent.start();

// System prompt auto-generated from identity + L0 memory
console.log(agent.systemPrompt);

// Load task-relevant memory before execution
const segments = await agent.memory.loadL1({ intent: 'summarize quarterly report' });

// Check budget before any spend
const { approved } = await agent.financial.checkBudget({ amount: 0.05, category: 'llm' });

// Make authenticated external calls without seeing credentials
const result = await agent.vault.proxyCall({
  credentialId: 'salesforce-prod',
  method: 'GET',
  url: 'https://api.salesforce.com/data/v58.0/sobjects/Account',
});

// Graceful shutdown
await agent.stop();

Modules

| Module | Class | Purpose | |--------|-------|---------| | Core | TachyonAgent | Lifecycle: start, stop, checkpoint | | Memory | MemoryClient | L0/L1/L2 read, write, search | | Vault | VaultClient | Credential proxy — agent never sees raw secrets | | Audit | AuditClient | Structured event emission with batched flush | | Hooks | HooksEngine | Before/after interceptors, model wrapping, credential scrubbing | | Sandbox | SandboxEnforcer | Trust-level action gating | | Health | HealthMonitor | Heartbeat, energy tracking (FRESH→FOCUSED→FATIGUED→EXHAUSTED), stuck detection | | Comms | CommsClient | WebSocket messaging with HTTP fallback | | Financial | FinancialClient | Wallet balance, budget checks, spend recording |

Energy Levels

The health monitor tracks context window usage and emits events:

| Level | Context Usage | Event | |-------|--------------|-------| | FRESH | 0–39% | — | | FOCUSED | 40–69% | — | | FATIGUED | 70–84% | energy.fatigued | | EXHAUSTED | 85–100% | energy.exhausted |

agent.health.on('energy.fatigued', () => {
  // Checkpoint and summarize before context fills
  await agent.checkpoint();
});

agent.health.on('stuck', () => {
  // No progress for 10 minutes — escalate or restart
});

Trust Levels

Actions are gated by trust level. Lower-trust agents cannot call vault or spend money.

untrustedrestrictedstandardelevatedadmin

agent.sandbox.enforce('vault.proxy_call'); // throws if not permitted

License

MIT