Module Catalogue

31 modules available

Frontend Blocks

Next.js Metadata API

Dynamic Open Graph metadata generation per page using the Next.js 14 Metadata API.

typescript · Intermediate · Oct 2025
Frontend Blocks

React Query Mutation with Optimistic Update

Optimistically update the UI before a mutation resolves, then rollback on error.

typescript · Intermediate · Oct 2025
Frontend Blocks

useMediaQuery Hook

React hook that returns true when a CSS media query matches.

typescript · Intermediate · Nov 2024
Frontend Blocks

React Error Boundary

Class-based Error Boundary component that catches render errors and shows a fallback UI.

typescript · Intermediate · Nov 2024
Frontend Blocks

CSS Custom Scrollbar

Cross-browser custom scrollbar styling with Webkit and Firefox fallback.

css · Beginner · Nov 2024
Frontend Blocks

Virtual List Component

Render only visible rows in a large list for smooth performance with thousands of items.

typescript · Advanced · Nov 2024
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

Page 2 of 3