Smithery Logo
MCPsSkillsDocsPricing
Login
Smithery Logo

Accelerating the Agent Economy

Resources

DocumentationPrivacy PolicySystem Status

Company

PricingAboutBlog

Connect

© 2026 Smithery. All rights reserved.

    kprsnt2

    express

    kprsnt2/express
    Productivity

    About

    SKILL.md

    Install

    Install via Skills CLI

    or add to your agent
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    ├─
    ├─
    └─

    About

    Express.js server best practices including middleware, error handling, and security.

    SKILL.md

    Express.js Best Practices

    Project Structure

    • src/routes/ for route handlers
    • src/middleware/ for middleware
    • src/controllers/ for business logic
    • src/models/ for data models
    • src/utils/ for utilities

    Middleware

    • Use helmet for security headers
    • Use cors for CORS handling
    • Use morgan for logging
    • Use compression for gzip
    • Use express.json() for body parsing
    • Order middleware correctly

    Error Handling

    • Use async error wrapper or express-async-errors
    • Centralized error handler middleware
    • Send appropriate status codes
    • Log errors with context
    • Never expose stack traces in production

    Security

    • Validate all inputs with Joi/Zod
    • Sanitize user data
    • Use rate limiting
    • Implement CSRF protection
    • Use secure session config

    Performance

    • Use caching (Redis)
    • Implement pagination
    • Use streaming for large responses
    • Enable gzip compression
    • Use connection pooling for databases
    Recommended Servers
    Vercel Grep
    Vercel Grep
    Cloudflare
    Cloudflare
    OpenZeppelin
    OpenZeppelin
    Repository
    kprsnt2/mylocalcli
    Files