
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@auto-engineer/emmett-generator
Advanced tools
Code generation plugin for the Auto Engineer CLI that scaffolds event-driven backends using the Emmett event sourcing framework. This plugin takes FlowLang specifications and generates GraphQL servers with commands, events, projections, and queries.
Code generation plugin for the Auto Engineer CLI that scaffolds event-driven backends using the Emmett event sourcing framework. This plugin takes FlowLang specifications and generates GraphQL servers with commands, events, projections, and queries.
This is a plugin for the Auto Engineer CLI. Install both the CLI and this plugin:
npm install -g @auto-engineer/cli
npm install @auto-engineer/emmett-generator
Add this plugin to your auto.config.ts
:
export default {
plugins: [
'@auto-engineer/emmett-generator',
// ... other plugins
],
};
This plugin provides the following commands:
generate:server
- Generate a GraphQL server from flow specificationsThe Emmett Generator transforms high-level flow specifications into event-driven backends. It generates:
When you run auto generate:server
, the plugin creates a complete backend project:
server/
├── src/
│ ├── domain/
│ │ ├── commands/ # Command handlers
│ │ ├── events/ # Event definitions
│ │ ├── projections/ # Read model projections
│ │ └── queries/ # Query handlers
│ ├── graphql/
│ │ ├── resolvers/ # GraphQL resolvers
│ │ └── schema.ts # Generated schema
│ ├── infrastructure/
│ │ ├── eventStore.ts # Event store setup
│ │ └── commandBus.ts # Command bus configuration
│ └── server.ts # Application entry point
├── tests/ # Generated test suites
└── package.json
All generated code is fully typed using TypeScript, ensuring compile-time safety and developer experience.
Built on Emmett's event sourcing patterns:
Generated servers include:
Uses EJS templating system for code generation:
This plugin is designed to work with @auto-engineer/flowlang
specifications:
auto export:schema
auto generate:server
# 1. Create a flow specification project
auto create:example
# 2. Define your business flows in flows/
# Edit flows/order-management.flow.ts
# 3. Generate the backend server
auto generate:server
# 4. The generated server is ready to run:
cd server
npm install
npm run start
Override default templates by providing your own EJS files:
.auto-engineer/templates/
Works with other Auto Engineer plugins:
Customize generation behavior through auto.config.ts
:
export default {
plugins: [
[
'@auto-engineer/emmett-generator',
{
outputDir: './backend',
templateOverrides: './templates',
generateMigrations: true,
},
],
],
};
The Emmett Generator bridges the gap between high-level business requirements and backend infrastructure, enabling development of scalable, maintainable applications.
FAQs
Code generation plugin for the Auto Engineer CLI that scaffolds event-driven backends using the Emmett event sourcing framework. This plugin takes FlowLang specifications and generates GraphQL servers with commands, events, projections, and queries.
We found that @auto-engineer/emmett-generator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.