messages listlengths 2 4 |
|---|
[
{
"role": "user",
"content": "Build a single-file HTML/JS tic-tac-toe game I can open in a browser. Two players on the same screen, X and O alternate, highlight the winning line, track wins and draws across rounds, and have a restart button. No libraries."
},
{
"role": "assistant",
"content": "<... |
[
{
"role": "user",
"content": "Make a memory matching card game in one HTML file. 4x4 grid, eight emoji pairs, flip two at a time, mismatches flip back after a short delay, count the moves, and celebrate when all pairs are found. Restart button too."
},
{
"role": "assistant",
"content": "<think>\... |
[
{
"role": "user",
"content": "One-file rock paper scissors game against the computer. Buttons for each throw, show the computer's choice and who won the round, keep a running tally of wins, losses and ties, and let me reset the tally."
},
{
"role": "assistant",
"content": "<think>\nWe need rock-... |
[
{
"role": "user",
"content": "Single HTML file hangman game. Random word from a built-in list, on-screen A-Z buttons plus guessed-letter tracking, a canvas-drawn gallows that gains a body part with each wrong guess, and a new-game button."
},
{
"role": "assistant",
"content": "<think>\nWe need a... |
[
{
"role": "user",
"content": "Whack-a-mole in one HTML file. 3x3 grid of holes, moles pop up randomly and stay up briefly, click to whack, 30 second round, score counter, start and play-again flow."
},
{
"role": "assistant",
"content": "<think>\nWe need whack-a-mole in one HTML file: a 3x3 grid ... |
[
{
"role": "user",
"content": "Build a Simon memory game in a single HTML file. Four colored pads that light up and play tones, the sequence grows by one each round, you have to repeat it, and it shows your level. Lives or a game-over screen when you slip."
},
{
"role": "assistant",
"content": "<... |
[
{
"role": "user",
"content": "Single file minesweeper, 9x9 board with 10 mines. Left click to reveal, right click or flag mode to mark mines, flood fill for empty regions, mines-left counter, win and lose states, new game button."
},
{
"role": "assistant",
"content": "<think>\nWe need minesweepe... |
[
{
"role": "user",
"content": "Two player connect four in one HTML file. Click a column to drop a disc, gravity applies, first to four in a row wins (horizontal, vertical, diagonal both ways), show whose turn it is, winning cells highlighted, reset button."
},
{
"role": "assistant",
"content": "<... |
[
{
"role": "user",
"content": "Classic breakout in a single HTML file on a canvas. Paddle with mouse and arrow keys, ball bounces, grid of bricks, score and 3 lives, ball gets faster each brick, win and game-over overlays with restart."
},
{
"role": "assistant",
"content": "<think>\nWe need a bre... |
[
{
"role": "user",
"content": "Lane dodge arcade game in one HTML file. Vertical scrolling, player car near the bottom in one of three lanes, obstacles fall from the top, dodge them, score climbs over time, three hits and you're out, restart on overlay."
},
{
"role": "assistant",
"content": "<thi... |
[
{
"role": "user",
"content": "Cookie clicker clone in a single HTML file. Click the big cookie, buy cursors (+0.1/sec, scaling cost) and grandmas (+1/sec), show cookies and cookies per second, and save progress in localStorage so refresh keeps my bakery."
},
{
"role": "assistant",
"content": "<t... |
[
{
"role": "user",
"content": "Reaction time test in one HTML file. Click to start, wait for the box to turn green, click as fast as you can, track your last time and a running average over 5 attempts, and flag early (anticipation) clicks as failed rounds."
},
{
"role": "assistant",
"content": "<... |
[
{
"role": "user",
"content": "Flappy Bird style clone as a single HTML file with canvas. Click or space to flap, pipes come from the right with a gap, score one per pipe, gravity and jump tuning feel right, best score saved to localStorage, game over overlay with restart."
},
{
"role": "assistant",
... |
[
{
"role": "user",
"content": "3x3 sliding number puzzle (the 8-puzzle) as a single HTML file. Shuffle to a guaranteed-solvable board, click a tile adjacent to the blank to slide it, show move count, and detect when it's solved."
},
{
"role": "assistant",
"content": "<think>\nWe need the 3x3 slid... |
[
{
"role": "user",
"content": "Speed math quiz in one HTML file. Random arithmetic questions, 60 seconds on the clock, type the answer and hit Enter, score as many as you can, show your best score in localStorage, and a start overlay."
},
{
"role": "assistant",
"content": "<think>\nWe need a spee... |
[
{
"role": "user",
"content": "Typing speed test in a single HTML file. Show a paragraph, I type it into a textarea, start the clock on my first keystroke, and when I finish compute words per minute and accuracy. Restart button with a new paragraph."
},
{
"role": "assistant",
"content": "<think>\... |
[
{
"role": "user",
"content": "Stroop effect test as one HTML file. Show a color word printed in a mismatching ink color, four buttons for the ink colors, click the button that names the INK, 30 seconds on the clock, report score and accuracy."
},
{
"role": "assistant",
"content": "<think>\nWe ne... |
[
{
"role": "user",
"content": "A 2048 clone in a single HTML file, 4x4 grid, arrow keys to slide and merge tiles, new random 2 or 4 after each valid move, score counter, game over when no moves remain, and a restart button."
},
{
"role": "assistant",
"content": "<think>\nWe need a 2048 clone in a... |
[
{
"role": "user",
"content": "N-back brain trainer in one HTML file. 2-back with letters A–J, 25 trials, press Space or a button when the current letter matches the letter from two steps ago, report hits, misses, and false alarms at the end."
},
{
"role": "assistant",
"content": "<think>\nWe nee... |
[
{
"role": "user",
"content": "Coin catching arcade game on a canvas in one HTML file. Move a basket along the bottom with arrow keys or mouse, coins fall from random spots, catch them for points, miss three and it's over, 45 second cap too, restart overlay."
},
{
"role": "assistant",
"content": ... |
[
{
"role": "user",
"content": "Stack the blocks game in one HTML file with canvas. A block slides side to side, click or press space to drop it on the stack, overhang gets trimmed, missing the tower ends the run, and the speed ramps up. Show how many blocks you stacked."
},
{
"role": "assistant",
... |
[
{
"role": "user",
"content": "Aim trainer game in a single HTML file with canvas. Targets pop up at random spots, click them as fast as you can, 30 seconds on the clock, count hits and missed clicks, show accuracy at the end, restart button."
},
{
"role": "assistant",
"content": "<think>\nWe nee... |
[
{
"role": "user",
"content": "Asteroid dodging game in one HTML file on canvas. Ship at the bottom moves left/right with arrows or mouse, asteroids fall from the top, they speed up over time, three lives, survive as long as possible, score is seconds survived, game over overlay with restart."
},
{
"... |
[
{
"role": "user",
"content": "Color reaction training game in one HTML file. A colored circle appears, four color swatches below, click the swatch matching the circle's color as fast as you can, 30 seconds, track score and accuracy, show a summary at the end."
},
{
"role": "assistant",
"content"... |
[
{
"role": "user",
"content": "Word unscramble game in a single HTML file. Show scrambled letters of a random word, I type the answer, 10 rounds, track how many I get right, small timer bonus, and a final score screen. Difficulty mix of easy and medium words."
},
{
"role": "assistant",
"content":... |
[
{
"role": "user",
"content": "Build a single-file todo app in vanilla HTML/JS. I want to add tasks, check them off, delete them, clear completed ones, and have everything persist in localStorage. Keep it clean and self-contained."
},
{
"role": "assistant",
"content": "<think>\nWe need a single-f... |
[
{
"role": "user",
"content": "Make me a calculator in vanilla JS but do NOT use eval(). Use a real state machine with currentInput/previousInput/operation. Needs + - × ÷, percent, sign flip, AC, equals, and a clean display."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a calcu... |
[
{
"role": "user",
"content": "Create a pomodoro timer in one HTML file. 25 min focus, 5 min break, start/pause, reset, and a count of completed pomodoros that survives refresh."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a pomodoro timer that cannot drift. The clock is never... |
[
{
"role": "user",
"content": "I want a small markdown preview tool in one HTML file: textarea on the left, rendered preview on the right, updating live. Support headings, bold, italic, inline code, and lists. No libraries."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a markdo... |
[
{
"role": "user",
"content": "A unit converter in a single HTML file: length, mass, temperature at least. Pick category, from-unit, to-unit, type a value, get the result instantly."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a unit converter with a table plus one special cas... |
[
{
"role": "user",
"content": "Make a BMI calculator page. Metric and imperial, shows the number, the category label, and maybe a little position marker on a scale. No libraries."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a BMI calculator. State is fully derived, never store... |
[
{
"role": "user",
"content": "Build an expense tracker in one file. Add description, amount, category, see a running total, list of expenses, delete items, persist in localStorage."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out an expense tracker with money that never drifts. A... |
[
{
"role": "user",
"content": "Password generator, single HTML file. Length slider, toggles for uppercase/lowercase/digits/symbols, generate button, copy to clipboard, show strength. No libraries."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a password generator with unbiased ... |
[
{
"role": "user",
"content": "Make a 5-color palette generator. Click to generate a new palette, click a swatch to copy its hex, and let me lock swatches I like so regeneration keeps them."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a 5-color palette with locks. State is an ... |
[
{
"role": "user",
"content": "Simple quote generator page: a button for a new quote, a copy button, author attribution, and avoid showing the same quote twice in a row."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out an offline quote generator with no repeated quote in a row. Da... |
[
{
"role": "user",
"content": "I want a habit tracker that keeps the last 7 days, lets me toggle days, shows a streak, and saves everything locally. Single HTML file."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a habit tracker whose date math never lies. State is habits: an a... |
[
{
"role": "user",
"content": "A notes app in one HTML file: sidebar with my notes, editor pane, search box to filter, autosaves to localStorage. New note and delete note buttons."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a two-pane notes app where keystrokes can never vani... |
[
{
"role": "user",
"content": "Countdown timer for an event: name it, pick a date, show days/hours/minutes/seconds ticking down, handles past dates gracefully, remembers the event on reload."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a countdown that survives reloads and pas... |
[
{
"role": "user",
"content": "World clock with a fixed list of cities — New York, LA, London, Berlin, Dubai, Tokyo, Sydney. Show the time and date in each, with a 12/24 hour toggle. No libraries."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a world clock without ever computin... |
[
{
"role": "user",
"content": "Three-field temperature converter: Celsius, Fahrenheit, Kelvin. Edit any one and the other two update. All in one HTML file."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a three-field temperature converter with a strict source -> targets dataflow... |
[
{
"role": "user",
"content": "Tip calculator in one HTML file: bill amount, tip percentage (preset buttons plus custom), split between N people, shows tip, total, and per-person share."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a tip calculator whose math never reads format... |
[
{
"role": "user",
"content": "Paste CSV text, get a rendered table. Should handle quoted fields with commas and escaped quotes. Client-side only, one HTML file."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a CSV parser that treats the whole text as one tape with a state machi... |
[
{
"role": "user",
"content": "Regex playground: pattern + flags inputs, test string, show matches highlighted with count, and a friendly error for invalid regex. One HTML file."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a regex playground that can never loop forever or inje... |
[
{
"role": "user",
"content": "JSON tool: paste JSON, format it pretty, minify it, or just validate. Show the parse error location when it fails."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a JSON tool with three thin operations over one parse helper. tryParse(text) returns {... |
[
{
"role": "user",
"content": "Base64 encode/decode tool. Should handle Unicode (emoji etc.) correctly, show errors on bad input, have a copy button. One HTML file."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a Unicode-safe base64 tool. The core constraint: browser btoa/atob ... |
[
{
"role": "user",
"content": "Live word and character counter: words, characters with and without spaces, lines, estimated reading time. Updates as I type. One HTML file."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a live counter that counts what users perceive. Metrics: cha... |
[
{
"role": "user",
"content": "A small quiz app: multiple choice questions, one at a time, progress indicator, score at the end, restart button. One HTML file, no libraries."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a multiple-choice quiz with a strict lock. QUESTIONS is a ... |
[
{
"role": "user",
"content": "Shopping list app: add items with quantities, check them off, remove them, clear all purchased, persists in localStorage. One HTML file."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a quantity-aware shopping list. State is items: {id, name, qty, ... |
[
{
"role": "user",
"content": "Bookmark manager: add title + URL, search filter, delete, persists in localStorage. Validate URLs and be careful with javascript: links. Single HTML file."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a bookmark manager where javascript: links can... |
[
{
"role": "user",
"content": "Two-column unit price comparator: enter name, price, size for two products and it tells me which is cheaper per unit. One HTML file."
},
{
"role": "assistant",
"content": "<think>\nLet's figure out a unit price comparator. Inputs per product: optional name, price >=... |
[
{
"role": "user",
"content": "Build a single-file HTML page where I paste CSV lines of `label,value` and it renders a bar chart on a canvas with axes, gridlines and value labels. No chart libraries, vanilla JS only."
},
{
"role": "assistant",
"content": "<think>\nWe need a single HTML file that ... |
[
{
"role": "user",
"content": "Make a single-file HTML budget visualizer: I type category,amount lines and see a doughnut chart on canvas with a legend and percentages. Vanilla JS, no libraries."
},
{
"role": "assistant",
"content": "<think>\nWe need a single HTML file: type category,amount lines... |
[
{
"role": "user",
"content": "Build a GitHub-style habit heatmap in a single HTML file: a year grid of day cells, click a cell to cycle its intensity, colored streaks on a canvas, saved to localStorage."
},
{
"role": "assistant",
"content": "<think>\nWe need a GitHub-style heatmap of the last 36... |
[
{
"role": "user",
"content": "Single-file stopwatch web app: start/pause/reset, lap recording with split times, big readable display, keyboard space to toggle. Vanilla JS."
},
{
"role": "assistant",
"content": "<think>\nWe need a single-file stopwatch: start/pause/reset, lap splits, big display,... |
[
{
"role": "user",
"content": "Build a metronome in one HTML file using the Web Audio API: BPM slider, time signature (accent on beat 1), start/stop, tap tempo. No audio files."
},
{
"role": "assistant",
"content": "<think>\nWe need a metronome in one HTML file: BPM slider, time signature with ac... |
[
{
"role": "user",
"content": "Single-file piano keyboard playable with mouse and computer keyboard, using the Web Audio API. Show the note names and active highlights. No audio assets."
},
{
"role": "assistant",
"content": "<think>\nWe need a playable piano: mouse and computer keyboard, Web Audi... |
[
{
"role": "user",
"content": "A white noise machine in one HTML file: white/pink/brown noise synthesis, volume slider, sleep timer (auto-off), Web Audio API only."
},
{
"role": "assistant",
"content": "<think>\nWe need a white noise machine: white/pink/brown synthesis, volume slider, sleep timer... |
[
{
"role": "user",
"content": "Make a 9-pad drum machine in one HTML file, Web Audio synthesis only (kick, snare, hats, etc.), clickable pads plus keyboard keys 1-9."
},
{
"role": "assistant",
"content": "<think>\nWe need a 9-pad drum machine: Web Audio synthesis only, kick/snare/hats/etc., click... |
[
{
"role": "user",
"content": "Single-file chord player: pick a root note and chord type, hear it strummed or block, Web Audio API, and show the actual note frequencies. No libraries."
},
{
"role": "assistant",
"content": "<think>\nWe need a chord player: pick root and quality, hear block or stru... |
[
{
"role": "user",
"content": "Build a Morse code translator in one HTML file: text to Morse (display + audio beeps via Web Audio), and Morse back to text. WPM control, play/stop."
},
{
"role": "assistant",
"content": "<think>\nWe need a two-way Morse translator: text to Morse (display + beeps), ... |
[
{
"role": "user",
"content": "Build a flashcard app with Leitner-box spaced repetition in a single HTML file: study due cards, grade yourself, add/delete cards, persist to localStorage."
},
{
"role": "assistant",
"content": "<think>\nWe need a flashcard app with Leitner-box spaced repetition: st... |
[
{
"role": "user",
"content": "A kanban board in one HTML file: three columns (Todo / Doing / Done), add cards, move them between columns, delete cards, persist to localStorage. No frameworks."
},
{
"role": "assistant",
"content": "<think>\nWe need a kanban board: three columns (Todo / Doing / Do... |
[
{
"role": "user",
"content": "Single-file day planner: a vertical timeline from 6:00 to 22:00, add events with time + title, see them placed in order, delete them, stored in localStorage."
},
{
"role": "assistant",
"content": "<think>\nWe need a day planner: vertical timeline 6:00 to 22:00, add ... |
[
{
"role": "user",
"content": "Build a code snippet manager in one HTML file: save title/language/code, live search filter, one-click copy, localStorage persistence. No frameworks."
},
{
"role": "assistant",
"content": "<think>\nWe need a snippet manager: save title/language/code, live search, on... |
[
{
"role": "user",
"content": "Make an ASCII art generator in one HTML file: type text, pick a width/density, render to a <pre>, copy the result. No libraries — render via canvas sampling."
},
{
"role": "assistant",
"content": "<think>\nWe need an ASCII art generator: type text, pick width/densit... |
[
{
"role": "user",
"content": "A line diff checker in one HTML file: two textareas, compute a real LCS-based diff, show added/removed/unchanged lines with colors and a summary. Vanilla JS."
},
{
"role": "assistant",
"content": "<think>\nWe need a line diff with real LCS: two textareas, added/remo... |
[
{
"role": "user",
"content": "A mini grep in one HTML file: paste multi-line text, type a pattern, see matching lines with line numbers and highlighted matches. Optional regex mode and case-insensitive toggle. Vanilla JS."
},
{
"role": "assistant",
"content": "<think>\nWe need a mini grep: paste... |
[
{
"role": "user",
"content": "A cron expression describer in one HTML file: enter a 5-field cron (min hour day-of-month month day-of-week), get a plain-English description, validate fields, show presets. No libraries."
},
{
"role": "assistant",
"content": "<think>\nWe need a 5-field cron describ... |
[
{
"role": "user",
"content": "Single-file UUID v4 generator: use crypto.getRandomValues, batch up to 100, toggle uppercase, copy all to clipboard. No libraries."
},
{
"role": "assistant",
"content": "<think>\nWe need a UUID v4 generator: crypto.getRandomValues, batch up to 100, uppercase toggle,... |
[
{
"role": "user",
"content": "Single-file unix timestamp converter: epoch ↔ human date, auto-detect seconds vs milliseconds, live current epoch clock, 'now' button, local + ISO display."
},
{
"role": "assistant",
"content": "<think>\nWe need an epoch <-> date converter: epoch to human date, auto... |
[
{
"role": "user",
"content": "A lucky wheel / prize spinner in one HTML file: type prizes (one per line), canvas wheel with pointer, spin with easing, announce the winner. Vanilla JS, no libs."
},
{
"role": "assistant",
"content": "<think>\nWe need a lucky wheel: prizes one per line, canvas whee... |
[
{
"role": "user",
"content": "An encode/decode tool in one HTML file: URL-encode/decode text (component and full-URL modes), plus a query-string parameter parser table. Handle bad percent sequences gracefully."
},
{
"role": "assistant",
"content": "<think>\nWe need an encode/decode tool: URL-enc... |
[
{
"role": "user",
"content": "A JWT decoder display in one HTML file: paste a token, show decoded header and payload as pretty JSON, timestamps humanized, clear 'signature not verified' warning. Decode only — never verify."
},
{
"role": "assistant",
"content": "<think>\nWe need a JWT decoder dis... |
[
{
"role": "user",
"content": "Single-file color converter: synced hex / RGB / HSL inputs, live swatch, click-to-copy. Vanilla JS, no libraries."
},
{
"role": "assistant",
"content": "<think>\nWe need a single-file color converter: synced hex/RGB/HSL inputs, live swatch, click-to-copy. Let's deri... |
[
{
"role": "user",
"content": "Single-file CSV to JSON converter: paste CSV with quoted fields (embedded commas/newlines, doubled quotes), uses header row as keys, outputs pretty JSON, copy and download buttons. No libraries."
},
{
"role": "assistant",
"content": "<think>\nWe need a CSV to JSON c... |
[
{
"role": "user",
"content": "Build a single HTML file with a registration form (name, email, password, confirm password) that validates everything live: password strength meter with a checklist of rules (length, uppercase, digit, symbol), confirm-password matching, email format check, and a disabled submit... |
[
{
"role": "user",
"content": "Create a single-file HTML multi-step form (3 steps: Account, Shipping, Payment) with a progress bar, Back/Next navigation, per-step validation before advancing, inline error messages, and a final success screen. Vanilla JS, no libraries."
},
{
"role": "assistant",
"... |
[
{
"role": "user",
"content": "Build a survey builder in one HTML file: add questions (short text, multiple choice, 1-5 rating), see a live preview, switch to answer mode, submit responses, and view aggregate results (choice counts, average rating). Vanilla JS, no libraries."
},
{
"role": "assistant"... |
[
{
"role": "user",
"content": "Build an editable data table in a single HTML file: rows of people (name, role, salary), inline edit (click Edit to swap cells for inputs, Save/Cancel), add new row, delete row, and persist to localStorage. Vanilla JS."
},
{
"role": "assistant",
"content": "<think>\... |
[
{
"role": "user",
"content": "Build a sortable, filterable data table in one HTML file: a text filter across name/department, click-to-sort column headers (name asc/desc, department, salary numeric), visible sort indicators, and a 'no results' state. Vanilla JS."
},
{
"role": "assistant",
"conte... |
[
{
"role": "user",
"content": "Build a search autocomplete box in a single HTML file: a dataset of city names, a dropdown of matches as you type, full keyboard navigation (Arrow Up/Down, Enter, Escape), mouse click to pick, and ARIA combobox semantics. Vanilla JS only."
},
{
"role": "assistant",
... |
[
{
"role": "user",
"content": "Build a tag input component in a single HTML file: type and press Enter or comma to add chips, Backspace on an empty field removes the last chip, duplicate tags rejected case-insensitively, max 8 tags, paste with commas supported, and a live count. Vanilla JS."
},
{
"ro... |
[
{
"role": "user",
"content": "Build a star rating widget in a single HTML file: 5 stars, hover preview, click to set, full keyboard support (radiogroup pattern with arrow keys), a clear button, and a persistent average of all ratings via localStorage. Vanilla JS."
},
{
"role": "assistant",
"cont... |
[
{
"role": "user",
"content": "Build a drawing board in a single HTML file: canvas with color palette, brush size slider, eraser, undo (snapshot stack), clear, and download as PNG. Pointer events so it works with mouse and touch. Vanilla JS."
},
{
"role": "assistant",
"content": "<think>\nWe need... |
[
{
"role": "user",
"content": "Build a signature pad in a single HTML file: draw your signature with pointer events, smooth strokes (quadratic curves), clear, undo last stroke, and save as PNG. Show whether the pad is empty. Vanilla JS, canvas."
},
{
"role": "assistant",
"content": "<think>\nWe n... |
[
{
"role": "user",
"content": "Build a 'quote card' generator in one HTML file: type a title and subtitle, pick from gradient themes, see a live canvas preview, and download the result as a PNG. Vanilla JS."
},
{
"role": "assistant",
"content": "<think>\nWe need a quote-card generator in one HTML... |
[
{
"role": "user",
"content": "Build an animated bar chart race on a canvas in a single HTML file: top countries by GDP-ish index over years 2010-2024, Play/Pause, a year slider, speed control, and smooth animated bar transitions sorted each frame. Vanilla JS."
},
{
"role": "assistant",
"content"... |
[
{
"role": "user",
"content": "Build a bubble sort visualizer in a single HTML file: canvas with bars, Play/Stop, Shuffle, speed and size sliders, the two bars being compared highlighted, sorted tail in green, and a comparison counter. Use requestAnimationFrame with explicit re-render rules. Vanilla JS."
}... |
[
{
"role": "user",
"content": "Build a binary search visualizer in a single HTML file: render a sorted array as cells, a target input, Step / Auto / Reset controls, highlight low/mid/high, dim eliminated halves, and a log with the comparison counter. Vanilla JS."
},
{
"role": "assistant",
"conten... |
[
{
"role": "user",
"content": "Build an A* pathfinding visualizer on a grid in a single HTML file: draw walls with the mouse, run A* (Manhattan heuristic) with animated exploration, and show the final path. Include tools to move the start/end and clear walls. Vanilla JS, canvas."
},
{
"role": "assist... |
[
{
"role": "user",
"content": "Build a stack and queue visualizer in a single HTML file: push/pop for a stack, enqueue/dequeue for a queue, a shared value input, capacity limit, visual columns showing top/front, and an operation log. Vanilla JS."
},
{
"role": "assistant",
"content": "<think>\nWe ... |
[
{
"role": "user",
"content": "Build a call stack factorial visualizer in a single HTML file: enter n, watch the recursive calls push onto a visual stack and the returns unwind it, with Step forward/back controls and the final result. Vanilla JS."
},
{
"role": "assistant",
"content": "<think>\nWe... |
[
{
"role": "user",
"content": "Build an HTML live preview in a single file: a textarea for HTML/CSS/JS, a sandboxed iframe that re-renders on every keystroke (debounced), a few sample snippets, a char counter, and a note on what sandbox blocks. Vanilla JS."
},
{
"role": "assistant",
"content": "<... |
[
{
"role": "user",
"content": "Build a flexbox playground in a single HTML file: dropdowns/sliders for flex-direction, flex-wrap, justify-content, align-items, align-content and gap, live preview of colored item boxes, add/remove items, and the generated CSS output. Vanilla JS."
},
{
"role": "assista... |
[
{
"role": "user",
"content": "Build a WCAG contrast checker in a single HTML file: pick text and background colors, compute the contrast ratio with the WCAG relative-luminance formula, show AA/AAA pass/fail for normal and large text, a live preview paragraph, and a swap button. Vanilla JS."
},
{
"ro... |
[
{
"role": "user",
"content": "Build an accessible modal dialog in a single HTML file with a working focus trap: Tab and Shift+Tab cycle through focusable elements inside the dialog, Escape closes it, focus returns to the trigger button, overlay click closes, and correct ARIA (role=dialog, aria-modal, aria-l... |
[
{
"role": "user",
"content": "Build an accessible accordion in a single HTML file following the ARIA APG pattern: buttons with aria-expanded/aria-controls, panels with role=region and aria-labelledby, single-panel-open behavior, and ArrowUp/ArrowDown/Home/End keyboard navigation between headers. Vanilla JS.... |
[
{
"role": "user",
"content": "Build an infinite-scroll list in a single HTML file: generate 150 fictional users, render them in batches of 15, load more automatically via IntersectionObserver on a sentinel, a 'Load more' button as fallback, a loading state, an end-of-list message, and a working filter box. ... |
[
{
"role": "user",
"content": "Build a dark/light theme switcher in a single HTML file: CSS custom properties, a toggle button with aria-pressed, respect prefers-color-scheme on first visit, persist the choice in localStorage (try/catch), and no flash of wrong theme on load. Vanilla JS."
},
{
"role":... |
[
{
"role": "user",
"content": "Build a CSS box model inspector in a single HTML file: a canvas rendering of an element's margin/border/padding/content boxes, sliders for margin, border, padding and content width, a toggle for box-sizing (content-box vs border-box), and computed total dimensions. Vanilla JS."... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.