{"id":50488167,"url":"https://github.com/esron/shopping-list-pwa","last_synced_at":"2026-06-02T00:04:36.609Z","repository":{"id":342124198,"uuid":"1172907904","full_name":"esron/shopping-list-pwa","owner":"esron","description":"My small and simple implementation of a shopping list application.","archived":false,"fork":false,"pushed_at":"2026-05-28T01:07:38.000Z","size":1218,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-28T03:09:13.052Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/esron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-04T20:17:29.000Z","updated_at":"2026-05-28T01:07:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/esron/shopping-list-pwa","commit_stats":null,"previous_names":["esron/shopping-list-pwa"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/esron/shopping-list-pwa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esron%2Fshopping-list-pwa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esron%2Fshopping-list-pwa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esron%2Fshopping-list-pwa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esron%2Fshopping-list-pwa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esron","download_url":"https://codeload.github.com/esron/shopping-list-pwa/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esron%2Fshopping-list-pwa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33798943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-02T00:04:34.662Z","updated_at":"2026-06-02T00:04:36.597Z","avatar_url":"https://github.com/esron.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shopping List PWA\n\nA distinctive, offline-first Progressive Web App for managing shopping lists with a unique analog receipt aesthetic.\n\n## Features\n\n### Core Functionality\n- ✅ Add and remove shopping list items\n- ✅ Mark items as completed\n- ✅ Search/filter items in real-time\n- ✅ Track quantity and price per item\n- ✅ Receipt-style totals with line items\n- ✅ Share lists via copy/paste\n\n### PWA Features\n- ✅ Offline-first functionality with localStorage\n- ✅ Installable as a PWA (desktop \u0026 mobile)\n- ✅ Service worker caching\n- ✅ Update notifications (\"New version available\")\n- ✅ Dismissible offline indicator\n- ✅ Responsive design for all screen sizes\n- ✅ Dark mode support\n\n### Design \u0026 UX\n- 🧾 **Analog Receipt Aesthetic**: Unique thermal printer-inspired design\n- 🌍 **Multi-language**: English and Portuguese with i18n\n- 💰 **Localized Pricing**: USD ($1,234.56) and BRL (R$ 1.234,56)\n- ✏️ **Inline Editing**: Edit item details without leaving the list\n- 🎨 **Custom Typography**: IBM Plex Mono for authentic receipt feel\n\n## How to Use\n\n### Basic Operations\n1. **Add items**: Type in the input field and click \"Add\"\n2. **Complete items**: Click the checkbox to mark as done\n3. **Delete items**: Click the × button\n4. **Search**: Use the search box to filter items\n5. **Edit details**: Click the pencil (✎) icon to add quantity/price\n\n### Sharing Lists\n- **Copy**: Copies your list to clipboard as formatted text\n- **Paste**: Import a list from clipboard (supports plain text or JSON)\n\n### Price Tracking\n- Add quantity and price to any item via the edit button\n- See line totals (quantity × price) for each item\n- View grand total at the bottom of each list\n- Prices automatically format based on selected language\n\n### Installing\n- Visit the app in your browser\n- Click \"Install App\" when prompted\n- The app will work offline after installation\n\n## Files Structure\n\n```\nshopping_list/\n├── index.html          # Main HTML file\n├── style.css           # Analog receipt styling\n├── app.js              # Application logic\n├── i18n.js             # Internationalization system\n├── service-worker.js   # Service worker for offline functionality\n├── manifest.json       # PWA manifest (English)\n├── manifest-pt.json    # PWA manifest (Portuguese)\n├── locales/\n│   ├── en.json         # English translations\n│   └── pt.json         # Portuguese translations\n├── icon-*.png          # App icons (48px to 512px)\n├── CLAUDE.md           # Development guide for AI assistants\n└── README.md           # This file\n```\n\n## Development\n\n### Local Development\n\nTo serve locally, use any static file server:\n\n```bash\n# Using Python (recommended)\npython -m http.server 8000\n\n# On local network (for mobile testing)\npython -m http.server 8000 --bind 0.0.0.0\n\n# Using Node.js http-server\nnpx http-server\n\n# Using PHP\nphp -S localhost:8000\n```\n\nThen visit `http://localhost:8000` in your browser.\n\n### Service Worker Updates\n\nWhen deploying changes, increment the cache version in `service-worker.js`:\n\n```javascript\nconst CACHE_NAME = 'shopping-list-v8'; // Increment this\n```\n\nUsers will see an \"Update available\" banner and can click to reload.\n\n### Testing on Mobile\n\n1. Start server with `--bind 0.0.0.0` flag\n2. Find your local IP: `hostname -I`\n3. Visit `http://YOUR_IP:8000` on your phone\n4. Make sure both devices are on the same network\n5. Open firewall port if needed: `sudo firewall-cmd --add-port=8000/tcp`\n\n## Architecture\n\n- **Vanilla JavaScript**: No frameworks, just modern ES6+\n- **CSS Variables**: Theme colors defined with CSS custom properties\n- **localStorage**: All data persists locally (no backend required)\n- **Service Worker**: Network-first with cache fallback\n- **i18n System**: Dynamic language switching with manifest updates\n\n## Browser Support\n\n- Chrome/Edge 80+\n- Firefox 75+\n- Safari 13+\n- Mobile browsers with PWA support\n\n## Completed Enhancements\n\n- ✅ Search and filter functionality\n- ✅ Quantity and price tracking\n- ✅ Data sharing via clipboard (copy/paste)\n- ✅ Multi-language support (EN/PT)\n- ✅ Analog receipt design aesthetic\n- ✅ PWA update notifications\n- ✅ Dismissible offline indicator\n- ✅ All icon sizes (48px to 512px)\n\n## Future Ideas\n\n- [ ] Drag and drop reordering\n- [ ] Item categories/grouping\n- [ ] Push notifications for shared lists\n- [ ] Multiple shopping lists\n- [ ] Shopping history/analytics\n\n## License\n\nThis project was created as a PWA demonstration and is available for personal and educational use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesron%2Fshopping-list-pwa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesron%2Fshopping-list-pwa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesron%2Fshopping-list-pwa/lists"}