
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
@anephenix/mcg
Advanced tools
A Node.js library and CLI for generating Objection.js Models and their supporting files. It helps to save time creating Models and their migrations, so that you can focus on implementing the business logic for your Node.js server-side project.
npm i @anephenix/mcg
You can use MCG via the command line:
npx mcg Post
This will do the following:
You can pass the following optional arguments:
There is also the option of setting these optional arguments in a mcg.config.js file that looks like this:
module.exports = {
testFolder: 'spec',
mainDir: 'app',
};
You can also use MCG programmatically, like this:
const mcg = require('@anephenix/mcg');
(async () => {
await mcg('Post');
})();
The mainDir and testFolder are optional 2nd and 3rd arguments to that command:
const path = require('path');
const mcg = require('@anephenix/mcg');
(async () => {
const mainDir = path.join(process.cwd(), 'app');
const testFolder = 'spec';
await mcg('Post', mainDir, testFolder);
})();
©2026 Anephenix Ltd. MCG is licensed under the MIT license.
FAQs
Model Component Generator for Objection.js
We found that @anephenix/mcg 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.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.