{"repo":"The-Pocket/PocketFlow-Zig","free":true,"listed":false,"github":"https://github.com/The-Pocket/PocketFlow-Zig","clone":"git clone https://github.com/The-Pocket/PocketFlow-Zig.git","description":"Pocket Flow: A minimalist LLM framework. Let Agents build Agents!","language":"Zig","stars":16,"topics":["agentic-ai","agentic-framework","agentic-workflow","agents","ai-framework","ai-frameworks","aiagent","aiagents","artificial-intelligence","flow-based-programming"],"license":"MIT","category":"ai-agents","readme_excerpt":"PocketFlow-Zig A Zig implementation of PocketFlow, a minimalist flow-based programming framework for building LLM-powered workflows. Overview PocketFlow-Zig is a port of the original Python PocketFlow framework, redesigned to leverage Zig's unique capabilities: - Compile-time polymorphism : Uses vtables for type-erased node interfaces without runtime overhead - Explicit memory management : No hidden allocations; all memory is managed through Zig allocators - Thread-safe context : Built-in mutex protection for shared state between nodes - Zero dependencies : Core framework has no external dependencies (Ollama client is optional) Features - Node-based architecture : Define workflows as a graph of interconnected nodes - Type-erased interfaces : Generic Node interface via vtables enables heterogeneous node types - Flow execution engine : Automatic traversal and execution of node graphs - Thread-safe shared context : Safe data passing between nodes with mutex protection - Ollama integration : Built-in client for local LLM inference (optional) - Action-based routing : Nodes return actions that determine the next node in the flow Installation Method 1: Using zig fetch (Recommended) The easiest way to add PocketFlow-Zig to your project is using zig fetch --save : This automatically: 1. Downloads the package to Zig's global cache 2. Computes the package hash 3. Adds the dependency to your build.zig.zon file After running zig fetch --save , your build.zig.zon will contain something lik","default_branch":null,"files":null,"tree":[],"storefront":"/r/The-Pocket","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/The-Pocket/PocketFlow-Zig/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}