Skip to main content
Press?for shortcuts
sinew
PatternsPlaygroundGitHub
Interactive

Pattern Playground

Experience Sinew patterns in action. Each demo lets you interact with real code, see step-by-step explanations, and watch live logs as operations execute.

Caching

In-Memory LRU Cache

Watch the LRU (Least Recently Used) cache in action. See how entries are stored, accessed, and evicted when the cache reaches capacity.

5 actions5 steps

API

API Validation with Zod

See how Zod validates API requests in real-time. Try submitting valid and invalid data to see the validation errors.

3 actions4 steps

API Rate Limiting

Experience rate limiting firsthand. Click the button rapidly to see how the sliding window algorithm blocks excess requests.

4 actions4 steps

API Error Handling

See how custom error classes and error boundaries work together. Trigger different errors to see the consistent error responses.

6 actions3 steps

Monitoring

Structured Logging

Experience structured logging with Pino. Watch logs stream in real-time with different levels and see automatic redaction of sensitive data.

6 actions3 steps

Environment

Type-safe Environment Variables

See how Zod validates environment variables at startup. Invalid or missing variables are caught immediately, not in production.

4 actions4 steps

Authentication

Session Management

Manage user sessions with device tracking and automatic expiration. See active sessions across devices and revoke access.

5 actions4 steps

More interactive demos coming soon. Want to see a specific pattern? Let us know.