📰 Dev.to · Shaishav Patel
Articles from Dev.to · Shaishav Patel · 97 articles · Updated every 3 hours · View all reads
All
⚡ AI Lessons (10350)
ArXiv cs.AIDev.to · FORUM WEBDev.to AIForbes InnovationOpenAI NewsHugging Face Blog

Dev.to · Shaishav Patel
5d ago
Building a Word to PDF Converter in Next.js — Server-Side DOCX Text Extraction with Mammoth and PDF Generation with PDFKit
Converting a .docx file to PDF server-side comes down to two steps: extract the text content from the...

Dev.to · Shaishav Patel
6d ago
Building Snake in React — Canvas RAF Loop, Mutable Refs to Avoid Stale Closures, and Wall Wrap
Snake seems simple — move, eat, grow, repeat. But building it in React has a specific trap: if you...

Dev.to · Shaishav Patel
6d ago
Building a Browser-Side Image Compressor with Canvas API — Quality Presets, WebP Conversion, and ZIP Download
Image compression is usually a server job — you upload, the server runs ImageMagick or Sharp, sends...

Dev.to · Shaishav Patel
6d ago
Fetching YouTube Thumbnails Without the YouTube API — No API Key, No OAuth, No Backend
YouTube exposes all video thumbnails publicly through a predictable CDN URL — no API key, no OAuth,...

Dev.to · Shaishav Patel
6d ago
Building a Lorem Ipsum Generator in React — No Library, Custom Word Pool, Paragraphs/Sentences/Words
Most Lorem Ipsum generators use an npm package that's overkill for what is essentially random word...

Dev.to · Shaishav Patel
1w ago
Building a Typing Speed Test in React — WPM Calculation, Real-Time Char Diff, and Accuracy
A typing speed test has a few interesting implementation details: the WPM formula, real-time...

Dev.to · Shaishav Patel
1w ago
Building a Memory Card Game in React — Flip Animation, Match Detection, and Timer
A memory card game looks simple but has several interesting problems: preventing double-flips...

Dev.to · Shaishav Patel
1w ago
Building a Browser-Based Image Watermark Tool with Canvas API — Text Overlay, Opacity, Auto-Shadow
Adding a text watermark to an image is 20 lines of Canvas API. Making it look good — opacity,...

Dev.to · Shaishav Patel
1w ago
Building 5 Classic Browser Games in React — Canvas RAF, Pointer Events Drag & Drop, No Game Libraries
Five games. Five different architectural patterns. All client-side React, no game libraries, no...

Dev.to · Shaishav Patel
1w ago
Building a Sudoku Game in React — Backtracking Solver, Puzzle Generation, Notes Mode, and Hints
Sudoku has more implementation depth than it looks. You need a solver (backtracking), a puzzle...

Dev.to · Shaishav Patel
1w ago
Building Brick Breaker in React — Ball Physics, AABB Collision, and Power-Ups on Canvas
Brick Breaker is the canonical "how do you handle collision?" game. The ball hits a brick, the brick...

Dev.to · Shaishav Patel
1w ago
Building Snake in React with Canvas + requestAnimationFrame — All State in Refs, No Stale Closures
Snake is a deceptively simple game to describe and surprisingly tricky to implement correctly in...

Dev.to · Shaishav Patel
1w ago
Converting Images to WebP in the Browser with Canvas API — Quality Control, Format Detection, No Server
WebP images are 25–35% smaller than JPEG and up to 80% smaller than PNG at equivalent visual quality....

Dev.to · Shaishav Patel
1w ago
Server-Side PDF Encryption with pikepdf in a Next.js App (No qpdf Required)
Most of our tools at Ultimate Tools run entirely in the browser — pdf-lib for merging, Canvas API for...

Dev.to · Shaishav Patel
1w ago
Building a Markdown to HTML Converter with Live Preview in Next.js
We built a browser-based Markdown to HTML converter for Ultimate Tools that updates in real time as...

Dev.to · Shaishav Patel
1w ago
Write Markdown, Get HTML — Here's How to Convert Between Them Instantly
You wrote your README in Markdown. Now someone needs it in HTML. Or you drafted a blog post in...

Dev.to · Shaishav Patel
1w ago
Convert HTML to PNG in the Browser Using SVG foreignObject (No Library)
There are plenty of libraries for converting HTML to an image — html2canvas, dom-to-image,...

Dev.to · Shaishav Patel
1w ago
How to Turn Any HTML Into a Shareable Image (OG, Twitter Card, Story)
You need an OG image. Or a Twitter card. Or a banner for your blog post. You open Figma. Or Canva....

Dev.to · Shaishav Patel
1w ago
9 Free Image Tools That Run Entirely in Your Browser (No Upload, No Signup)
You just need to resize a photo. Maybe crop a screenshot. Or slap a watermark on a batch of product...

Dev.to · Shaishav Patel
1w ago
Removing White Backgrounds from PDFs: Building a PDF to Transparent PNG Tool with PDF.js and Canvas
PDF files do not support transparency. Every PDF renderer — browsers, Acrobat, Preview — paints...

Dev.to · Shaishav Patel
1w ago
What Is Base64 Encoding and Why Do Developers Use It Everywhere
You have probably seen strings like this in code, APIs, or data URLs: SGVsbG8gV29ybGQ= ...

Dev.to · Shaishav Patel
1w ago
Building a Client-Side JSON Formatter and Validator in Next.js
JSON tooling is one of those things every developer reaches for constantly — debugging API responses,...

Dev.to · Shaishav Patel
1w ago
Stop Squinting at Minified JSON — Here's How to Format It Instantly
You got a JSON response from an API. It looks like...

Dev.to · Shaishav Patel
1w ago
Stop Paying $50/Month for Dynamic QR Codes
You've probably seen QR codes everywhere — restaurant menus, business cards, event posters, product...
DeepCamp AI