
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.
Lightweight ORM for Node.js with automatic table creation and CRUD operations
EredBean is a lightweight ORM library for Node.js, similar to RedBeanPHP, with automatic table and field creation, full CRUD support, relationships, and versatility.
npm install eredbean
import Bean from '@elv1bro/beanorm';
// MySQL/PostgreSQL
const mysqlConfig = {
type: 'mysql',
host: 'localhost',
user: 'username',
password: 'password',
database: 'mydb'
};
// SQLite
const sqliteConfig = {
type: 'sqlite',
filename: './database.sqlite'
};
const user = new Bean('user', sqliteConfig);
user.set('name', 'Alice');
user.set('email', 'alice@example.com');
await user.save();
const user2 = await Bean.load('user', user._id);
user2.set('name', 'Alice Smith');
await user2.save();
await user2.delete();
We've prepared an automatically generated file PROJECT_METHODS.json with detailed information about methods and project structure.
PROJECT_METHODS.json file in the project rootBaseModel: Basic model operationsBean: Main ORM classRepository: Data repository managementTableMetadataCache: Table metadata caching# Quick metadata view
cat PROJECT_METHODS.json
To update metadata, use the command:
npm run generate-ai-metadata
constructor(): Model initializationset(): Setting field valuessave(): Saving the modeldelete(): Deleting the modelload() and find()hasOne() and hasMany() for relationshipscreate(), findById(), find(), deleteById()getTableStructure(), setTableStructure()Bean.js - the ORM's central classBaseModel.js to understand basic logicsrc/adapters/use/ directoryMIT License
FAQs
Lightweight ORM for Node.js with automatic table creation and CRUD operations
We found that eredbean demonstrated a healthy version release cadence and project activity because the last version was released less than 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.