Jsbackend patterns
Skill Rixmerz/flowtrace-debugger/.claude/skills/jsbackend-patterns
JavaScript/TypeScript backend reference - Node.js 20/22, Deno 2, Bun 1.x, Edge Runtime. Server frameworks, ORMs, queues, observability, and production patterns for 2024-2025. Use when building backend services, selecting server frameworks, or reviewing server-side JS/TS code.From its SKILL.md
npx -y skills add Rixmerz/flowtrace-debugger --skill jsbackend-patternsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.0 KB, as published. Nobody here has run it
JS/TS Backend Architecture Reference (2024-2025)
Comprehensive reference for JavaScript/TypeScript backend architectural decisions. Use $ARGUMENTS to focus on a specific area, or browse all sections.
Note: For TypeScript type system features (generics, conditional types, mapped types, utility types), see the ts-patterns skill instead. This skill focuses on backend runtime concerns.
Quick Navigation
- For framework/library selection and comparisons, see frameworks.md
- For design patterns (singleton, factory, strategy, repository, Result), see design-patterns.md
- For architecture patterns (hexagonal, event-driven, CQRS, graceful shutdown), see architecture.md
- For best practices (error handling, async, logging, streams, DO/DON'T), see best-practices.md
- For runtime-specific features (Node.js 20/22, Deno 2, Bun 1.x, CF Workers, TC39), see language-features.md
Decision Framework
- Default API server: Performance -> Fastify. Enterprise DI -> NestJS
- Lightweight / Edge: Hono (runs on Node, Deno, Bun, CF Workers, Vercel, Lambda)
- Bun-native: Elysia (type-safe, fastest Bun framework)
- Full-stack monolith: AdonisJS 6 (Laravel-like, batteries-included)
- ORM: SQL-close -> Drizzle. Developer-friendly -> Prisma
- Testing: Always Vitest (fast, ESM-native, TS-native)
- Queues / Background jobs: BullMQ + Redis
- Validation: Zod (most popular) or Valibot (tree-shakeable)
Runtime Comparison
| Runtime | Version | Strengths | Trade-offs |
|---|---|---|---|
| Node.js 22 (LTS) | 22.x | Largest ecosystem, most stable, universal deployment | Slower cold start than Bun, no built-in TS |
| Deno 2 | 2.x | Security-first (permissions), native TS, npm compat, JSR | Smaller ecosystem, some npm packages need adapters |
| Bun 1.x | 1.2+ | Fastest runtime, all-in-one (bundler, test, install), native TS | Younger ecosystem, some Node APIs not yet implemented |
| CF Workers | — | Edge (300+ PoPs), global low latency, D1/KV/R2 | Limited runtime (no Node APIs), max execution time |
JS/TS Backend in Production
| Company | Stack / Result |
|---|---|
| Netflix | Node.js — reduced startup time by 70%, powers API gateway |
| Uber | Node.js — highest throughput services, real-time matching |
| Node.js — moved from Rails, 20x fewer servers | |
| PayPal | Node.js — double requests/sec vs Java, 35% faster response |
| Microsoft | Node.js — VSCode server (code-server), Azure Functions runtime |
| Vercel | Edge Runtime — Next.js middleware, global edge functions |
| Discord | Node.js + Fastify — API gateway serving 200M+ monthly users |
| Shopify | Deno — Remix/Hydrogen storefront engine |
Supporting Files
| File | Content |
|---|---|
frameworks.md | Framework comparison tables by domain |
design-patterns.md | Patterns with TypeScript implementations |
architecture.md | Hexagonal, Event-Driven, CQRS, Clean Architecture |
best-practices.md | Error handling, async, logging, production readiness |
language-features.md | Runtime-specific APIs, TC39 proposals, feature comparison |
Related Skills
- ts-patterns — TypeScript type system and tooling
- dev-patterns — Language-agnostic design principles
- qa-patterns — Testing strategies and quality gates
- devops-patterns — CI/CD, containers, and infrastructure