Skip to content

Latest commit

 

History

History

README.md

API Patterns Sandbox

Documentation index

Single-doc deep dives for each project and for shared algorithms: technical concept, lessons, and when to use. Linked from the main README.

API projects

Doc Project Detail / lessons
pagination pagination Page vs offset; OFFSET cost; consistency; UI vs API.
rate-limiter rate-limiter Token bucket, sliding/fixed window; storage; headers.
caching caching LRU/LFU/TTL; write-through vs write-behind; multi-level; hit rate.
security security Five auth methods; RBAC; HTTPS; JWT revocation; password hashing.
validation validation Schema + pipelines + batch; boundary validation; structured errors.
websocket websocket Raw WS vs Socket.IO; reconnect; rate limit; WSS.
autocomplete autocomplete Fuzzy search; debounce; cache; data sources; scale.
search-algorithms search-algorithms Exact, fuzzy, phonetic, n-gram, BM25; index; language.
concurrency-parallel concurrency-parallel I/O vs CPU; limited concurrency; worker pool.
dependency-injection dependency-injection Singleton/scoped/transient; testing; circular deps.
api-scenarios api-scenarios Full API reference: CRUD, streaming, bulk, auth, OpenAPI.
nextjs-backend Next.js API routes, Prisma, DI, CRUD; see project README.

Algorithms (src/algorithms)

Doc Source Detail / lessons
big-o big-o.ts O(1)–O(2^n) demos; benchmark harness; when to use.
ranking-algorithms ranking-algorithms.ts TF-IDF, BM25, cosine; custom/phrase/field-weighted; when to use, examples.
sorting-algorithms sorting-algorithms.ts Bubble, insertion, selection, merge, quick, heap; complexity; when to use.
sorting-data-generator generate-sorting-data.js Seeded test data for sorting correctness and perf tests.

Interview prep

Doc Description
Interview talking points FAQ-style answers: when to use which pattern (pagination, rate limit, cache, auth, etc.).

Reviews / supplementary

Doc Description
TypeScript advanced types review Review of src/ for generics, utility types, type guards, and type safety.