frame-http

v0.0.1
Laughably minimal http framework combining the best parts of express and koa

Frame

Frame is <100 line, zero dependency, middleware only express/koa-like framework built on top of the http/https module.

Example

const http = require('http');
const Frame = require('frame-http');

const app = new Frame();
const server = http.createServer(app.handler);

app.use(ctx => {
  ctx.setStatus(200);
  ctx.send({
    message: 'Hello world!'
  });
});

server.listen(3000);
npm i frame-http

Metadata

  • MIT
  • Whatever
  • Francis Stokes
  • released 2/15/2019

Downloads

Maintainers