Practical software engineering knowledge, ready to reuse
Find real-world code recipes, design patterns, and reusable documentation across Python, Java, JavaScript, SQL, and more.
Why StackPractices?
Built for developers who value speed, clarity, and reusable knowledge.
Copy-paste ready
Code you can drop into your project and run immediately.
Multi-language
Examples in Python, Java, JavaScript, TypeScript, SQL, Bash, and more.
Community driven
Open knowledge base shaped by real-world engineering challenges.
Structured docs
Consistent templates and guides for maintainable documentation.
Browse by type
Choose the kind of resource you need for your project.
Free developer tools
Interactive utilities that run entirely in your browser — no signup, nothing leaves your machine.
LLM Token Counter & Cost Calculator
Count tokens exactly, estimate Claude and Gemini honestly, measure whitespace waste, compare prompt versions and project monthly API costs locally.
LLM Structured Output Generator
Turn example JSON into an OpenAI strict JSON Schema, Zod schema, Pydantic model and TypeScript interface with transparent compatibility warnings.
YAML ↔ JSON Converter & Validator
Convert YAML to JSON and JSON to YAML with multi-document support, exact error locations, anchor expansion and YAML 1.1 boolean warnings.
JSON Formatter, Validator & Diff
Format and validate JSON with exact error locations, syntax highlighting and a semantic diff that understands structure — not just lines.
JWT Decoder & Debugger
Decode JWTs locally with readable claims, expiration countdowns, security warnings and optional HMAC verification — nothing leaves your browser.
Diff Checker
Compare text and code online with line, word and character diffs, side-by-side view, patch export and secret-safe sharing — nothing is uploaded.
Hash Generator & File Integrity Checker
Generate SHA-256, SHA-512 and MD5 hashes, verify downloads without uploading files, compare checksums and sign HMAC webhooks locally.
Cron Expression Generator
Build or paste a crontab schedule — get a plain-language explanation and the next five execution times in your timezone.
cURL Command Studio
Parse curl commands, edit requests visually, convert them to fetch or Python requests, explain flags and redact secrets before sharing.
Browse by tag
Quick access to the most popular topics across all content.
Explore by Topic & Technology
Browse all resources organized by software engineering concepts like API Design, Authentication, and Testing — or by your favorite programming language.
Browse topicsLatest recipes
Fresh code solutions added to the knowledge base.
Implement API Rate Limiting with Redis
Protect APIs from abuse with Redis-backed token bucket and sliding window limiters, including burst handling and distributed coordination
Python API Rate Limiting with Token Bucket
Implement token bucket rate limiting in Flask and FastAPI with Redis support
Rate Limiting
How to implement API rate limiting using token bucket, sliding window, and fixed window algorithms across Python, JavaScript, and Java.
Latest guides
In-depth engineering guides connecting recipes and patterns.
Complete Guide to LLM Security
A practical playbook for securing LLM apps in production: prompt injection, jailbreaks, data leakage, agent permissions, and layered defenses.
Complete Guide to GraphQL Federation
Build and operate unified GraphQL APIs across multiple services with Apollo Federation. Covers subgraphs, supergraph composition, entity resolution, router deployment, security, and observability.
Complete Guide to Go Concurrency
Go concurrency in production: goroutines, channels, context, sync, worker pools, pipelines, rate limiting, shutdown, and leaks.