skye

Minimalistic web framework.

Usage no npm install needed!

<script type="module">
  import skye from 'https://cdn.skypack.dev/skye';
</script>

README

Skye.

The minimal web framework for node.js

Just 42 lines

Light as a feather

var app = require('skye');
app.use(function(req, res, next){
    res.send('Hello World!');
    res.end();
    next();
}).listen(80, function(){
    console.log('Listening @ Port 80');
});

Infinitely expandable

var app = require('skye');
app.use(function(req, res, next){
    res.send('Hello ');
    next()
}).use(function(req, res, next){
    res.send('World');
    next()
}).use(function(req, res, next){
    res.send('!');
    res.close();
    next()
}).listen(80, function(){
    console.log('Listening @ Port 80');
});

Error handling

var app = require('skye');
app.use(function(req, res, next){
    res.send('Hello World!');
    res.end();
    next();
}).setError(function(err){
    console.log('ERROR: ' + err);
}).listen(80, function(){
    console.log('Listening @ Port 80');
});

Pre made middleware

For (almost) instant awesomeness.