Code Monkey home page Code Monkey logo

awesome-micro's Introduction

Awesome Micro Awesome

A collection of awesome things regarding Vercel's Micro — Asynchronous HTTP microservices.

Contents

Modules

Routing

Authentication

Analytics

  • micro-analytics - Public analytics as a Node.js microservice, no sysadmin experience required.
  • micro-stats - Statsd helper for Micro.

Loggers, Errors & Reporting

Middlewares

  • micro-ratelimit - Rate limiting middleware for Micro.
  • micro-logzio - A middleware for micro framework that logs requests and responses using logz.io service.
  • micro-cors - Simple CORS middleware.
  • micro-ajv - An Ajv (Another JSON Schema Validator) middleware for Micro.
  • micro-mw - A simple library for abstracting middleware away from ZEIT Micro routes / functions.
  • micro-nosniff - Prevents mime type sniffing
  • micro-csrf - Anti-CSRF middleware.

Wrappers

HTTP Requests

  • micro-bunyan-request - Request, response logger middleware using bunyan for micro framework.
  • micro-get - Only accepts GET request for microservices built with Micro.
  • micro-post - Only accepts POST request for microservices built with Micro.
  • micro-redirect - A redirect function for Zeit's micro.
  • micro-chain - Builds flexible requests chains and pass them into micro handler.
  • micro-correlation-id - Correlate http requests across microservices.
  • micro-protocol - Get the protocol of the request (optionally following proxies).
  • micro-host - Get the host of the request (optionally following proxies).
  • micro-hostname - Get the hostname (host without port) of the request (optionally following proxies)

Higher Order

Utilities

  • micro-compress - Compression for HTTP microservices.
  • serve-handler - Static file serving and directory listing handler, used by Serve
  • micro-helmet - Security headers for micro, using the popular Helmet module
  • micro-cacheable - A micro utility for data caching
  • micro-health - An extension of micro with a Health Check API
  • micronize - Simple way of enhacing a function with Zeit's Micro framework (usefull for serverless environment, ie: now & aws lambda).
  • micro-cookie-session - Simple cookie-based session storage for micro.
  • micro-query - Simple querystring parser for Zeit's Micro.
  • micro-cookie - Cookie parsing for Zeit's Micro.
  • micro-match - A simple url matching utility for micro.
  • micro-chain - Builds flexible requests chains and pass them into micro handler.

Deployment Tools

Development Tools

Boilerplates

Articles & FAQ

Built with Micro

awesome-micro's People

Contributors

adileo avatar amio avatar barnabas avatar bessonov avatar billymoon avatar brandon93s avatar canrau avatar cprecioso avatar dimapaloskin avatar durairaj avatar edm00se avatar eric-hc avatar fmiras avatar fourcube avatar hosmelq avatar hugodf avatar jemgold avatar julianduque avatar masquerade-circus avatar maximeshr avatar mhamann avatar nathancahill avatar nblackburn avatar nickcis avatar nickduncan7 avatar ramiel avatar rapzo avatar schwarmco avatar sindresorhus avatar webmatze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

awesome-micro's Issues

Consider adding multipart/form-data parser

Hi

I've created a multipart/form-data parser, that works well with Micro, because it's both streaming and asynchronous.

Link to module: form-parser

The API is very simple:

// Dependencies
const parser = require('form-parser')
const { send } = require('micro')

// Create server
module.exports = async (req, res) => {
  // Parse request
  await parser(req, async field => {
    // Log info
    console.log(field) // { fieldType, fieldName, fieldContent }
  })

  // Reply with finished
  return send(res, 200, 'Parsing form succeded.')
}

It doesn't have "micro" in it's name, but perhabs it's suitable for this list? - just throwing it out there :-)

Feel free to close this issue if you think otherwise.

Can not load html page..

hello,
Thank you for your very helpful awesome-micro modules.
while developing micro services i need to load html page in response of service.
For example, In express nodejs framework We can give public folder route in response of api.
Is there any way to load public folder on particular route or in response of particular service ?

I hope you got my issue.
Thanks in advance.

const { send,buffer,text,json,createError } = require('micro')
const { router,get,post,options } = require('microrouter')
const cors = require('micro-cors')()

const docs = cors(async(req, res) => {
  sendFile('public/index.html');
})

const notfound = cors((req, res) => send(res, 200,"route not found"))

module.exports = router(
  get('/docs', docs),
  options('/*', notfound)
)

Consider adding logz.io service middleware

I just created a middleware for micro framework that logs requests and responses to Logz.io.

Logz.io provides ELK service with free community plan. (I’m not an employee of Logz.io.)

Link to the package: micro-logzio

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.