TEXT PROMPT

SnippetNest Local-First Code Snippet Manager

Prompt

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 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 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.
Be the first to rate this article.

Discussion

Comments & Questions (0)

Captcha
Please be respectful — let's keep the conversation friendly.

No comments yet

Be the first to comment!