Vanshdeveloper/console-diary
A minimal, command-driven journaling application designed for developers and thinkers. Write your thoughts in terminal style with a distraction-free interface.
Console Diary
A minimal, command-driven journaling application designed for developers and thinkers. Write your thoughts in terminal style with a distraction-free interface.
๐ Live Demo
Features
โจ Minimal & Distraction-Free - Clean, terminal-inspired design
๐ Command-Driven Interface - Use simple commands to manage your diary
๐พ Auto-Save - All entries are automatically saved in your browser's localStorage
๐ค Export Options - Download your diary as JSON or TXT files
๐๏ธ Entry Management - Delete, clear, and reset commands
โจ๏ธ Keyboard Shortcuts - Use Ctrl+Enter (or Cmd+Enter on Mac) to save entries
โฟ Accessible - Built with proper semantic HTML and ARIA labels
๐ฑ Responsive - Works beautifully on desktop, tablet, and mobile devices
Getting Started
- Open
index.htmlto see the landing page - Click "Enter Diary" or navigate to
diary.htmlto start journaling - Enter a date and your thoughts
- Click "Save Entry" or press Ctrl+Enter to save
- Type
/helpin the text area to see all available commands
Available Commands
| Command | Description |
|---|---|
/help |
Display all available commands |
/clear |
Clear the console output |
/export |
Download diary entries as JSON |
/exporttxt |
Download diary entries as TXT |
/reset |
Delete all entries (cannot be undone) |
Project Structure
Console Diary/
โโโ index.html - Landing page
โโโ diary.html - Diary application
โโโ README.md - This file
โโโ src/
โโโ js/
โ โโโ script.js - Landing page logic
โ โโโ diary.js - Diary app logic
โโโ styles/
โโโ stylesheet.css - Landing page styles
โโโ diary.css - Diary app styles
Tech Stack
- HTML5 - Semantic markup with ARIA labels
- CSS3 - Modern responsive design with CSS variables
- JavaScript - Vanilla JS (no dependencies)
- LocalStorage - Browser-based data persistence
Recent Improvements (v1.1)
Code Quality
- โ Refactored JavaScript with better organization and comments
- โ Added error handling and input validation
- โ Improved function naming and modularity
- โ Better code structure with proper separation of concerns
User Experience
- โ Added Ctrl+Enter keyboard shortcut to save entries
- โ Auto-populate date field with today's date
- โ Better visual feedback for buttons and interactions
- โ Improved placeholder text with command hints
- โ Enhanced success/error messages
Accessibility
- โ Added proper ARIA labels and roles
- โ Better semantic HTML structure
- โ Keyboard navigation support
- โ Focus management improvements
- โ Better color contrast and visual hierarchy
Styling & Design
- โ CSS custom properties for consistent theming
- โ Enhanced responsive design for mobile devices
- โ Better typography and spacing
- โ Improved visual consistency across sections
- โ Added focus states for keyboard navigation
- โ Smooth transitions and hover effects
- โ Better button styling with clear CTAs
Features
- โ Export function now includes timestamps
- โ Better error messages for invalid commands
- โ System messages with appropriate colors
- โ Improved entry deletion with confirmation
- โ Better console output formatting
Navigation & Landing Page
- โ Fixed header positioning
- โ Improved mobile navigation menu
- โ Added "Enter Diary" CTA link in navigation
- โ Better section hierarchy with h1/h2 tags
- โ Enhanced responsive breakpoints
- โ Better visual hierarchy and spacing
Browser Support
- Chrome/Edge (latest)
- Firefox (latest)
- Safari (latest)
- Mobile browsers (iOS Safari, Chrome Mobile)
Data Privacy
All your diary entries are stored locally in your browser's localStorage. No data is sent to any server. Your privacy is completely protected.
License
Free to use and modify for personal use.
Tips
- Use
/exportto back up your entries regularly - Date format is YYYY-MM-DD (auto-populated)
- Entries support multi-line text
- Delete entries individually or clear everything with
/reset - Your data persists across browser sessions