Resilient tRPC / Express API Router with JWT & Rate Limiting
Constructs a resilient Node.js / TypeScript API router featuring token bucket rate limiting, JWT verification, and standardized error responses.

Customize Placeholders in Real-Time
Define your service name and the resource endpoints to scaffold.
Build an enterprise-grade backend API router in TypeScript (Express or tRPC) for [API_SERVICE_NAME]. Architecture requirements: 1. Middleware Pipeline: - Structured JSON logging with request-id tracing (Winston / Pino). - Redis-backed sliding window rate limiter (100 requests per 15 minutes per IP/Token). - Strict CORS configuration and security headers with Helmet. - JWT authentication middleware parsing Bearer tokens with cryptographic expiration checks. 2. Endpoints / Procedures: - GET /api/v1/[RESOURCE]: Pagination with cursor support, sort direction, and field filtering. - POST /api/v1/[RESOURCE]: Idempotency key header handling to prevent duplicate billing or writes. 3. Error Handling: - Global error handler catching Zod validation errors, database constraint violations, and unhandled rejections. - Return standardized RFC 7807 Problem Details JSON format. 4. Integration Test: Supertest suite covering rate limit exhaustion (429) and invalid token rejection (401).
Optimization Tips & Parameters
Idempotency keys on POST requests prevent duplicate customer charges during network retry spikes.
Associated Tags & Use Cases
More web app development Prompts
View full library →
4:5Launch Your App for Free: Simple Free Deployment Stack
A short, simple guide to launch any app for ₹0. The free stack, one by one: 1. Cloudflare Pages — free hosting for your app 2. Neon — free PostgreSQL database for your app data 3. Clerk — free sign-up and Google/GitHub login 4. Resend — 3,000 free emails per month 5. Cloudflare R2 — 10 GB free storage for files and images 6. Vercel — free one-click deployment Follow the 5 simple steps below, connect these tools, and put your app live without spending anything.
Help me launch my app [APP_NAME] for free. Keep every step simple and short. Use only these free tools: 1. Neon — free PostgreSQL database. Tell me how to create a project and where to paste the connection link. 2. Clerk — free login. Tell me how to add sign-up and Google/GitHub login. 3. Cloudflare R2 — free file storage (10 GB). Tell me how to store user files and images. 4. Resend — free email (3,000 emails per month, up to 100 per day). Tell me how to send a welcome email. 5. Deploy my app — pick ONE: Vercel (one-click deploy) or Cloudflare Pages (free hosting). Connect my GitHub repo [REPO_URL] and list every secret key I must add in Settings before I click Deploy. Rules: - Never put secret keys in the code. Keys go in Settings only. - After each step, give me one small test so I can check it works. - End with a short checklist. - Also tell me what is NOT free: Google Play and Apple app store fees, and anything above the free limits.
1:1Clone Any AI Tool for Free
Turn any reference website into your own complete, fully functional product. Research the reference, rebuild it as an original app with local AI models, and ship it with zero paid APIs or services — here applied to a full AutoCaption Studio with video upload, local Whisper transcription, editable subtitles, and export.
# Full Website Recreation & Product Development Act as a senior product engineer, UI/UX designer, software architect and AI developer. Your task is to research, analyse and build a complete, fully functional, original AutoCaption Studio using the following reference website and the Replica Skill framework. ## 1. Reference Website **REFERENCE WEBSITE URL:** [PASTE YOUR REFERENCE WEBSITE URL HERE] **Replica Skill Repository:** [https://github.com/Jakeschincariol/replica-skill](https://github.com/Jakeschincariol/replica-skill) First, inspect the entire publicly accessible reference website. IMPORTANT: Do not analyse or recreate only its homepage or one particular feature. Study the complete website and product experience, including: - Homepage and all publicly accessible pages. - Complete UI layout and design system. - All available features and tools. - User workflows and interactions. - Upload and processing interfaces. - Editors, dashboards and settings. - Export options and output functionality. - Navigation, menus, modals and user interactions. - Responsive layouts and mobile experience. - Publicly documented functionality. Identify the product's overall architecture, feature set, user experience and functionality before starting development. ## 2. Product Development Build my own complete product called **AutoCaption Studio**. Use the reference website to understand the overall product experience and relevant functionality. Create an independent product with: - Original branding and identity. - Original UI design. - Complete frontend and backend wherever required. - Functional features, not just UI mockups. - Smooth and responsive interactions. - Professional-quality user experience. Do not copy proprietary source code, logos, trademarks, images or copyrighted content. ## 3. Core AutoCaption Features The application should support: - Video uploading. - Automatic speech-to-text transcription. - AI-generated subtitles with timestamps. - Editable subtitle text. - Subtitle timeline and video preview. - Multiple caption styles and fonts. - Text colours, backgrounds and positioning. - Word highlighting and caption animations. - SRT and VTT export. - Export video with permanently embedded subtitles. - Video format support for common creator workflows. Use locally running open-source speech recognition models such as Whisper. ## 4. STRICT ZERO-PAID-COST POLICY THIS IS A CRITICAL REQUIREMENT. I want to build and run this product without paying for external services. DO NOT integrate or use: - OpenAI paid APIs. - Gemini paid APIs. - Anthropic or Claude APIs. - Any paid AI transcription API. - Any paid text-to-speech or image-generation API. - Paid SaaS integrations. - Paid third-party plugins or libraries. - Paid hosting or cloud infrastructure. - Paid database services. - Paid authentication services. - Paid storage services. - Paid model inference services. - Any subscription-based dependency. Use only: - Free and open-source libraries. - Locally running AI models. - FFmpeg for video processing. - Free development tools. - Local storage or free alternatives. - Free hosting options where suitable. Do not introduce API keys, billing accounts, credit-based services or hidden paid dependencies. If a feature cannot be implemented without a paid service, DO NOT silently add one. Explain the limitation and suggest a genuinely free alternative. The application must be capable of running locally without requiring a paid API key. ## 5. Development Framework Use the following tools where appropriate: - Replica Skill for reverse engineering, architecture, design, development and testing. - Muse as the primary development environment. - React / Vite / TypeScript. - Tailwind CSS. - Open-source local AI models. - FFmpeg for video processing. - IndexedDB or SQLite for local data storage. Choose the architecture based on actual technical requirements rather than adding unnecessary dependencies. ## 6. Development Instructions Follow this workflow: 1. Analyse the complete reference website. 2. Document its relevant features and user workflows. 3. Prepare the complete product architecture. 4. Design the original AutoCaption Studio interface. 5. Build the frontend and backend. 6. Integrate local Whisper transcription. 7. Implement subtitle editing and video export. 8. Test all major workflows. 9. Fix bugs and verify functionality. 10. Prepare the application for launch. Do not stop after creating a landing page or frontend prototype. Build a genuinely functional application. Before considering development complete, verify that a real video can be uploaded, transcribed, edited and exported successfully. ## 7. Final Objective I want a professional, production-quality AutoCaption Studio that provides a complete user experience, takes inspiration from the overall reference product, and works without paid AI APIs or paid third-party services. Prioritise functionality, performance, clean architecture, usability and zero recurring API expenses. Start by inspecting the repository and reference website. Then prepare a detailed implementation plan and begin development.