Explore the complete collection of modular backend bricks. Each brick is a self-contained feature ready to plug into your LegoAPI project.
Let users save and organize items. Includes add, remove, list, and toggle functionality with user association.
Full cart functionality with add, remove, update quantity, and checkout preparation. Handles stock validation.
Complete JWT-based authentication with register, login, logout, and protected routes middleware.
Allow users to rate and review products. Includes average rating calculation.
Accept payments using Stripe Checkout. Handles session creation and webhook fulfillment.
Upload images or files to Cloudinary using Multer. Returns secure URL.
Protect your API from abuse using express-rate-limit. Configurable window and max requests.
Simple contact form submission endpoint. Stores inquiries in database and validates email format.
Full-featured blog system with slugs, tags, publishing status, and author association.
Nested commenting system for any resource (Product, Post, etc). Supports parent/child relationships.
Endpoints for users to manage their own profile, including password updates and avatar uploads.
Admin-only endpoints to list, update, and delete users.
Track events and page views. Aggregates data by event type or date.
Auto-generated API documentation using Swagger UI. Reads definitions from JSDoc comments.
Generate and validate API keys for external access to your API.
High-performance in-memory data store for caching and session management.
Accept payments using Stripe Payment Intents API.
Enterprise-grade role management. Assign roles (admin, editor) to users and enforce permissions via middleware.
Social graph functionality. Allow users to follow each other, list followers, and see who they are following.
Universal like/reaction system. toggleLike endpoint works for any entity type (post, comment, product).
Track content sharing across platforms. Useful for analytics and engagement metrics.
Allow users to report abusive content (posts, comments, users). Admin APIs included to resolve reports.
Prevent interaction. Users can block others. Includes middleware to block requests from blocked users.
Core admin features: List users, ban users, system stats. Combine with RBAC for security.
Immutable financial ledger. Record credits, debits, and payments. Essential for any fintech or marketplace app.
System control to throttle or disable features globally during high load or maintenance.
Emergency Kill Switch. Instantly rejects all non-admin traffic with 503 Service Unavailable.