Blog
Puru's Blog Everything web development, engineerring, procrastination, and life.
typescript svelte blog web array await post code find minutes nodejs promises Latest posts How neotraverse 1.0 turned a class into a tree-shakeable toolbelt of ~50 helpers, survived a deep security audit, and grew a stack-safe neotraverse/safe entry for the deep, untrusted trees recursion can't handle.
Jun 5, 2026 I got tired of rewriting the same AI boilerplate. So I wrote aibind.
Mar 6, 2026 How to build an interval that automatically adapts its timing when your app state changes—no manual cleanup required.
Jul 14, 2025 It's time to demystify Svelte 5's magic and see how it's actually just syntactic sugar.
Jun 28, 2025
Neodrag V3 Alpha is out! Here's a complete description of the new architecture,performance improvements, and how to use it with your favorite frameworks.
Jun 26, 2025 My Playwright drag-and-drop tests failed half the time and couldn't run on CI. Here's how I migrated to Vitest browser mode in 2 days and achieved 99% reliability with 60% faster runs.
Jun 21, 2025 Building bulletproof localStorage utilities with cross-tab sync, Zod validation, and automatic cleanup using Svelte 5 runes.
Jun 16, 2025 How building a modular drag-and-drop library led me to analyze every possible plugin combination and achieve radical bundle size transparency for developers.
Jun 14, 2025 Neodrag v3 has plugin system performance improvements, revamped architecture, deep-level of control
Jan 1, 2025 How life is just a bunch of buckets, a tap, and how to make the best of it.
Aug 4, 2024 This is the entire process of why and how I forked traverse npm package into neotraverse.
Jul 11, 2024 What are the performance differences between private and public count in JavaScript?
Jul 5, 2024 I recently moved macOS web from Preact to Svelte. Here's a firsthand account of my experience.
Aug 24, 2021 I have written JavaScript, TypeScript, Dart, Python, PHP, C, C++, but never tried golang before. Here is my first hand experience trying it out
Aug 18, 2021 If you're a TypeScript Dev, here are a few things you can do to get that sweet, sweet CSS class intellisense
May 14, 2021 Dive into Preact's source code and explore its simplicity
May 1, 2021
A little writeup of my reasons behind moving from Styled Components to SCSS modules, and the benefits I got out of this.
Apr 16, 2021 Let's make the beautiful macOS Dock animation using Svelte
Apr 2, 2021 There's a lot about TypeScript that most people don't know. I'll surface some of the "unknown" stuff in this blog post.
Mar 19, 2021 How I moved my 40+ components app from React to Preact in under 10 minutes
Mar 9, 2021 React and TypeScript make up a great pair. But when you're trying to make your own hooks, and returning an array, TypeScript yells at your. Find out why.
Feb 19, 2021 Wanna use TypeScript but don't want all the compiler and tooling overhead? Read on to know how.
Feb 12, 2021 TypeScript is cool. Super cool. It's made us Web Dev's life super easy. Read me being a total fanboy about it.
Feb 1, 2021 Completely get rid of callbacks in NodeJS and replace them with the great Promises.
Jan 25, 2021 The simplest and dependency-free way to create a folder in NodeJS if it doesn't exist
Jan 18, 2021 If you've spent some time with Node's fs API, you know how huge a pain its callback based pattern can get. Read out how to flatten your code using promises and async await syntax
Jan 11, 2021 Top level await is literally the GOAT (Greatest of All Time). In every way. Read on to know why, how to use it, and its implications
Dec 28, 2020 Are you a student? Then you better enroll yourself into getting the Github Student Developer Pack. So many great perks. Find out more about it.
Dec 20, 2020
Set up auto formatting in VSCode in just 5 minutes.
Dec 14, 2020 Just some random rant to make myself blog every week
Dec 9, 2020 It's easy to submit dirty PRs with unnecessary number of stowaway commits. Learn how to clean this up.
Dec 7, 2020 Using async await in array methods is quite tricky. But it gets even trickier when you chain multiple array methods. Find out how.
Sep 29, 2020 Simplify and clean your codebase by making setTimeout more idiomatic using Promises
Sep 28, 2020 Split an array into `n` number of multiple arrays with JavaScript
Sep 27, 2020 GIF to MP4 conversion for performance is all the rage nowadays. But doing so in practice is really difficult, especially for cross-browser compatibility. Learn how to do it right
Sep 25, 2020 In this post, I delve deep into how I automated image optimization on my blog.
Jun 29, 2020 In this post, I delve into the details of how I built the blogging with markdown system
Jun 28, 2020 In this post, I delve into the details of the design part of how I built my personal site with StencilJS and what did I use to do so.
Jun 27, 2020 Do you know adding a link with target=_blank has the potential of crashing your page and is very insecure? Find out how and its prevention.
Jun 9, 2020 Have you ever heard this term "Web Workers" mentioned somewhere and wondered what the hell is this new thing? let me introduce you to this great tech.
Jun 5, 2020 Efficiently and Asynchronously load Google Fonts based on Data Saver mode
Jun 5, 2020 How to detect route changes in StencilJS Router using the core StencilJS APIs. No dependencies.
Jun 3, 2020 Stencil Helmet can break the whole app really bad on some occasions, some so random that you might never find out why
Jun 2, 2020 My very first blog post on my very first functional site
May 31, 2020
← Prev ✦ Random Next → Visit ↗ Feed Kagi ↗