
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
MVC pattern in core.
All request go thru Router class and routes to specified Controller to internal action. For ex:
GET http://somesite.com/ControllerName/ActionName
This request calls method "ActionName" from controller "ControllerName"
Empty action interprets as "index" action
GET http://somesite.com/Admin/
Calls method "index" from controller "Admin".
For now framework works only with integrated Sqlite DB. It's temporary.
Put Model class into "model" folder and It's loads automatically.
Create queries by using model in controller:
await this.app.db.get().tableModel.query('SELECT * FROM table');
Also you can use external databases.
npm install --save favorito
const {FavoritoApp} = require('favorito');
(async () => {
//First argument - config object
// false - try load config from config.js
// string - path to config file
const App = new FavoritoApp(false, 'Favorito Demo App');
//Init app
await App.init();
//Start app
await App.start();
})()
Config example:
module.exports = {
//HTTP binding port
bindPort: 3001,
//Base URL for current application
"appUrl": "https://favorito",
//Main controller for / path
indexController: 'App',
//Databases list (sqlite3 only for now)
databases: [
{type: 'sqlite', name: 'default', config: {path: 'database.db'}}
],
//Configured Email transports
"emailTransports": {
"default": {
"host": "STMP.COM",
"port": 465,
"secure": true,
"auth": {
"user": "SMTP-USER",
"pass": "SMTP-PASSWORD"
},
"from": "Favorito Framework <info@expressApp.biz>",
"debug": true //Log all Emails
}
},
//Cryptography secret
"secret": "5f0239f8f8ad284983c11ee815874562",
//Cryptography salt (for passwords, etc.)
"salt": "19d62fc823eb117f148b61110e08fba7a",
}
Complete example see in /demo.
FAQs
Lightweight Node.js backend framework
We found that favorito demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.