Bento
Documentation
Bento is a robust NodeJS application framework designed to make creating and maintaing complex projects a simple and fast process.
What does Bento do:
- Robust plugable application framework.
- Featuring: Components, Events, Plugins, Properties, Variables
- Component lifecycle state and management
- Consistent Component API
- Defines strict, opinionated, rules
What is a Bento Component?
Bento indroduces a concept of components. Components are logical chunks of code that all work together to provide your application to the world.
Components should not take on more then required. (IE: instead of having one component for connecting to Discord and processing messages. Have two, one for the connection and one that handles messages)
How to use Bento (IN-PROGRESS)
Using bento is pretty simple. First import and initilize bento and any plugins you wish to use. Then simply add plugins to bento
'use strict';
import { Bento, FSComponentLoader } from '@ayana/bento';
const bento = new Bento();
(async () => {
const fsloader = new FSComponentLoader();
await fsloader.addDirectory(__dirname, 'components');
await bento.addPlugin(fsloader);
await bento.verify();
})().catch(e => {
console.error(`Error while starting bento:\n${e}`);
process.exit(1);
});