Description
PocketFlow is a minimalist LLM framework that fits in about 100 lines of code with no dependencies. Instead of bundling wrappers for particular apps or model vendors, it gives you one core idea, a graph of nodes that pass work along, and you build agents, workflows, retrieval (RAG) and batch jobs on top of that graph. The project's examples cover a basic chat bot with conversation history, structured data extraction from resumes, a writing workflow that outlines and styles content, a research agent that searches the web, and a simple retrieval-augmented generation process. Because the core is so small, you can also copy the source straight into your project rather than installing a large package. The authors say it is designed to be built with AI coding agents such as Cursor, which makes it easy for an agent to extend the framework. Ports exist for TypeScript, Java, C++, Go, Rust and PHP, and the team runs a Discord server where developers share what they build.…
Highlights
- About 100 lines of core code with zero dependencies
- Graph-based design for agents, workflows and RAG
- Tutorials for chat, agents, workflows and retrieval
- Ports in TypeScript, Java, C++, Go, Rust and PHP
- Built to be extended by AI coding agents
Ratings & Reviews
No ratings yet
Be the first to rate PocketFlow.
People also visit
PocketFlow FAQ
What is PocketFlow?
PocketFlow is a small LLM framework of about 100 lines. It models an AI application as a graph of steps, which you can use to build agents, multi-step workflows and retrieval-augmented generation.
Who is PocketFlow for?
It is for developers who want a lightweight LLM framework without the size and abstraction of larger libraries, and for anyone who wants AI coding tools to write their agent code.
Does PocketFlow have dependencies?
No. The core has zero dependencies, so there is no large package tree to install or keep up to date.
How do I install PocketFlow?
The README shows the install step, or you can copy the core source file, which is only about 100 lines, directly into your project.
Which languages does PocketFlow support?
Besides the main version, the team has published versions in TypeScript, Java, C++, Go, Rust and PHP.
Where can I learn PocketFlow?
The site offers a video tutorial and documentation, and the tutorials range from a basic chat bot to agents and RAG. A Discord server lets you talk with other developers building with it.
What are the best PocketFlow alternatives?
Popular alternatives to PocketFlow include Langflow, Promptflow and Ling. See all PocketFlow alternatives



