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

pocketflow

v1.0.4

Published

A minimalist LLM framework

Readme

License: MIT Docs

PocketFlow.js

PocketFlow.js is a TypeScript port of the original Python version - a minimalist LLM framework.

Table of Contents

Features

  • Lightweight: Zero bloat, zero dependencies, zero vendor lock-in.

  • Expressive: Everything you love—(Multi-)Agents, Workflow, RAG, and more.

  • Agentic Coding: Let AI Agents (e.g., Cursor AI) build Agents—10x productivity boost!

Installation

npm install pocketflow

Alternatively, you can simply copy the source code directly into your project.

Quick Start

// Basic example coming soon

Documentation

  • Check out the official documentation for comprehensive guides and examples. The TypeScript version is still under development, so some features may not be available.
  • For an in-depth design explanation, read our design essay

Testing

To run tests locally:

# Install dependencies
npm install

# Run tests
npm test

Contributing

We welcome contributions from the community! Here's how you can help:

Code of Conduct

Please read and follow our Code of Conduct to foster an inclusive community.

CI/CD Workflow

We use GitHub Actions for continuous integration and deployment:

  • CI Workflow: Automatically runs tests and builds the project on each push and pull request to the main branch.
  • Code Quality: Checks TypeScript compilation to ensure code quality.
  • Release: Publishes the package to npm when a new release is created.

Note: To publish to npm, maintainers need to configure the NPM_TOKEN secret in the repository settings.

How to Contribute

  1. Fork the Repository

    • Create your own fork of the repo
  2. Create a Branch

    • Create a feature branch (git checkout -b feature/amazing-feature)
    • For bug fixes, use (git checkout -b fix/bug-description)
  3. Make Your Changes

    • Follow the code style and conventions
    • Add or update tests as needed
    • Keep your changes focused and related to a single issue
  4. Test Your Changes

    • Ensure all tests pass with npm test
    • Add new tests if appropriate
  5. Commit Your Changes

    • Use clear and descriptive commit messages
    • Reference issue numbers in commit messages when applicable
  6. Submit a Pull Request

    • Provide a clear description of the changes
    • Link any related issues
    • Answer any questions or feedback during review

Creating a CursorRule

To create a CursorRule to make AI agents work more effectively on the codebase:

  1. Visit gitingest.com
  2. Paste the link to the docs folder (e.g., https://github.com/The-Pocket/PocketFlow-Typescript/tree/main/docs) to generate content
  3. Remove the following from the generated result:
    • All utility function files except for llm
    • The design_pattern/multi_agent.md file
    • All _config.yaml and index.md files, except for docs/index.md
  4. Save the result as a CursorRule to help AI agents understand the codebase structure better

Development Setup

# Clone your forked repository
git clone https://github.com/yourusername/PocketFlow-Typescript.git
cd PocketFlow-Typescript

# Install dependencies
npm install

# Run tests
npm test

Reporting Bugs

When reporting bugs, please include:

  • A clear, descriptive title
  • Detailed steps to reproduce the issue
  • Expected and actual behavior
  • Environment information (OS, Node.js version, etc.)
  • Any additional context or screenshots

Community

License

This project is licensed under the MIT License - see the LICENSE file for details.