Skip to content

liorcodev/doofpi

Repository files navigation


doofpi

doofpi

Edge-First TypeScript API Framework

npm version   MIT License

Quick Start · Core Concepts · API Reference · Documentation →



doofpi is a lightweight TypeScript framework based on web standards for building end-to-end type-safe APIs - no code generation, no build steps, no separate schema files to maintain

# Core install
bun install doofpi

npm install doofpi

pnpm install doofpi

Optional: Add zod for schema validation and type inference from schemas.

bun install doofpi zod

Highlights

Zero Boilerplate No adapters, links, or transformers minimal setup
End-to-End Type Safety Change your server, your client breaks at compile time
Runtime Agnostic Bun · Cloudflare Workers · Vercel · Netlify · Deno and more
Zod Validation Optional input and output validation at runtime
Web Standards Built on the native Request / Response API
Thoroughly Tested 100% code coverage across all core features

Documentation

Full documentation, guides, and API reference are available at liorcodev.github.io/doofpi-docs.

Quick Start Get up and running in minutes
Core Concepts Read & Write semantics, routing, Zod validation
Guides Context, middleware, error handling, and more
API Reference Full API for Doofpi, EndpointBuilder, and createClient
Comparison How doofpi compares to tRPC

Acknowledgments

Inspired by tRPC.


MIT License · Built with ❤️ for the TypeScript community

About

Lightweight TypeScript framework based on web standards for building end-to-end type-safe APIs - no code generation, no build steps, no separate schema files to maintain

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors