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

@vectorize-io/hindsight-all

v0.7.1

Published

Node.js programmatic lifecycle manager for Hindsight — embeds a local hindsight daemon in a Node application. Pair with @vectorize-io/hindsight-client for memory operations.

Readme

@vectorize-io/hindsight-all

Node.js equivalent of the Python hindsight-all package — programmatic lifecycle manager for a local Hindsight daemon. Use this when you want to embed Hindsight in a Node application without hand-rolling subprocess management.

This package deliberately does not ship an HTTP client. Once the daemon is running, talk to it with @vectorize-io/hindsight-client against server.getBaseUrl(). The two packages compose — one owns the daemon process, the other owns the HTTP API surface.

Requirements

  • Node.js >= 22 — uses global fetch and AbortSignal.timeout.
  • uv / uvx on PATH — used to download and run the underlying hindsight-embed daemon on first use. Install via https://docs.astral.sh/uv/.

Install

npm install @vectorize-io/hindsight-all @vectorize-io/hindsight-client

Example

import { HindsightServer, consoleLogger } from "@vectorize-io/hindsight-all";
import { HindsightClient } from "@vectorize-io/hindsight-client";

const server = new HindsightServer({
  profile: "my-app",
  port: 9077,
  env: {
    HINDSIGHT_API_LLM_PROVIDER: "anthropic",
    HINDSIGHT_API_LLM_API_KEY: process.env.ANTHROPIC_API_KEY,
    HINDSIGHT_API_LLM_MODEL: "claude-sonnet-4-20250514",
    HINDSIGHT_EMBED_DAEMON_IDLE_TIMEOUT: "0",
  },
  logger: consoleLogger,
});

await server.start();

const client = new HindsightClient({ baseUrl: server.getBaseUrl() });

await client.retain("user-123", "User prefers dark mode and concise answers.", {
  documentId: "pref-2026-04-01",
});

const recall = await client.recall("user-123", "what are the user preferences?");
console.log(recall.results);

await server.stop();

For a remote Hindsight API, skip HindsightServer entirely and just point HindsightClient at the remote URL.

Open config — forward-compatible with new daemon flags

HindsightServerOptions is designed so every new environment variable or CLI flag in the underlying Hindsight daemon can be used without waiting for a wrapper release:

  • env accepts an arbitrary Record<string, string>. Every entry is exported into the daemon process and written into the profile config via --env KEY=VALUE.
  • extraProfileCreateArgs / extraDaemonStartArgs append raw args to the respective commands.

Development against a local checkout

If you're hacking on the Python hindsight-embed package in the same monorepo, point the server at the local path — it'll use uv run --directory <path> instead of uvx:

new HindsightServer({
  embedPackagePath: "/path/to/hindsight-embed",
  // ...
});

API surface

  • HindsightServer — daemon lifecycle (start, stop, checkHealth, getBaseUrl, getProfile).
  • Logger interface plus silentLogger (default) and consoleLogger helpers.
  • getEmbedCommand(opts) — low-level helper that returns the [cmd, ...args] tuple used to invoke the underlying Python CLI.

For memory operations (retain, recall, reflect, bank management, stats) use @vectorize-io/hindsight-client.

License

MIT