Skip to content
iivankinPublic

About

Type-safe RPC layer for Bun with optional React Query support

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

bunrpc monorepo

Monorepo for the bunrpc packages and example app.

Packages

  • packages/core -> @bunrpc/core, the Bun-first RPC core
  • packages/react -> @bunrpc/react, TanStack Query integration
  • packages/openapi -> @bunrpc/openapi, OpenAPI document and Swagger UI plugin
  • packages/mcp -> @bunrpc/mcp, MCP transport/plugin for bunrpc procedures
  • apps/example -> local playground app that wires all packages together

Package documentation

Install

bun install

Validate workspaces

bun run check
bun run typecheck
bun run test

Run example API

bun --cwd apps/example run server

The example server starts on http://localhost:3000 and exposes:

  • GET /health
  • RPC routes under /api/*
  • OpenAPI document at /openapi.json
  • Swagger UI at /docs
  • MCP endpoint at /mcp

Publish packages

bun --cwd packages/core publish --access public
bun --cwd packages/react publish --access public
bun --cwd packages/openapi publish --access public
bun --cwd packages/mcp publish --access public

The apps directory is for local example and demo apps.

About

Type-safe RPC layer for Bun with optional React Query support

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages