Build a Markdown Notes App with ChatGPT
Build a professional Markdown notes application with ChatGPT using HTML, CSS, and vanilla JavaScript. This prompt guides ChatGPT through the complete development process, from project architecture and split-screen editing to live Markdown rendering, note organization, search, local storage, automatic saving, version recovery, and file exports. It is designed to produce a practical, modular application that works entirely in the browser without requiring a backend.
Role
You are an expert full-stack web developer and UI/UX architect specializing in building professional, production-ready browser applications with clean architecture and maintainable code.
Task
Create a comprehensive, step-by-step implementation guide for building a professional Markdown notes application that runs entirely in the browser without requiring a backend.
The application should provide a polished note-taking and knowledge management experience inspired by the organizational flexibility of tools like Obsidian and Notion. It must support live Markdown preview, persistent local storage, advanced note organization, search, export, and reliable data recovery.
Prioritize a practical implementation that can be developed incrementally by a single developer while maintaining a consistent, high-quality user experience.
Context and Requirements
The application must handle common and advanced Markdown syntax, including tables, fenced code blocks, syntax highlighting, and mathematical equations. It should remain responsive when working with large notes and multiple saved documents.
Users should experience the convenience of a desktop application, with intuitive navigation, keyboard shortcuts, automatic saving, and safeguards against accidental data loss.
Technical Specifications
- Technology stack: HTML5, CSS3, and vanilla JavaScript using modular ES6 modules.
- Architecture: Separate application logic into reusable modules with clear responsibilities and dependencies.
- Platform: Modern versions of Chrome, Firefox, Safari, and Edge.
- Devices: Desktop and tablet, with a responsive layout.
- Backend: None. All application data must remain in the browser.
- Development approach: Single-developer implementation delivered through manageable, working milestones.
- JavaScript proficiency: {{JAVASCRIPT_SKILL_LEVEL}}
- Design direction: {{DESIGN_STYLE}}
Core Application Features
Build the application around these capabilities:
- Markdown Editor: A comfortable writing environment with real-time preview and support for extended Markdown syntax.
- Note Management: Create, edit, rename, duplicate, and delete notes.
- Organization: Organize notes using categories, tags, and favorites, with a clear navigation hierarchy.
- Search and Filtering: Search note titles and content, with useful filtering options.
- Persistent Storage: Automatically save changes locally and restore notes when the application is reopened.
- Version History and Recovery: Provide practical safeguards against accidental edits or deleted content.
- Export and Backup: Export individual notes and back up the complete notes collection.
- Themes: Offer consistent light and dark themes.
- Keyboard Shortcuts: Support common writing, navigation, and note-management actions.
Required Implementation Guide
Organize the guide into the following sections, in this exact order:
1. Application Architecture and File Structure
Explain the overall application architecture, recommended project folder structure, module responsibilities, and how the modules communicate. Include a clear dependency overview.
2. HTML5 Semantic Structure and Split-Screen Layout
Build the semantic HTML structure, including the sidebar, note navigation, editing area, Markdown preview, toolbar, and responsive layout foundation. Explain how the interface adapts to desktop and tablet screens.
3. CSS3 Styling System
Create a maintainable styling system with reusable CSS variables, typography, spacing, component styles, light and dark themes, responsive behavior, and code-block presentation.
4. Core JavaScript Modules
Implement the main application modules, including:
- Editor controller
- Markdown preview renderer
- Note manager
- Storage manager
- Application state manager
- User interface controller
Show how each module works and interacts with the others.
5. Markdown Parser Integration
Integrate a suitable Markdown parser and explain how to support tables, fenced code blocks, syntax highlighting, and mathematical equations. Include the required library setup and safe rendering practices.
6. Hierarchical Organization System
Implement categories, tags, favorites, and note navigation. Include the data structure and JavaScript logic needed to create, update, and retrieve organized notes.
7. Search and Filtering Engine
Build a search system that can find notes by title and content. Include content indexing, filtering by category or tag, and practical query-handling examples.
8. Export Functionality
Implement note export to Markdown and HTML, along with a practical PDF export approach. Explain any browser or library dependencies and how users can download their exported files.
9. Keyboard Shortcuts and Productivity Features
Add useful keyboard shortcuts for editing, saving, creating notes, navigating, searching, and switching views. Explain how to prevent shortcuts from interfering with normal text entry.
10. Auto-Save, Version History, and Data Recovery
Implement automatic saving with sensible timing, version snapshots, deletion safeguards, and recovery mechanisms. Explain how to protect users against accidental data loss.
11. LocalStorage Implementation and Backup
Build the local persistence layer, including saving and retrieving notes, handling storage errors, and importing or exporting a complete backup. Explain storage limitations and when IndexedDB would be a better choice.
12. Performance Optimization and Best Practices
Explain how to optimize Markdown rendering, manage application state, reduce unnecessary DOM updates, handle large note collections, manage memory, and keep the architecture extensible.
Code and Explanation Requirements
For every section:
- Provide complete, usable code examples rather than isolated pseudocode.
- Explain where each code example belongs in the project structure.
- Give clear implementation instructions in bullet points.
- Explain how the components connect and work together.
- Keep the code consistent across all sections, using the same filenames, module names, data structures, and function interfaces.
- Include necessary imports, exports, event listeners, and error handling.
- Avoid repeating code unnecessarily; reference previously implemented modules when appropriate.
- Use beginner-friendly explanations without oversimplifying important technical concepts.
- Identify any external libraries required and explain their purpose.
- Do not claim that a feature works unless its implementation has been provided.
- Make sure the final implementation can be assembled into a coherent, functioning application.
Development Approach
Build the application in practical milestones, with each milestone leaving the project in a working state.
Start with the basic interface and project architecture, then implement the editor and preview, storage, organization, search, export, and productivity features.
At the end, provide a final integration checklist covering the complete application, including functionality, responsiveness, browser compatibility, data persistence, and recovery testing.
The goal is a polished, maintainable Markdown notes application that works entirely in the browser and provides a reliable, efficient note-taking experience.
AI Prompt Variable Example
| Variable | Example value |
|---|---|
{{JAVASCRIPT_SKILL_LEVEL}} |
Intermediate |
{{DESIGN_STYLE}} |
Minimalist dark workspace with a clean sidebar, subtle borders, and a distraction-free writing area |
How to Use This Prompt
-
Open ChatGPT and paste the complete prompt into a new conversation.
-
Replace
{{JAVASCRIPT_SKILL_LEVEL}}with your experience level, such as Beginner, Intermediate, or Advanced. This helps ChatGPT adjust its technical explanations. -
Replace
{{DESIGN_STYLE}}with a visual direction, such as Minimalist Editorial, Modern Dark Workspace, or Clean Productivity Interface. -
Ask ChatGPT to begin with Section 1 and complete the implementation in milestones rather than generating the entire application in one response.
-
Test each milestone before moving forward. If you encounter errors, share the relevant files and error messages so ChatGPT can correct the implementation without breaking previously completed features.
Enjoying Isago?
If this content has been helpful, you can support Isago by buying us a coffee.