DevIdiot!
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
Optimize Images and PDFs in the Browser, No Uploads Needed
Page weight is mostly imagesThe fastest performance win on most sites is smaller images. Compressing and resizing before upload beats any caching trick. Compress and resizeRun photos through an Image Compressor to cut file size, and an Image Resizer so you never ship a 4000px image into an 800px slot. Convert formats with an Image Format Converter when you need WebP or JPG instead of a heavy PNG. Inline small images carefullyAn Image to Base64 Converter is handy for tiny icons in
Why Your Discord & Telegram Bot Sleeps on Free PaaS (And How to Run It 24/7 on x86 Docker)
If you have ever deployed a Discord or Telegram bot to a free web hosting tier only to watch it silently go offline 15 minutes laterāor lose its local sqlite.db / .session file on every restartāyou ran into an architectural mismatch, not a bug in your code.Most modern free PaaS tiers (like Render's free Web Service or Koyeb's scale-to-zero instances) are designed for inbound HTTP request/response apps, not long-lived outbound worker processes.Let's break down why that happens and how to deploy a
Show DEV: Beating the Browser Memory Ceiling ā Streaming 50GB WebRTC Files Direct-to-Disk with OPFS (Part 3)
TL;DRš Live Web App (Free, Zero Signup): air-stream.pages.devā GitHub Repo (MIT): github.com/QuantumTechCoder/AirStreamš The Series So Far:Part 1: AirStream ā Stream Gigabytes Browser-to-Browser with WebRTCPart 2: Monetizing an Open Source WebRTC App Without Stripe or Subscriptions The Hidden Trap of WebRTC File TransfersIf you read any WebRTC file transfer tutorial online, you'll see people celebrate Backpressure Control:"Just monitor dataChannel.bufferedAmount! If the buffer exceeds 1MB,
Building, Learning & Sharing. A developer's journey through code, creativity, technology and continuous learning.
Welcome to Emini_David!This is my personal space for documenting my journey in software development, exploring technology, and sharing knowledge with the developer community.Here, I'll write about frontend development, JavaScript, React, Node.js, backend engineering, UI/UX, graphic design, and the practical lessons I learn while building real-world projects.My goal is simple: Learn continuously, build meaningful things, share what I discover, and grow alongside other developers.Let's build, lear
Text Cleanup Tools Every Developer Should Bookmark
Text is the universal interfaceLogs, prompts, CSVs, copy-pasted docs: a huge amount of dev work is cleaning text before it is useful. These browser tools handle the repetitive parts. Count before you commitA Word & Character Counter tells you whether that meta description, tweet, or prompt fits its limit before you ship it. Remove duplicates from logs and listsRemove Duplicate Lines turns a noisy log dump or keyword list into a unique set in one paste. No spreadsheet formulas
500,000 Shapes on a 2D Canvas: What Helped, and What Made It Slower
I build KulmanLab CAD, a free 2D CAD that runs in the browser. It has no backend, it opens DXF files, and everything is drawn with plain Canvas 2D.CAD files are a good stress test: hundreds of thousands of lines, arcs, text labels and hatches, and a user who expects panning and zooming to stay smooth.Here is what I learned, written as problems and fixes you can reuse in any canvas app: a map, a diagram editor, a node graph or a chart.The timings are my own measurements, mostly in a headless brow
Make the agent reuse the existing empty-state component, not a one-off dashed box
The PR handles "no items" with a dashed border, a generic "Nothing here," and a one-off button. The repo already has an EmptyState (or BlankSlate) component with a slot for an icon, a title, a short description, and the primary action. Nearby lists use it. The new box uses different spacing, a different heading level, and a CTA that does not match the existing empty-state tone.I've started treating a homemade empty box as a missed component, not as a lighter placeholder. The dashed border is eas
Kagelin v1.53.0: pulling dates out of task titles, and moving the mobile drawer to Base U
Kagelin is a local-first task, habit, and calendar app built on Next.js 16 with Supabase for sync. v1.53.0 is mostly a feel release: quick capture, motion, and contrast. Two changes were big enough to be worth writing down. Quick-add now understands dates, and the mobile drawer runs on Base UI instead of Vaul. The date should not be part of the task titleThe old flow worked but had its flaws once I watched someone use it. You type pay rent by Friday, and you get a task called "pay rent by F
I benchmarked 8 Gemini models to build a "Spotify Wrapped" for couples
Couples write each other thousands of messages over the years ā good mornings, inside jokes, late-night "you up?", the first "I love you." And then it all just⦠scrolls away.My friend and I built TwoUs to bring that back. What it doesUpload your WhatsApp chat export, and TwoUs turns it into an interactive deck of cards about your relationship:š¬ Your first messages: how it all startedš Inside jokes you forgot you hadā° Who texts first, who replies fastest, who says sorry morešÆ Guess-first car
Next.js 16 RSS feed: why your rss.xml route builds as dynamic, and how to fix it
I added an RSS feed to a fresh Next.js 16 project. The build passed and the feed worked, but the route table said this:ā Ę /rss.xmlĘ means dynamic. Every feed reader poll would read the posts from disk and rebuild the XML, and Next.js gave no warning about it.This post builds a feed with an App Router route handler, explains why it ends up dynamic, and shows the fix for a server deployment and for a static export. Everything here was tested on Next.js 16.4.6 and React 19.3.0 with a project from
Build a ToolJet App from a Figma Design with AI Builder
Attach a Figma PNG to ToolJet AI Builder, paste one prompt, and it builds a working React Builder app that follows the design. ToolJet's Security panel then lists what to review, and Fix with AI resolves a finding in the same tool. This guide builds a five-page Data Review & Correction Console and fixes its access finding. What does the app do?A customer data team fixes bad records from Salesforce, NetSuite, SAP, Shopify and Zendesk in spreadsheets, so nobody can say who changed a credi
Remotion vs. CoAnimator When Your Product Demo Needs an Update
You publish a product demo on Friday. On Monday, the Save button moves into an overflow menu.You replace the recording. Now the caption appears before the click, the voiceover describes the old UI, and the next scene starts too soon. Someone has to fix all three before the video can go live again.Thatās the edit Iād use to compare Remotion and CoAnimator. Both can work with coding agents. What matters after launch is whether the person who owns the video can make the change, review it, and verif
How I Found the 13 Customers Behind 19% of a Shop's Sales
Thirteen customers. That's how many people, out of 4,338, were responsible for almost a fifth of everything a UK online gift shop sold in a year.You won't find that number on a sales dashboard. Revenue charts show you totals, trends and best-selling products. They don't tell you that a handful of buyers are carrying the business, or that a quarter of your customers bought once and never came back.I built a small web app called Segmentra to surface exactly that kind of pattern. You give it a plai
Give the agent the existing date formatter, not a one-off toLocaleString in the component
The PR shows a timestamp with new Date(value).toLocaleString() or a handmade 'YYYY-MM-DD' slice. The repo already has a date formatter (formatDate, formatRelative, or an Intl wrapper) that the rest of the UI uses for locale, time zone, and relative phrases. The new string looks close in your browser and wrong in the next locale, or it disagrees with the same timestamp elsewhere on the page.I've started treating a one-off date format in a component as a consistency bug, not as a quick display. Th
1,029 props across 490 React components, 144 of them className, and only 55 callbacks in the entire app
How many props does a component take? There are answers to that in style guides, and there is an answer in your repository, and they are not the same answer. I counted the real one for Nakodo, a Next 16 app of 490 React components, by parsing the destructuring pattern of every one of them.The count that surprised me is at the bottom, and it is not about props at all. The shape490 components (function Name(...) or const Name = (...) => in a .tsx file) 72 take no props at all396 destruct
I built CLAR: a free, open-source app to decide what to do now
Most to-do apps I tried had the same problem: the list kept growing, and every morning I still had to work out what actually mattered. So I built my own.CLAR is a free, open-source web app (PWA) that helps you go from what matters to you to what you do today.š Try it: https://clar.life/?lang=enš» Code: https://github.com/Moldovan-Tech/clar-platform (MIT)A personal project. CLAR is something I build in my spare time. There's no company, no paid plan and no business behind it. It's free to use, and