backend-patterns

Implements Node.js/Express architecture patterns with TypeScript, Drizzle ORM, and RS256 JWT security.

1|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/darkounus90/BOTTX3 --skill backend-patterns-darkounus90
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backend-patterns
Source: https://github.com/darkounus90/BOTTX3/tree/main/.agents/skills/backend-patterns
Command: npx skills add https://github.com/darkounus90/BOTTX3 --skill backend-patterns-darkounus90

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires drizzle-orm, express, jsonwebtoken, bullmq, redis, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps optimize backend architecture, enhancing security and maintainability in Node.js applications. It addresses challenges like API design, database optimization, and server-side best practices.

Core Features & Use Cases

  • API Design & Best Practices: Utilizes patterns for structuring applications with clear boundaries between layers.
  • Database Optimization: Implements Drizzle ORM with SQLite and Zod schema-first validation.
  • Security Practices: Incorporates RS256 JWT for authentication, RBAC middleware for permission management, and circuit breaker for resilience.
  • Use Case: Perfect for any project using Node.js, Express, TypeScript, and Drizzle ORM that requires advanced architecture patterns and security considerations.

Quick Start

Analyze your current backend setup with the backend-patterns skill and optimize for security and maintainability.

Frequently Asked Questions about backend-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement RBAC permission management with RS256 JWT authentication in Node.js?

To implement RS256 JWT authentication and RBAC permission management in Node.js, structure your Express application with dedicated middleware. This approach separates authentication logic from permission checks, ensuring secure API endpoints.

What is the best way to structure an Express API with TypeScript and Drizzle ORM?

The best way to structure an Express API with TypeScript and Drizzle ORM is applying architectural patterns that enforce clear boundaries between layers. Combine Drizzle ORM with Zod schema-first validation to optimize database operations.

How do I add circuit breaker and retry mechanisms to an Express backend?

Add circuit breaker and retry mechanisms to an Express backend by integrating resilience patterns directly into your request flow. This protects your Node.js services from cascading failures during downstream API outages.

Can I use BullMQ and Redis for background jobs in a TypeScript Node.js project?

Yes, you can use BullMQ and Redis for background jobs in a TypeScript Node.js project. This combination handles asynchronous task processing, freeing Express API endpoints from blocking heavy computational workloads.

Does this backend architecture pattern require SQLite, or can I use another database with Drizzle ORM?

This backend architecture pattern implements Drizzle ORM specifically with SQLite for database optimization. While Drizzle supports other databases, this configuration is tailored for SQLite environments using Zod schema-first validation.

Why do I need Zod schema-first validation in my Node.js API design?

You need Zod schema-first validation in Node.js API design to enforce strict type safety across your TypeScript application. Integrating Zod with Drizzle ORM prevents invalid data from reaching your database layer.