Show DevBest ChoirJS, an event-driven web framework created for laughs.

Jian

Resident Weeb
Contributor
Sep 2, 2011
687
437
Earlier this afternoon, I thought of a funny way for a web framework to deliver content. Why? Because why not! I can have some fun once in a while, can't I?

Introducing, ChoirJS. An event-driven web framework created for laughs.
The source code can be found on and you can make use of it via .

Usage
Code:
npm install choirjs

JavaScript:
const { Choir } = require('choirjs');
const app = new Choir(8080);

app.registry.add('/', 'index');

app.route.get.on('index', (req, res) => {
    res.send('o7');
});
You can look at the files in the Github repository,

To be honest, I don't even know what I'm doing. I just wanted to do something today.

As of version 1.0.10, a bunch of necessary features has been added.
  • Routing with REGEX.
  • Serving static files.
  • Middleware support.
  • Template engine support. Compatible with ones made for .

Using with ChoirJS
JavaScript:
var pug = require('pug');

app.engine('pug', './views', pug.__express);
 
Last edited:

Users who are viewing this thread

Top