gitmyhub

flowstack-sdk

TypeScript ★ 2 updated 1d ago

Backend-as-a-service SDK for AI-powered apps: auth, data, streaming agents, wallet. Zero backend code.

A TypeScript npm package that gives React apps authentication, MongoDB-backed data storage, streaming AI agents, and payments through hooks, with no backend code required.

TypeScriptReactNext.jsMongoDBVitesetup: moderatecomplexity 3/5

Flowstack SDK is a TypeScript package that provides a complete set of building blocks for AI-powered web applications. Instead of writing your own backend server, you install one npm package and get authentication, data storage, AI agent integration, file handling, and wallet-based payments through a set of React hooks. The idea is that a frontend developer can build a full-stack AI application without managing any server infrastructure.

The main pieces are React hooks, each covering a distinct area. The useAuth hook handles user sign-in. The useCollection hook connects to a MongoDB-backed data layer for reading and writing application data. The useAgent hook connects to a streaming AI agent that can answer questions or write structured results back to a collection in one call. There are also hooks for datasets, visualizations, workspace management, and site publishing.

One specific use case the SDK supports is what it calls built apps: AI-powered sites generated by a build pipeline. These sites use a two-step process where you upload source files to a staging slot, then explicitly promote that version to make it live. The SDK includes a detailed checklist of requirements for this pattern, including a buffer polyfill that must appear at the top of the entry file, specific Vite configuration rules, and notes about which authentication component to use.

The documentation is generated from a canonical registry and includes a human-readable reference site, an OpenAPI specification, a machine-readable text file for AI coding tools, and a semantic graph. This keeps the human docs and the API contract consistent.

The SDK is installed from npm or from a CDN-hosted tarball for generated sites. The README does not state a specific open-source license.

The full README is longer than what was shown.

Where it fits