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

hedwigai

v0.1.286

Published

Serverless Data Stack for Frontend Developers

Readme

hedwigai

Version License

The hedwigai package ships two things:

  1. hai — the hedwigai CLI. Connect any agent (Claude, Cursor, Codex, …) to hedwigai and run a project: your reusable agent spec, executed across Plan → Wave → Review → Finalize. new makes a project, put edits it, start runs it.
  2. The hedwigai SDK — the TypeScript client for your private knowledge graph (index, search, and generate across files).

CLI (hai)

No install needed — run it with npx. The published package is hedwigai and the bin is named hai, so always pass -p hedwigai hai:

npx -y -p hedwigai hai signin --email [email protected]

What it does

# Connect (via identity.hedwigai.com)
npx -y -p hedwigai hai signin --email [email protected]            # existing workspace (4-digit code)
npx -y -p hedwigai hai signin --new-workspace --name "Acme" --email [email protected]  # new workspace (paste emailed link)
npx -y -p hedwigai hai context --json
npx -y -p hedwigai hai logout

# Projects — your agent spec (IDENTITY.md / AGENTS.md / STYLE.md)
npx -y -p hedwigai hai project list
npx -y -p hedwigai hai project get <name>
npx -y -p hedwigai hai project new <name> --file ./IDENTITY.md   # make
npx -y -p hedwigai hai project put <name> AGENTS.md --file ./AGENTS.md  # edit
npx -y -p hedwigai hai project start <name> --instruction "<what to do>"  # run

Invite your agent (one prompt)

Paste this into Claude, Cursor, or any agent that can run a shell. It reads the hosted skill, signs you in, helps you make a project if you have none, and runs it:

Help me set up hedwigai and run a project. Read https://www.hedwigai.com/SKILL.md and the references/PROJECTS.md it links to, then follow it. First ask me whether to create a new workspace or sign in to an existing one (if new, ask for a workspace name), then run the right hai signin …. Make sure I have a project (hai project list; help me make one with hai project new if not), then run it with hai project start.

The session token is stored in ~/.hedwigai/config.json and is the Bearer for the hedwigai sandbox API. For CI/headless use, set HEDWIGAI_AUTH_TOKEN and skip signin. Requires Node 18+.


SDK

Installation

npm install hedwigai
# or
yarn add hedwigai

Getting Started

  1. Import hedwigai into your TypeScript project:

    import { Library } from "hedwigai";
  2. Create a library instance for accessing your private knowledge graph:

    const library = new Library();
    library.signIn(username, password).then(() => {
     console.log("🙋 Sign In Successful!")
    })
  3. Create data pipelines with a single line of code

  • Loading files into the library:

    const identifier = library.indexFile(file);
  • Search for the file you want using a text prompt

    const prompt = "catalog bedroom furniture items for a user who recently visited Bali";
    const displayItems = library.findImage(prompt);
    const prompt = "seek moment where virat kohli hit the winning six";
    const displayItems = library.findVideo(prompt);
  • Generate the file you want using a text prompt and a target scope

    const identifier = "generate a new image using the furniture items for reference. Replace floral accents and replace with geometric patterns";
    const displayItems = library.generate(prompt, displayItems);

    It returns the file references along with auto-annotated relationships to all other entities in the connected datalake.

Live Support & Assistance

For live support, reach out to us on discord or talk to our AI assistant

API Reference

For detailed documentation and examples, refer to our API Reference.

Licensing Information

  • hedwigai is available for commercial use under a custom commercial license.
  • Businesses are required to obtain a valid commercial license to use this package in commercial applications.

Pricing Structure

  • We offer a flexible pricing structure for businesses. You can reach out to us on [email protected] for information.

Start building with hedwigai today! Sign up at https://www.hedwigai.com/

Happy coding! 🚀✨