This prompt asks for a fully functional, offline-first code-snippet manager called SnippetNest. It should be built as a browser-only React + TypeScript app, storing all snippets locally in IndexedDB rather than using a backend or user accounts. IndexedDB is well suited to local-first apps because it persists structured data on the user’s device and supports offline use.
Build a complete, working web application called "SnippetNest", a local-first code snippet manager for developers. Tech stack: - React with TypeScript - Vite - Tailwind CSS - IndexedDB for persistent local storage - A syntax-highlighting library of your choice Core features: 1. Create, edit, and delete code snippets. 2. Each snippet must include a title, programming language, description, code, tags, favorite status, and creation/update timestamps. 3. Search snippets by title, description, tags, and code content. 4. Filter by programming language, tag, and favorite status. 5. Show syntax-highlighted code with a copy-to-clipboard button. 6. Support light and dark themes. 7. Import and export snippets as JSON. Validate imported data and show a preview before applying changes. 8. Include useful empty states, form validation, and deletion confirmation. Interface: - Create a clean, responsive developer-focused layout. - Use a sidebar for filters, a searchable snippet list, and a detail panel. - Make the interface keyboard-accessible with visible focus states. - Include a few sample snippets only on the first launch. - Do not require authentication, a backend, or external API keys. Engineering requirements: - Separate UI components, persistence logic, hooks, and types. - Handle storage failures and invalid imports gracefully. - Render saved code as text; never execute it. - Add tests for search/filter behavior and import validation. - Avoid placeholders, unfinished features, and unnecessary dependencies. Deliverables: - Complete source code. - A README with setup instructions, available scripts, features, architecture overview, and known limitations. - An MIT license file. - A .gitignore file. Start with a short implementation plan and project structure, then implement the application.
Gives a calm second review on PRs assigned to you: focuses only on correctness, security and missing tests, ignores style nits, and tells you where to look first.
For Spaces with a database or sign-ins, gives you a weekly read-only look at new rows, new visitor accounts, storage growth and plan limits, and spots junk or abuse early.
Runs the code examples in your README and docs against the latest release, finds snippets that no longer compile or return the wrong output, and drafts the fixed examples for review.
Keeps a living map of where your app stores personal data: tables, logs, caches, backups and third-party tools, so privacy reviews, data export and deletion requests take minutes instead of a code search.