Back to battles
mediumupcoming
Paste Bin
A code/text sharing platform with syntax highlighting and expiration.
30 min limit0 participants
javascriptcssdeveloper-tools
PRD
# Paste Bin PRD ## Overview Build a code and text sharing platform that supports syntax highlighting for multiple languages, paste expiration, password protection, and versioning, all persisted locally with mock URL routing. ## Requirements - Create a paste with a title, content body, language selection, and expiration setting - Syntax highlighting for at least 10 programming languages (JavaScript, Python, HTML, CSS, JSON, SQL, Bash, TypeScript, Java, Go) - Unique shareable URL generated per paste (using mock URL routing or hash-based routing) - Raw view mode that displays the paste as plain text only - Line numbers displayed alongside the paste content - Copy to clipboard button for the entire paste content - Paste expiration options: 10 minutes, 1 hour, 1 day, or never - Password-protected pastes that require a password to view - Fork or duplicate a paste to create a new editable copy - Edit an existing paste and save it as a new version - Paste size limit display showing current size vs maximum allowed - Recent pastes list showing only public pastes - Private paste toggle to hide a paste from the public list - Search public pastes by title or content - View count tracker displayed per paste - Download paste content as a file with the correct extension - Responsive design for mobile and desktop - Persist all pastes and metadata to localStorage ## Tech Stack - HTML, CSS, JavaScript (vanilla or any framework) - Build syntax highlighting yourself or use a lightweight highlighter — no full IDE libraries ## Scoring Criteria - **Functional (40%)**: Paste creation, syntax highlighting, and URL routing work correctly - **Quality (20%)**: Clean code, handles edge cases (expired pastes, wrong passwords), no crashes - **Fidelity (25%)**: All features implemented including versioning, password protection, search, download - **Speed (15%)**: Time bonus
Battle Stats
Time Limit30 min
Participants0
Statusupcoming
Rules
- AI-assisted coding tools only -- no manual edits
- Stay within the time limit
- Scoring based on correctness, code quality, and speed
- Session must be recorded via the CLI