Skip to content

micro

A tiny library for building small async HTTP services in Node.js.

Stars
10.6k
Forks
451
Licence
MIT
Language
TypeScript
Last update
6 months ago
Type
Library

What it is

Micro is a small Node.js library from Vercel for writing HTTP microservices using async and await. It focuses on handling requests and returning responses with very little setup. The README provided here is truncated, so details beyond that core purpose are not confirmed.

  • Write a small HTTP endpoint that returns JSON from an async function
  • Split a larger backend into separate small services
  • Deploy a single-purpose API function on Vercel

Great for

  • Developers who want a minimal HTTP service in Node.js
  • Teams building small single-purpose endpoints or microservices
  • People already familiar with async/await in JavaScript or TypeScript

Not ideal for

  • Beginners looking for a full web framework with routing, templates, and many built-in features, since the README excerpt does not describe those
  • Projects that need a long-running, feature-rich server with a large plugin ecosystem, since this excerpt does not show one
Step-by-step guide: how to use microInstall, first run, examples, tips and FAQs

How to get it

  1. 1

    Install with a package manager

    You'll need: Node.js

    Clone the repository

    git clone https://github.com/vercel/micro
  2. 2

    Run it

    • Install Node.js
    • Clone the repository or add the micro package to a project
    • Write an async request handler following the packages/micro README
    • Run the handler locally with Node.js and send it a test request
  3. 3

    Get the most out of it

    • Read the packages/micro README for the handler signature and options
    • Pair with Vercel deployment if you want serverless hosting
    • Use TypeScript types included in the TypeScript-based codebase

Downloads

Strengths

  • Small, focused scope centered on async HTTP handlers
  • MIT licensed and open source
  • Backed by the Vercel organization and has a large star count on GitHub

Trade-offs

  • The README excerpt is truncated, so setup and API details could not be verified here
  • Its scope is narrow, so you may need other libraries for routing, middleware, or databases
  • Latest release info shows no binaries, so use is through the code or package manager

How it compares

ProjectStarsTypeLevelUpdatedBest for
micro (this)10.6kLibraryintermediate6 months agoDevelopers who want a minimal HTTP service in Node.js
express69.6kFrameworkintermediate4 days agoDevelopers building JavaScript or Node.js back-end servers
fastify37.3kLibrarybeginner4 days agoNode.js developers building JSON APIs or backend services
koa35.7kLibraryintermediate4 days agoNode.js developers who want a minimal web framework they can shape themselves
hono32.8kLibrarybeginner5 days agoDevelopers writing TypeScript or JavaScript HTTP APIs
fastapi105kLibrarybeginner4 days agoPython developers building JSON APIs or back-end services

Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.