A lightweight, modular HTTP server framework for Node.js and Bun built with TypeScript. This is a framework project, not an API or application. The code here is meant to be used by other developers to build their own applications.
YinzerFlow is designed for developers who want:
- Security-first โ Built-in protections against common web vulnerabilities
- TypeScript-first โ Full type safety and IntelliSense support (JavaScript is supported natively)
- Pittsburgh personality โ Witty logging and error messages
- Flexible configuration โ Comprehensive options for different use cases
- Modular architecture โ Scales from simple APIs to complex applications
# Install
npm install yinzerflow
# or
bun add yinzerflowimport { YinzerFlow } from 'yinzerflow';
const app = new YinzerFlow({ port: 3000 });
app.get('/hello', () => {
return { message: 'Hello, World!' };
});
await app.listen();YinzerFlow works right out of the boxโno configuration required. However, plenty of configuration options are available.
For complete documentation, examples, and guides, see the docs/ folder:
- Core Concepts - Context, Request, Response, Routing, and Hooks
- Configuration - All configuration options
- Modules - Built-in modules (Rate Limiting, CORS, IP Security, Body Parsing)
๐ Official Documentation - Published docs with interactive examples
YinzerFlow includes comprehensive security features out of the box:
- Rate limiting - Protection against DoS attacks (enabled by default)
- IP security - Advanced IP validation and spoofing detection
- CORS protection - Configurable cross-origin resource sharing
- Body parsing limits - Protection against payload attacks
- Header validation - Automatic sanitization and size limits
- CRLF injection prevention - Secure header handling
MIT License - see LICENSE for details.