{"library":"micro","title":"Micro — Asynchronous HTTP Microservices","description":"Micro is a minimalistic library for creating ultra-lightweight, asynchronous HTTP microservices. It's built around the `async`/`await` pattern, enabling developers to write concise and highly performant request handlers with minimal boilerplate. The current stable version is 10.0.1, which introduced ES Modules support and TypeScript conversion. While it doesn't adhere to a fixed release cadence, updates are released to maintain compatibility with newer Node.js versions and modern JavaScript features. Its core differentiators include a tiny codebase (approximately 260 lines of code), explicit dependency management without implicit middleware, and a design philosophy focused on standard HTTP interactions. It is specifically intended for use within containerized environments, and the project explicitly advises against its use in serverless platforms like Vercel, where platform-native helpers often provide similar or superior functionality.","language":"javascript","status":"active","last_verified":"Tue Apr 21","install":{"commands":["npm install micro"],"cli":null},"imports":["import micro from 'micro';","import { send } from 'micro';","import { json } from 'micro';","export default async (req: IncomingMessage, res: ServerResponse) => { /* ... */ };"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { IncomingMessage, ServerResponse } from 'http';\nimport { json, send } from 'micro';\n\ninterface MyRequestBody {\n  name: string;\n}\n\nexport default async (req: IncomingMessage, res: ServerResponse) => {\n  if (req.method === 'POST') {\n    const data = (await json(req)) as MyRequestBody;\n    return send(res, 200, { message: `Hello, ${data.name}!` });\n  } else {\n    return 'Welcome to Micro! Send a POST request with JSON { \"name\": \"YourName\" }.';\n  }\n};\n","lang":"typescript","description":"Sets up a basic Micro service that responds to GET requests and parses JSON POST bodies.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}