express

Solid

Express.js middleware patterns, routing, error handling, security, and production best practices.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Express Skill Expert assistance for building Node.js APIs with Express.js. ## Capabilities - Configure Express applications with middleware - Implement RESTful routing patterns - Handle errors with custom middleware - Apply security best practices - Set up validation and parsing - Configure production deployments ## Usage Invoke this skill when you need to: - Build REST APIs with Express - Implement middleware pipelines - Handle errors gracefully - Add authentication/authorization - Set up API documentation ## Inputs | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | routePath | string | Yes | Route path prefix | | methods | array | Yes | HTTP methods | | middleware | array | No | Middleware to apply | | validation | boolean | No | Add validation | ## Patterns ### Application Setup ```typescript // src/app.ts import express, { Express, Request, Response, NextFunction } from 'express'; import cors from 'cors'; import helmet from 'helmet'; import compression from 'compression'; import morgan from 'morgan'; import { rateLimit } from 'express-rate-limit'; import { errorHandler, notFoundHandler } from './middleware/error'; import { usersRouter } from './routes/users'; import { authRouter } from './routes/auth'; export function createApp(): Express { const app = express(); // Security middleware app.use(helmet()); app.use(cors({ origin: process.env.CORS_ORIGIN || 'http://localhost:3000', credentials: true, ...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Integrates with

Related Skills