light.js
a
framework
Github Actions  NPM  Downloads  Stars  CodeCov
as simple as
light dev
[ start ] 🔥 igniting the server 🔥
[ listening ] on port 3000
[ hmr ] starting the hot reloader
[ hmr ] watching for changes
const { createRoute } = require('light');
const { route, GET } = createRoute();
GET(() => {
return {
hello: 'world',
};
});
module.exports = route;

reload without actually reloading
don't waste time waiting for your server to restart
$ light dev
[ start ] 🔥 igniting the server 🔥
[ hmr ] swapping routes/index.js
[ done ] 1ms
vs
$ node express.js
> server started
> routes/index.js changed
restarting server
reimporting all routes
reconnecting to database
reconnecting to cache
recompiling templates
etc...
> done... 1-5 seconds

write once
deploy anywhere
process.env.LIGHT_ENV = 'now';
const { createRoute } = require('light');
const { route, GET } = createRoute();
GET(() => {
return {
hello: 'world',
};
});
module.exports = route;

get started