GreenLight.js
small and efficient
A minimal JavaScript framework for boosting production on small-scale web projects.
A minimal JavaScript framework for boosting production on small-scale web projects.
8
directives
ENDLESS
opportunities
5
methods
GreenLight Project
const root = document.getElementById('app-root');
GreenLight.init(root);
const FormController = GreenLight.controller('FormController');
FormController.$store.set('username', 'Hello World');
Stop worrying about where and how the data changes in your application. Focus on how to use it to your advantage and let GreenLight handle the rest. From binding, to effects and state management, GreenLight has got you covered.
Your small-scale web projects will never be the same. Bootstrap your idea with GreenLight and see the magic happen.
All you need to start is to initialize the library in JS and provide the app root.
Extend the capabilities of GL with support for plugins - find them on our GitHub repository.
Integrate your favourite tools and libraries for a good time - innovate the way you want.
We don’t set up restrictions for external libraries. You can use anything you like besides GreenLight.
All you need to do is include the script tag in your HTML and initialize the library by providing a root for your application - this is all it takes to bootstrap your idea.
Init Project
// All you need to start
const appRoot = document.body;
GreenLight.init(root);
GreenLight.$globalStore.effect(() => {
alert('theme changed.');
}, ['theme']);