Module Catalogue

202 modules available

Frontend Blocks

useLocalStorage Hook

Typed React hook that syncs state with localStorage and handles SSR safely.

typescript · Intermediate · Oct 2024
Frontend Blocks

useFetch Hook with Abort

Data fetching hook with loading/error state and automatic request cancellation on unmount.

typescript · Intermediate · Oct 2024
Frontend Blocks

Glassmorphism Card

Pure Tailwind glassmorphism card with gradient border and background blur.

html · Beginner · Oct 2024
Frontend Blocks

Next.js API Route with Zod Validation

Type-safe Next.js API route that validates the request body with Zod.

typescript · Intermediate · Oct 2024
Frontend Blocks

Zustand Store Template

Minimal Zustand store with typed state, actions, and Redux DevTools.

typescript · Beginner · Oct 2024
Frontend Blocks

Accessible Focus-Trap Modal

Keyboard-navigable modal with focus trap and ARIA attributes. Closes on Escape.

typescript · Intermediate · Oct 2024
Frontend Blocks

Dark Mode Toggle Hook

Persist dark/light preference in localStorage and sync with Tailwind dark class strategy.

typescript · Beginner · Oct 2024
Frontend Blocks

Infinite Scroll via IntersectionObserver

Load more content as the user reaches the bottom — no scroll listeners, no jank.

typescript · Intermediate · Sep 2024
Frontend Blocks

Self-Dismissing Toast Component

Lightweight toast notification with success, error and info variants.

typescript · Beginner · Sep 2024
Frontend Blocks

useDebounce Hook

Generic React hook that debounces any value. Eliminates excessive API calls in search inputs.

typescript · Beginner · Sep 2024
Backend Boilerplates

Axios Interceptor with Token Refresh

Axios instance with auth token injection and automatic retry on 401.

typescript · Intermediate · Sep 2024
Backend Boilerplates

Laravel Event and Listener Pair

Scaffold for a Laravel event/listener pair with queued processing.

php · Intermediate · Sep 2024
Backend Boilerplates

Go Circuit Breaker Pattern

Simple circuit breaker for outbound HTTP calls in Go — open, closed, half-open states.

go · Advanced · Sep 2024
Backend Boilerplates

TypeORM Soft Delete Base Entity

Base entity class with soft delete, createdAt and updatedAt columns for TypeORM.

typescript · Advanced · Sep 2024
Backend Boilerplates

Laravel Eloquent Published Scope

Reusable Eloquent local scope to filter only published records.

php · Beginner · Aug 2024

Page 11 of 14