DevIdiot!
Why You Should Never Paste Production JWTs Into Server-Side Decoders (and How Web Crypto Solves It)
Every time you copy an Authorization: Bearer eyJ... header out of Chrome DevTools or Postman to debug a 401 Unauthorized response, that token is live credential material.Until its exp Unix timestamp expires, anyone who captures it—via reverse-proxy logs, APM crash traces, or unvetted third-party web tools—can replay that session. Worse, pasting an HS256 signing secret into a remote server lets an attacker mint valid admin tokens indefinitely until keys are rotated across every microservice.Becau
Validating EAN and UPC barcodes in JavaScript, and catching what Excel does to them
If you build anything that handles product data, like an inventory app, a store import or a label printer, you will get barcode numbers from spreadsheets. Some of them will be broken, and nothing will tell you.This post covers two things:How the GS1 check digit works (EAN-13, UPC-A, EAN-8, GTIN-14) and a short JavaScript function to validate it.Five ways spreadsheets corrupt barcode numbers, and how to catch each one before you print 500 wrong labels.All code is plain JavaScript with no dependen
Fuel consumption from fill-up records: full-to-full intervals and exact unit conversion
If you have ever built a fuel log, you probably divided litres on a receipt by kilometres since the last receipt. That gives a number every time, and it is wrong most of the time. Here is the model that gives a number only when it can be right. Rule 1: consumption exists only between two full fillsA tank you filled to the top is a known state. A partial fill is not. So an interval is:start: a confirmed full fill (odometer reading A)end: the next confirmed full fill (odometer reading B)fuel
Break-even in integer cents: ceiling division, and why 1,333 units is the wrong answer
Break-even looks like one division: fixed costs divided by what each sale leaves (price minus unit cost). The bugs are in the details around it: floats, rounding direction, and a percentage that is really a ratio of two money amounts. Keep money in integer centsconst fixed = 960000n; // $9,600.00const price = 1200n; // $12.00const unitCost = 480n; // $4.80const contribution = price - unitCost; // 720n = $7.20BigInt (or plain integers below 2^53) means $12.00 - $4.80 is exactly $7.20
I built 67 file tools that never upload your files. Here's how the browser does it all
Disclosure: I'm the founder of Capy Files. This post is about how it works, including the parts that were hard.Most "free online PDF tools" work the same way: you upload your file to their server, they process it, you download the result. That's fine for a meme. It's less fine for a payslip, a contract, a medical letter or a client's tax return.So I wanted to see how far a browser can go on its own. The answer turned out to be: almost all the way. Capy Files does PDF editing, redaction, compress
Shrink an image to exactly 100 KB in your browser — no upload
Every form has an image size limit. A passport photo, a university application, a job portal: "JPG under 100 KB." So you open an online compressor, upload your photo to a stranger's server, and hope the result lands under the limit. There is a better way to do the same job, and it never uploads anything.The trap: 100 KB is not 100,000 bytesMost compressors count 1 KB as 1,024 bytes. A 100 KB target therefore allows up to 102,400 bytes — and a portal with a 100,000-byte limit rejects it. If the f
I Audited apify.com 14 Times in 25 Days. The H1 Changed Six Times, the Score Never Moved
I run a visa agency in Bali, and the rest of my week goes into Apify Actors. One of them is an on-page SEO checker: you give it page URLs (or one domain to crawl) and it returns one row per page with the status code, an on-page score from 0 to 100, every issue it found written as a sentence with a priority, and the raw facts behind it: title, meta description, H1, canonical, meta robots, page size, load time, links, broken links, images without alt text, schema.org types.The default input is two
How to build a meeting bot in 2026 — the three ways, with working code
First published on meetful.com.Every "meeting bot" you have ever seen in a Zoom, Google Meet or Teams call — Otter, Fireflies, Read, Fathom, the one your sales team runs — is the same object underneath: a web browser, running in a container on somebody's cluster, that opened the meeting link and clicked Join. There is no generally available bot API in Zoom, Meet or Teams that hands a program the audio. (Google's Meet Media API will, one day — as of September 2026 it is a Developer Preview in whi
Hello DEV Community! I'm Sam Perez, Founder of Point Zero 👋
Hi everyone! I'm Sam Perez, founder of Point Zero, a web development company based in Spring, Texas.I’m passionate about building modern, user-friendly websites that help businesses establish a strong online presence. At Point Zero, we focus on custom web development, responsive web design, eCommerce solutions, WordPress, Shopify, and web applications.My goal is to help businesses turn their ideas into effective digital experiences through creative design and practical technology.I'm excited to
Building frame-accurate browser video review without forcing clients to sign up
Every freelance video editor I know has lived through the same painful loop. You export a rough cut, upload it to Google Drive, send the link over WhatsApp, and get back a text like:"Around 1:32 can you move the text slightly left and brighten the shot?"Then you spend 20 minutes scrubbing back and forth across your timeline trying to guess which exact frame they meant.Existing review tools solve this well, but most charge $15 to $25 per seat every month and push clients through invite emails or
Designing for AI: How Generative UI is Changing the Landscape of Modern Web Experiences
For decades, web design has operated under a single, fundamental constraint: anticipation. As designers and developers, we spend months mapping user flows, wireframing edge cases, and building responsive grids. We try to anticipate every possible action, device size, and user intent. The result is a web of templates—polished, functional, but ultimately rigid.Enter Generative UI.Generative UI is a paradigm shift that turns this model on its head. Instead of forcing users to navigate pre-built lay
I built a cartoon talk show where 6 AIs roast each other about money. Here's the pipeline.
Every week, Claude, Grok, Codex, DeepSeek and Alisa stand at podiums in a fake late-night TV studio and argue about real tech news. I'm the host. I get banned in most episodes.Episode 3 is about Nvidia investing in the companies that buy its chips. Claude calls it an investment cycle. DeepSeek says in China they'd summon you for questioning over a scheme like that. Grok says in America they elect you president.Here is the channel trailer: The castEvery character gets one trait and never
ka-table 13: a fully free React data grid with keyboard navigation and virtual columns
I’m Alexander, the maintainer of ka-table, an MIT-licensed data grid for React. I’ve just released version 13.The project has one simple rule: there is no paid edition. Sorting, filtering, grouping with summaries, tree data, editing, selection, fixed columns, virtualization and customization are all in the same MIT package.Version 13 is a major overhaul focused on accessibility, rendering performance, TypeScript and styling. Here is what changed and where ka-table might fit into your project.
Next.js ships dangerouslySetInnerHTML twice: once in the HTML, once in the RSC payload
In the Next.js App Router, a server component that renders HTML with dangerouslySetInnerHTML sends that HTML twice: once in the page's HTML, and again, escaped as a string, in the inline React Server Components payload that hydration reads. For a long markdown article the payload copy can be bigger than the article. One of my case-study pages was 512 KB of HTML against a 520 KB budget: 181 KB of article and 280 KB of RSC payload. Sending each body only once, in the static HTML, brought that page
CSS Modules in React
1. What are CSS Modules in React?When building React applications, styling components is an important part of creating a beautiful and user-friendly interface. But as an application grows, normal CSS files can cause a common problem: CSS class name conflicts.Imagine two components using the same CSS class name, such as button. If both styles exist in a global CSS file, one component's styling may unintentionally affect another.CSS Modules solve this problem by making CSS class names locally scop
3 apps I built and shipped as a solo dev: PK Launcher, Flownook and Wispify
Hi, I'm Ahmad Raza, known online as MrReal. I run Team RealHackers and ship desktop and web apps solo. Here are three I've launched. PK LauncherA fast Minecraft launcher with a built-in FPS boost.Site: https://mrrealorg.github.io/pk-launcher-web/Trailer: FlownookA desktop productivity app built with Tauri and Rust.Site: https://nook-web-7cj.pages.dev WispifySite: https://mrrealorg.github.io/wispify-web/ StackNext.js, React, TypeScript, Tauri, Rust, Cloudflare Wor
Show DEV: hitting an exact KB limit for photos and PDFs, entirely in the browser
Government and exam portals love rules like "photo must be between 20 KB and 50 KB" or "PDF must be under 200 KB". Most compressors give you a quality slider and leave you to guess. I wanted a tool where you type the limit and get a file that fits, without the file ever leaving the browser.That became FitTheFile. This post is about the part that turned out to be more interesting than I expected: actually landing under a byte limit with plain browser APIs. There is no "encode to N bytes" API
Supabase anon key vs service_role key: what is safe to ship in your frontend
Short answer: the anon key is designed to be public. The service_role key must never leave your server. If a service_role key is in your browser bundle, rotate it today.Anon key. It identifies your project and acts as the "anonymous" or "authenticated" role. What it can read or write is decided by Row Level Security policies. So the anon key is only as safe as your RLS.Service role key. It bypasses RLS completely. Anyone holding it can read and change every row.How it leaks in AI-built apps. Bui
PDF to Text in Your Browser: pdf-lib Can't Extract Text, but pdf.js Can
If you want the words out of a PDF without uploading the file anywhere, the answer is one function: page.getTextContent() from Mozilla's pdf.js. And if you already build PDF tools with pdf-lib — the library from my merging post — here is the thing nobody tells you until you waste an afternoon on it: pdf-lib cannot extract text at all. Both "do PDFs in JavaScript", but they do opposite halves of the job, and picking the wrong one is the most common dead end in browser PDF work.Below: what pdf.js
We built a 60 FPS JS + WebAssembly crackme to test if code protection has to lag (Syferit v2.1)
If you have ever tried running a heavy JavaScript obfuscator on a real production app, you already know the two usual outcomes:Your Next.js or Vite build either takes 25 minutes or crashes with a V8 Out-Of-Memory error on third-party vendor chunks.Frame rates and Core Web Vitals tank because the runtime wrapper adds milliseconds to every hot function call.And on top of that, traditional variable renaming (a, _0x1f2a) barely slows down modern reverse-engineering workflows anymore. Frontier LLMs p