Building Smart Intervals with Svelte 5
A tutorial on building a reactive interval utility in Svelte 5 that automatically adapts to state changes without manual cleanup.
Puru Vijay is a full-stack web developer from India with 10+ years of experience, focused on building blazing-fast, highly performant web applications, with deep expertise in Svelte, modern testing, and frontend architecture.
40 articles from this blog
A tutorial on building a reactive interval utility in Svelte 5 that automatically adapts to state changes without manual cleanup.
Analyzes Svelte 5's reactivity, debunking its 'magic' by comparing its explicit signals to Svelte 4's compiler-based 'magic'.
Announcing Neodrag v3 Alpha, a complete rewrite of the JavaScript drag-and-drop library for major frameworks, focusing on performance and extensibility.
A developer details how a Svelte Summit talk inspired them to overhaul their flawed testing architecture for a drag-and-drop library, dramatically improving reliability.
A developer shares a type-safe persistence utility and auto-theming system built with Svelte 5 runes and Zod for robust local storage and theming.
A developer explains the exhaustive bundle size analysis of 16,384 plugin combinations for the modular drag-and-drop library neodrag v3.
The author announces Neodrag v3, a cross-framework drag-and-drop library, discussing its origins, motivations for the update, and future goals.
Analysis of the traverse npm package's bloat and the creation of neotraverse, a zero-dependency fork to address the issue.
Compares performance of TypeScript's `private` properties vs JavaScript's `#` private fields, concluding there's no practical difference.
A developer details their journey recreating macOS Big Sur's UI for the web, comparing performance and bundle sizes between React and Svelte implementations.
A JavaScript developer shares their personal experience and first impressions of learning the Go programming language, comparing it to their favorite language.
A guide to enabling TypeScript intellisense for CSS Modules in VSCode using a specific npm plugin, without needing extensions.
A deep dive into the Preact JavaScript library's source code, analyzing its architecture, TypeScript usage, and code efficiency.
A developer explains their reasons for switching from Styled Components to SCSS Modules for styling in React applications.
A tutorial on recreating the interactive macOS Dock animation using Svelte, Popmotion, and Vite in under 100 lines of code.
An advanced guide showcasing powerful built-in TypeScript utility types like Pick, Partial, Readonly, and Record to improve code quality.
A developer shares their quick experience migrating a medium-sized React app to Preact using Vite in under 10 minutes.
Explains a TypeScript type inference issue when custom React hooks return arrays and provides two solutions using tuples or 'as const'.
Explores the drawbacks of using TypeScript for library development and proposes an alternative approach to gain type safety without the build step.
A developer's enthusiastic personal reflection on the benefits and joys of using TypeScript for JavaScript development.