
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.
Framework Node.js/TypeScript que combina la simplicidad de FastAPI con el poder de NestJS, superado con IA integrada
Framework Node.js/TypeScript que combina la simplicidad de FastAPI con el poder de NestJS, superado con IA integrada.
Motor HTTP: Express.js
# Opción 1: Crear proyecto nuevo
npx flare-api init my-api
cd my-api && npm install && npm run dev
# Opción 2: Desde template
npx flare-api template ecommerce my-shop
# Opción 3: Manual
npm install flare-api
import { FlareApplication, Controller, Get, Post, Body } from 'flare-api';
import { IsString, IsEmail } from 'class-validator';
class CreateUserDto {
@IsString() name!: string;
@IsEmail() email!: string;
}
@Controller('/users')
class UserController {
@Get()
findAll() {
return { users: [] };
}
@Post()
create(@Body() body: CreateUserDto) {
return { message: 'User created', user: body };
}
}
const app = new FlareApplication({ globalPrefix: '/api' });
app.registerController(UserController);
app.listen(3000);
# Generar desde lenguaje natural
flare create "Crear API para gestionar productos con nombre, precio y descripción"
# Generar componentes
flare generate controller User
flare g service Product
# Templates
flare template ecommerce my-shop
flare template blog my-blog
flare template saas my-saas
const app = new FlareApplication({ aiWorkers: true });
// GET /api/observability
// - Explicaciones de endpoints
// - Métricas en tiempo real
// - Anomalías detectadas
// - Sugerencias de optimización
// Logs automáticos con contexto completo
// En producción: JSON estructurado
// En desarrollo: Formato legible
import { logger } from 'flare-api';
// Logger con contexto
const contextLogger = logger.withContext({
requestId: 'req-123',
traceId: 'trace-456'
});
contextLogger.info('User created', { userId: 123 });
import { flareORM } from 'flare-api';
const userRepo = flareORM.getRepository(User);
const users = await userRepo.find();
const user = await userRepo.create({ name: 'John' });
// O usar TypeORM directamente
import { DataSource } from 'typeorm';
const dataSource = await getDataSource();
// Opcional - importar solo si se necesita
import { apiGateway } from 'flare-api/gateway';
apiGateway.addRoute({
path: '/api/users',
service: 'user-service',
rateLimit: { windowMs: 60000, max: 100 },
circuitBreaker: true,
});
const app = new FlareApplication({ prometheus: true });
// Endpoint automático: GET /metrics
// Métricas: request duration, total requests, errors, active connections
// Se activa automáticamente
// - Helmet headers
// - CORS configurable
// - XSS Protection
// - HSTS
// - Rate Limiting
Flare API permite usar módulos solo si los necesitas:
La arquitectura se adapta a ti, no al revés.
GET /health - Health check completoGET /health/live - Liveness probe (Kubernetes)GET /health/ready - Readiness probe (Kubernetes)GET /api/observability - Métricas y explicaciones de IAGET /metrics - Métricas PrometheusGET /api-docs - Documentación Swagger| Característica | NestJS | Flare API |
|---|---|---|
| DI System | ✅ | ✅ |
| Guards | ✅ | ✅ |
| Interceptors | ✅ | ✅ |
| Pipes | ✅ | ✅ |
| Modules | ✅ | ✅ (Opcional) |
| CLI con IA | ❌ | ✅ ÚNICO |
| Visual Debugger | ❌ | ✅ ÚNICO |
| IA en Runtime | ❌ | ✅ ÚNICO |
| Workers para IA | ❌ | ✅ ÚNICO |
| Logs Estructurados | ⚠️ | ✅ Completo |
| Prometheus | ❌ | ✅ Integrado |
| API Gateway | ❌ | ✅ Separado |
| Zero-Config | ❌ | ✅ |
| Simplicidad | ⚠️ | ✅ Más simple |
Ver examples/complete-demo.ts para un ejemplo completo con todas las features.
npm run dev examples/complete-demo.ts
flare init my-api # Crear proyecto
flare create "description" # Generar desde lenguaje natural
flare generate controller User # Generar componente
flare template ecommerce # Crear desde template
flare test --generate # Generar tests
flare review # Code review
flare deploy docker # Generar configs de deployment
Flare API cumple con todos los requisitos para uso empresarial:
Construido sobre Express.js con bajo overhead. Optimizaciones:
npm install flare-api
# o
yarn add flare-api
Contribuciones son bienvenidas. Ver CONTRIBUTING.md para más detalles.
MIT License - ver LICENSE para más detalles.
Flare API: El framework más completo para APIs. 🚀
FAQs
Framework Node.js/TypeScript que combina la simplicidad de FastAPI con el poder de NestJS, superado con IA integrada
We found that flare-api 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.