
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Core library for Bend - Production-ready backend scaffolder with enterprise-grade security and logging.
npx bend-core
npm install -g bend-core
bend-core
npm install bend-core
# Interactive mode
npx bend-core
# With project name
npx bend-core my-backend
# Skip dependency installation
npx bend-core my-backend --no-install
import { createProject } from 'bend-core';
await createProject({
projectName: 'my-backend',
runtime: 'nodejs', // or 'bun'
language: 'ts', // or 'js'
framework: 'express', // or 'fastify'
orm: 'mongoose', // or 'prisma'
packageManager: 'npm', // or 'pnpm', 'yarn', 'bun'
skipInstall: false,
});
Every generated project includes:
All 8 template combinations are included:
| Language | Framework | ORM | Status |
|---|---|---|---|
| TypeScript | Express | Mongoose | ✅ |
| TypeScript | Express | Prisma | ✅ |
| TypeScript | Fastify | Mongoose | ✅ |
| TypeScript | Fastify | Prisma | ✅ |
| JavaScript | Express | Mongoose | ✅ |
| JavaScript | Express | Prisma | ✅ |
| JavaScript | Fastify | Mongoose | ✅ |
| JavaScript | Fastify | Prisma | ✅ |
Generated projects have this structure:
my-backend/
├── src/
│ ├── config/
│ │ ├── database.ts # DB connection
│ │ └── logger.ts # Winston config
│ ├── controllers/ # Controllers
│ ├── models/ # DB models
│ ├── routes/ # API routes
│ ├── services/ # Business logic
│ ├── middlewares/ # Custom middleware
│ ├── utils/ # Utilities
│ ├── app.ts # App setup
│ └── server.ts # Entry point
├── logs/ # Auto-generated logs
├── .env # Environment vars
├── .gitignore
├── package.json
├── tsconfig.json # (TypeScript)
└── README.md
Creates a new backend project.
Parameters:
interface CLIOptions {
projectName?: string; // Project directory name
runtime?: 'nodejs' | 'bun'; // Runtime (auto-detected)
language?: 'ts' | 'js'; // Language
framework?: 'express' | 'fastify'; // Framework
orm?: 'mongoose' | 'prisma'; // ORM
packageManager?: 'npm' | 'pnpm' | 'yarn' | 'bun'; // PM (auto-detected)
skipInstall?: boolean; // Skip npm install
noInstall?: boolean; // Alias for skipInstall
}
Returns: Promise<void>
Example:
import { createProject } from 'bend-core';
await createProject({
projectName: 'my-api',
language: 'ts',
framework: 'fastify',
orm: 'prisma',
});
Generated projects support these environment variables:
# Server
PORT=3000
NODE_ENV=development
# Database (MongoDB)
MONGODB_URI=mongodb://localhost:27017/myapp
# Database (Prisma)
DATABASE_URL="postgresql://user:pass@localhost:5432/mydb"
# Security
CORS_ORIGIN=https://yourdomain.com
# Logging
LOG_LEVEL=info # error | warn | info | debug
Core Dependencies:
Template Dependencies (included in generated projects):
This is part of the Bend monorepo. See the main README for development instructions.
pnpm build
node dist/cli/index.js my-test-project
MIT © Bend
Part of Bend - Production-ready backends in seconds.
FAQs
Production-ready backend scaffolder for Node.js and Bun - Core library
The npm package bend-core receives a total of 3 weekly downloads. As such, bend-core popularity was classified as not popular.
We found that bend-core 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.