Bun HTTP Server

•
239
•

Builds high-performance HTTP servers, REST APIs, and route handlers using Bun's native Bun.serve API.

The Bun HTTP Server skill equips Claude Code with deep implementation patterns for Bun's ultra-fast native web server via Bun.serve. It provides best practices for declarative routing (including modern Bun 1.2+ route maps and parameterized paths), multi-format request body parsing, streaming responses, and static file delivery. Developers can use this skill to quickly scaffold resilient microservices, configure secure TLS/HTTPS options, resolve common runtime server errors, and implement CORS without relying on heavy external web frameworks.

主要功能

01239 GitHub stars
02Request body parsing for JSON, FormData, text, ArrayBuffer, and Blob payloads
03Native Bun.serve server configuration with TLS, Unix sockets, and port options
04Modern Bun 1.2+ route mapping with dynamic route parameters and fallback handlers
05Built-in response formatting for JSON, HTML, file downloads, redirects, and ReadableStreams
06Static asset serving, global error handling, and robust CORS configuration

使用场景

01Serving static web assets alongside dynamic API endpoints in full-stack TypeScript projects
02Developing lightweight, high-throughput REST APIs and microservices without third-party frameworks
03Configuring secure HTTPS endpoints with custom error handling and response streaming