gensx  by gensx-inc

TypeScript framework for building agents & workflows

created 7 months ago
504 stars

Top 62.6% on sourcepulse

GitHubView on GitHub
Project Summary

GenSX is a TypeScript framework for building LLM-powered agents and workflows, targeting developers familiar with React. It simplifies complex LLM interactions by enabling users to compose reusable, pure-function components using a JSX-like syntax, offering a familiar and type-safe development experience with built-in streaming and parallel execution.

How It Works

GenSX abstracts away the complexities of LLM orchestration by allowing developers to define workflows as a composition of components, akin to React components. These components are pure TypeScript functions that encapsulate LLM calls or other logic. The framework manages the execution flow, automatically handling parallel execution where dependencies allow, and supports seamless streaming of responses. This approach contrasts with traditional graph-based LLM frameworks, offering a more intuitive, top-down, and code-centric composition model.

Quick Start & Requirements

  • Install dependencies: pnpm install
  • Run examples: pnpm start:example or cd examples/ && pnpm start
  • Requires Node.js and pnpm.
  • See Quickstart Guide for more details.

Highlighted Details

  • React-like component model for LLM workflows.
  • Pure functions for testability and reusability.
  • JSX-like syntax for natural composition and readability.
  • Parallel execution by default with dependency management.
  • Built-in streaming support.
  • Full TypeScript type safety without custom DSLs.

Maintenance & Community

  • The project is a monorepo containing core packages, examples, and website.
  • Contribution guidelines are available in CONTRIBUTING.md.
  • No specific community links (Discord/Slack) or notable contributors are mentioned in the README.

Licensing & Compatibility

  • License: Apache 2.0.
  • Permissive license suitable for commercial use and integration into closed-source projects.

Limitations & Caveats

The framework is described as "simple" and "easy to learn," suggesting it may be best suited for straightforward workflows or as an entry point into LLM agent development. The README does not detail advanced features like complex state management, error handling strategies beyond basic composition, or performance benchmarks against other LLM frameworks.

Health Check
Last commit

3 days ago

Responsiveness

1 day

Pull Requests (30d)
79
Issues (30d)
4
Star History
69 stars in the last 90 days

Explore Similar Projects

Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Elie Bursztein Elie Bursztein(Cybersecurity Lead at Google DeepMind), and
3 more.

Flowise by FlowiseAI

0.6%
42k
LLM flow builder with drag-and-drop UI
created 2 years ago
updated 1 day ago
Feedback? Help us improve.