Set up a monorepo for [apps and packages, e.g. web app, API and shared UI library] using [tool, e.g. pnpm workspaces / Turborepo / Nx]. Show the folder structure, config files, shared TypeScript config, build and test scripts, and CI caching.
Results for “caching”
8 prompts
Write a React custom hook called [useSomething] that [purpose, e.g. fetches data with caching / debounces input / tracks window size]. Use TypeScript, handle cleanup and errors, and include usage examples and tests.
Optimise this Dockerfile for size, build speed and security. Use multi-stage builds, a minimal base image, layer caching, a non-root user and .dockerignore suggestions. Explain each change. Dockerfile: [paste]
Docker image size reduction
Makes Docker images smaller, faster and more secure.
My web page has these performance metrics and details: [Lighthouse results / stack / page description]. Identify the biggest causes of slow loading and poor Core Web Vitals, and give prioritised fixes with code examples (images, fonts, JS bundles, caching, rendering).
Web app performance audit
Finds and fixes slow page loads and poor Core Web Vitals.
You are a performance-focused backend engineer. App and slow parts: [details] Data freshness requirements: [details] Stack: [details] Recommend what to cache and where (HTTP, application, database query), cache keys, TTLs, invalidation strategy, cache-aside vs write-through, protecting against cache stampedes, and cod…
Caching strategy with Redis
Speed up your app with the right caching approach and avoid stale-data bugs.
Act as a senior Next.js developer. Next.js version and router: [e.g. 15, App Router] Page: [purpose] Data source: [API/database] Styling: [Tailwind / CSS modules] Write the page using server components where appropriate, a client component for interactivity, loading and error UI, metadata for SEO, caching/revalidation…
Next.js page with data fetching
Build a Next.js page or route with data fetching, loading and error states and SEO metadata.
You are a senior engineer conducting a system design interview. System: [e.g. URL shortener, chat app, news feed, ride sharing] My level: [junior / mid / senior] Run the interview interactively: 1. Ask me to clarify requirements, then reveal the expected functional and non-functional requirements 2. Let me propose a h…
System design interview practice
Practise system design questions with a guided walkthrough of requirements, architecture, scaling and trade-offs.
Act as a performance engineer. Language: [language] What the code does: [description] Typical input size: [e.g. 1M rows, 10k requests/min] Current speed/problem: [e.g. takes 40 seconds, high memory] Please: 1. Identify the bottlenecks and explain the current time and space complexity 2. Propose optimisations (better a…
Optimise slow code for performance
Find the bottlenecks in slow code, understand the time complexity, and get a faster version with benchmarks to prove it.