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

@t2000/engine

v4.3.1

Published

Agent engine for conversational finance — AISDKEngine (wraps Vercel AI SDK v6 `streamText`) with 26 tools (18 read, 8 write), 12-guard runner across 3 priority tiers, silent intelligence layer, streaming, canvas, BlockVision-backed pricing. Chat-first by

Downloads

21,513

Readme

@t2000/engine

The agent engine for conversational finance on Sui. AISDKEngine orchestrates LLM conversations, 26 financial tools, user confirmations, and MCP integrations into a single async-generator loop. Powers Audric.

npm @t2000/engine npm @t2000/sdk docs license

Not a chatbot. A financial agent. Four systems work together to understand the user's money (Memory), reason about decisions (Reasoning Engine), act through 26 financial tools in one conversation (Agent Harness), and remember what it told them (AdviceLog). Every action it triggers still waits on user confirmation.

Install

npm install @t2000/engine @t2000/sdk

Requires Node.js 18+ · TypeScript 5+ recommended.

Quick start

import { AISDKEngine, getDefaultTools } from '@t2000/engine';
import { T2000 } from '@t2000/sdk';

const agent = await T2000.create();

const engine = new AISDKEngine({
  anthropicApiKey: process.env.ANTHROPIC_API_KEY,
  agent,
  tools: getDefaultTools(),
});

for await (const event of engine.submitMessage('What is my balance?')) {
  switch (event.type) {
    case 'text_delta':
      process.stdout.write(event.text);
      break;
    case 'tool_start':
      console.log(`\n[calling ${event.toolName}]`);
      break;
    case 'pending_action':
      // Write tool needs approval — client executes, then calls engine.resumeWithToolResult()
      break;
  }
}

For custom LLM providers or gateway routing, pass a pre-built LanguageModel via modelInstance instead of anthropicApiKey.

The 4 systems

| System | One-line | |---|---| | 🎛️ Agent Harness | 26 tools (18 read + 8 write), one agent. Parallel reads via the AI SDK step model; serial writes via a needsApproval round-trip. | | ⚡ Reasoning Engine | Thinks before it acts. Adaptive thinking effort, 12 guards across 3 priority tiers (Safety > Financial > UX), preflight validation, prompt caching. | | 🧠 Memory | Knows your finances. Vector-search-backed MemoryStore (recall + write) injected by the host; engine assembles a 4-layer system prompt with prepareStep (base → <memory_recall> → skill recipe → conversation). | | 📓 AdviceLog | Remembers what it told you. Host-side log (record_advice); last 30 days hydrate every turn so the chat never contradicts itself. |

The engine package owns Agent Harness and Reasoning Engine, plus the MemoryStore interface. Vector backends (e.g. MemWal) and the AdviceLog model live host-side.

Full reference

Event types, tool surface, USD-aware permission resolver, stream checkpoint resume, memory injection, MCP client + server adapters, host contract → developers.t2000.ai/agent-engine

License

MIT — see LICENSE.