DevIdiot!
Top 10 JavaScript Optimization Techniques for Large Apps
Optimizing performance in large-scale JavaScript applications is critical for ensuring smooth user experiences, especially as the complexity of the app increases. Here are several effective strategies, real-world examples, and best practices for optimizing performance: 1. Lazy LoadingLazy loading is the process of loading resources (such as images, components, or modules) only when they're needed, which reduces initial load time and improves performance.Real-World Example: E-commerce App Fo
We resurrected the 1999 chain email with Kiro: building a haunted webmail mystery spec-first
This post is written as part of the Kiroween 2026 hackathon. Our entry, Dead Letter Office, is in the Resurrection category.Play it: https://dead-letter-office-six.vercel.app/Demo video: https://youtu.be/NQu5zdWS2uUCode: https://github.com/AIVIETNAM-AIO-felixdoit/dead-letter-office The ideaRemember chain emails? "Forward this to 10 people or something bad will happen." We wanted to bring that era back, but make the email actually do something.Dead Letter Office is a haunted Windows 98 era w
Accessible Modal Engineering: Lessons from Layout Thrashing and Focus Trap Fixes with TailwindCSS and shadcn/ui
Accessible Modal Engineering: Lessons from Layout Thrashing and Focus Trap Fixes with TailwindCSS and shadcn/ui3 AM on-call pages are the worst. When your modals fail to close properly, trap focus in ways that break screen readers, or trigger layout thrashing that drops below 60fps, it's not just an annoyance—it's a silent killer of user trust, accessibility compliance, and overall system reliability.Senior engineers quickly recognize these patterns in production React applications. Modals
Your AI keeps inventing component props. Give it your design system over MCP
Ask Cursor or Claude Code for a settings screen built with your own component library and you get something that looks right:<Button variant="outline" isLoading={saving}>Save</Button><DatePicker selected={date} onSelect={setDate} />Then the type checker lights up. Your Button has no outline variant, the prop is loading, not isLoading, and your DatePicker takes value and onChange and requires a label. None of those names came from your library. The model predicted them from the
Building a bilingual, RTL-first education centre platform with React, TypeScript and Supabase
Private tutoring and training centres run on information that changes every week: which courses open, what they cost, who teaches them, how many places are left, and which notice nobody can miss. In most centres we talked to, that information lives in three places at once: a spreadsheet, a WhatsApp group and somebody’s notebook. The website, if there is one, is the last to know.We built EduCentre to make the website and the office work from the same data. This post walks through the architecture
Build a Connect Four Game with JavaScript
Connect Four is the perfect first board game to build in JavaScript. The rules are simple, the board is just a grid, and the win check — four in a row — teaches you the most useful pattern in game programming: scanning a grid in four directions.What you are buildingA 7-column, 6-row board where two players take turns dropping discs, and the game announces the winner as soon as someone gets four in a row.The JavaScript: the board is an arrayconst ROWS = 6, COLS = 7;let board = Array.from({ length
Build a Joke Generator App with JavaScript
A joke generator is the friendliest API project there is: one button, one API call, one laugh. It is also a genuinely good way to learn async JavaScript, because the whole app is a single fetch() wrapped in a button click.What you are buildingAn app with one button that fetches a random programming joke and shows it, with a loading state while the joke is on its way.The JavaScript: the whole appconst jokeEl = document.querySelector('#joke');const btn = document.querySelector('#new-joke-btn');asy
Build a GitHub Profile Finder App with JavaScript
GitHub has a free public API that returns a user's profile — their avatar, bio, follower count, and public repos — without any login. A profile finder is a great second API project, because it teaches you to turn one API response into a small profile card.What you are buildingAn app where you type a GitHub username and get a profile card: avatar, name, bio, followers, following, and public repo count. If you are learning to code and want a structured place to practise, the free Python section on
Build a Dictionary App with JavaScript
A dictionary app is the best first API project, because the API is free, needs no key, and returns exactly the data you want to display. You type a word, and you get its meaning, its pronunciation, and an example sentence.What you are buildingAn app that takes a word, calls the free Dictionary API, and shows the first definition, the part of speech, and an example — with a clear message when the word is not found.The JavaScript: fetch and displayasync function lookup(word) { const status = docu
Space survivor roguelite browser game: when your weapons are worlds in orbit around you
If you are looking for a space survivor roguelite browser game, STAR AGAINST THE DARK is a free survivor-like game in your browser: you play a newborn star, and the worlds you kindle into orbit around you are your weapons. This post is about what makes a survivor-like work, what changes when the weapons are bodies in orbit, how to read a run and how to pick upgrades. It is written for someone who has never opened the game.A note on how it was made: the game was built with heavy AI help, directed
Build a URL Shortener App with JavaScript
Long URLs are ugly in a bio, a chat message, or a printed flyer. A URL shortener turns them into short codes — and building a front-end version is a great way to learn how mapping, encoding, and the Clipboard API work.What you are buildingAn app where you paste a long URL, get a short code for it, and copy the short link with one click. This is a front-end demo — the codes are stored in localStorage, so it shows the full flow without needing a server.The JavaScript: generate a short codefunction
Building Jira apps on Forge, part 1: your first app, and what broke on the way
This year I built a little over twenty Forge apps for Jira, and 14 of them are now live on the Atlassian Marketplace. Most of what I know about Forge I learned from something that passed every check and still didn't work.This series covers the parts the hello world skips. Part 1 starts at the very beginning: what a Forge app actually is, a small working app (a panel that counts a work item's links), and the five mistakes from my own apps I'd warn you about first. What Forge is, in one pictu
Format and validate JSON without uploading it anywhere
A mangled API response printed on one line is a daily annoyance. Most online JSON formatters fix it fine, but they send whatever you paste to a server. That's OK for test data. It's less OK when the payload has customer records, access tokens, or internal hostnames in it.Here is one that never leaves your browser: JSON Formatter and Validator.What it does:Formats with 2 spaces, 4 spaces, or tabs, and minifiesValidates what you paste and, where the browser's parser reports a position, converts it
Build a Kanban Board App with JavaScript
A Kanban board is three columns — To Do, Doing, Done — and cards you move between them. It is the simplest project management tool that exists, and building one teaches you drag and drop, state management, and persistence in a single project.What you are buildingA three-column board where you add tasks, drag them between columns, and everything is saved in localStorage.The HTML: three columns, one list each<div class="board"> <div class="column" data-status="todo"> <h2>To D
Build a Bookmark Manager App with JavaScript
Browsers already have bookmarks, but they are a mess: hundreds of links, no search, no order. Building your own bookmark manager takes an hour, and it teaches you the most useful skill in front-end development — keeping a list of things in sync with the screen.What you are buildingAn app where you save a title and a URL, see all your bookmarks as clickable links, search through them, and delete the ones you no longer need — all saved in localStorage.The HTML: two inputs and a list<input id="t
A DOM for Web Workers
A Web Worker has no DOM, and React and Preact build their output by calling document.createElement, insertBefore and setAttribute. None of those exist in a worker.Isoloop is my open-source toolkit for running the parts of an app on workers, a part being one piece of the app, such as a widget. This article is about the piece that gives a worker a DOM anyway, the render bridge, and about the choices behind it. The bridge doesn't care what fills that DOM: React, Preact or code that calls the DOM di
Give the agent the existing color-mode hook, not a local darkMode boolean
The PR adds a theme toggle with a local darkMode boolean, a document.documentElement.classList.toggle("dark"), and maybe a raw localStorage key. The repo already has a useColorMode (or useTheme) hook that owns the document class, the system preference, and persistence. Nearby header and settings rows use it. The local boolean flashes on first paint, fights the existing class name, and stores a second key.I've started treating a local darkMode boolean as a second theme, not as a quicker toggle. F
Asadulelah's ClipVault: a native Windows clipboard manager in Tauri, React and Rust
Windows has a clipboard history. Press Win+V and you get the last 25 things you copied. Restart the machine and they are gone. There is no search, no pinning, and images drop out fast.That gap is why I built ClipVault, a native clipboard manager for Windows that keeps everything, survives restarts and opens on the same Win+V shortcut. It is open source under MIT: https://github.com/Asadulelah/clipvaultThis post is how it works inside, with the real code. What it doesUnlimited, persistent hi
What is React Query?
React Query (now called TanStack Query) is a library in React used to fetch, manage, cache, and update server data.It makes API data handling easier without writing too much code using useEffect and useState.Why do we use React Query?Fetch data from APIs.Store API responses in cache.Automatically refetch data when needed.Manage loading and error states.Update server data (POST, PUT, DELETE).Reduce unnecessary API calls.How to install React Query?Open your VS Code terminal:npm install @tanstack/r
Require the agent to reuse the existing Spinner, not a new CSS border spinner
The PR adds a loading state with a CSS border spinner — a div with border-radius: 50% and a spinning border — or an inline SVG circle with a CSS animation. The repo already has a Spinner (or LoadingIndicator) with sizes, an accessible name, and a reduced-motion path. Nearby query and button loading states use it. The homemade spinner has no accessible name, ignores prefers-reduced-motion, and does not match the existing size scale.I've started treating a new CSS spinner as a second loading langu