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

@elyxndra/chat

v0.1.0

Published

Elyxndra's chat brain: threads (one JSON file each), profile + chat settings, the built-in system prompt, local chat tools (system info, model-store results, web research/fetch), and the send → stream → tools → continue loop on top of @elyxndra/engine and

Readme

@elyxndra/chat

The chat brain shared by Elyxndra's apps: threads, settings, the built-in system prompt, local chat tools and the send → stream → tools → continue loop — on top of @elyxndra/engine (which model is live, its wire spec and health) and @elyxndra/agent (streaming client, context budget). Host-agnostic, Node 20+.

import { createEngineRuntime } from "@elyxndra/engine";
import { ChatApp } from "@elyxndra/chat";

const rt = await createEngineRuntime();
const chat = new ChatApp({ runtime: rt });
await chat.init();
chat.on("delta", (id, content, reasoning) => process.stdout.write(content));
chat.on("change", () => {
  /* render chat.messages, chat.conversations, chat.isGenerating … */
});
chat.send("Hello");
  • ThreadsConversationStore: one pretty-printed JSON file per thread under <app data>/conversations/, a stable format every Elyxndra host reads and writes, so chats carry over between them. Newest-created first, atomic writes.
  • SettingsChatSettings: profile (name, role, style…), system prompt, thinking/effort defaults, tool switches, web-research config; provider keys in the OS credential store.
  • PromptbuiltinSystemPrompt(): identity + live model/engine/machine context, regenerated per request.
  • Toolsget_system_info, get_model_search_results, plus the agent package's web_research / web_fetch (opt-in).
  • LoopChatApp.send()/regenerateLastReply()/stopGeneration(), tool rounds run concurrently and keep one uninterrupted "generating" state, context auto-trim with engine-calibrated estimates, per-message stats.

Tests: npm test (offline; a fake SSE engine stands in for the model server).