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

@ank1015/llm-server

v0.0.5

Published

Node-only Hono orchestration server for projects, artifact directories, agent sessions, and installable skills

Readme

@ank1015/llm-server

Published Node package for the monorepo's Hono backend, project storage model, session orchestration, terminal transport, and installable-skill APIs.

Status

This package is published as @ank1015/llm-server and is also consumed by the npx @ank1015/llm launcher.

It is the main backend for the repo's app clients and local session workflows. When run through npx @ank1015/llm, the public app and API share the launcher's port (3210 by default), while the Hono server process runs on a private internal port selected by the launcher.

Commands

pnpm --filter @ank1015/llm-server build
pnpm --filter @ank1015/llm-server typecheck
pnpm --filter @ank1015/llm-server lint
pnpm --filter @ank1015/llm-server test
pnpm --filter @ank1015/llm-server test:unit
pnpm --filter @ank1015/llm-server test:integration
pnpm --filter @ank1015/llm-server test:live
pnpm --filter @ank1015/llm-server dev
pnpm --filter @ank1015/llm-server start
pnpm --filter @ank1015/llm-server test-skill -- --prompt "Open the target page"

What It Contains

  • Hono route modules for projects, artifact directories, checkpoints, keys, models, sessions, skills, and terminal APIs
  • Core services for project/artifact lookup, SDK-backed session persistence, compaction sidecars, and terminal registry state
  • HTTP and WebSocket server wiring used by the local desktop and web-facing flows
  • Package-local TypeBox contracts and DTOs for the server boundary

Runtime Defaults

Standalone pnpm --filter @ank1015/llm-server start / node dist/server.js defaults:

  • HOST defaults to 127.0.0.1
  • PORT defaults to 8001
  • projectsRoot defaults to ~/projects
  • dataRoot defaults to ~/.llm/projects

Repo-local callers can override filesystem paths through the internal config module before starting the app or tests.

Packaged npx @ank1015/llm defaults:

  • public web and API origin: http://127.0.0.1:3210
  • override with llm --host <host> --port <port>
  • API requests should use same-origin /api routes from the web app instead of assuming 8001

Module Map

  • src/app.ts - Hono app construction and route mounting
  • src/http-server.ts - Node HTTP server and terminal WebSocket upgrade handling
  • src/server.ts - local process entrypoint using HOST and PORT
  • src/routes/ - package HTTP route handlers grouped by resource family
  • src/core/project/ - project metadata and workspace lookup
  • src/core/artifact-dir/ - artifact directory metadata, skill helpers, and temp workspace helpers
  • src/core/session/ - session storage, prompt execution, live run registry, compaction, and context reframing
  • src/core/terminal/ - terminal registry and PTY helpers
  • src/test-skill.ts - standalone CLI that runs the server agent prompt/tools with appended Chrome docs and exports a Markdown transcript
  • src/contracts/ - route request and response schemas
  • src/types/ - server-local DTO and model types
  • docs/ - package-facing backend notes

Docs

  • docs/architecture.md - backend module map and storage layout
  • docs/configuration.md - runtime host, port, and filesystem configuration
  • docs/testing.md - unit, integration, and live test guidance

Notes

  • The package is Node-only and requires local filesystem and subprocess access.
  • Terminal sessions use node-pty; the package includes a Python 3 PTY fallback on Unix-like hosts for specific posix_spawn failures.
  • Claude credential reload creates a temporary executable wrapper: .cmd on Windows, POSIX sh elsewhere.
  • test-skill accepts --prompt, optional --cwd, and optional --output, then writes a conversation-style Markdown transcript after the run finishes.