A simple bookmarks application built with Next.js that automatically fetches website titles and favicons from URLs.
- 📝 Simple Data Structure: Only store URL and categories - titles and favicons are fetched automatically
- 🎨 Category Filtering: Filter bookmarks by category using the sidebar
- 🔍 Automatic Metadata: Fetches page titles and favicons from the actual websites
- 🎯 Color-Coded Categories: Each category has its own color scheme
- 📱 Responsive Design: Works on desktop and mobile devices
- ⚡ Fast Loading: Built with Next.js and optimized for performance
npm installnpm run devOpen http://localhost:3000 with your browser to see the result.
npm run buildTo add new bookmarks, edit the lib/bookmarks.ts file:
export const bookmarks: BookmarkData[] = [
{
href: "https://example.com",
categories: ["design", "inspiration"],
},
// Add more bookmarks here...
]The following categories are available with their own color schemes:
design- Purplecomponents- Bluereact- Cyancss- Orangeutility- Greendevelopment- Graytools- Yellowgit- Redinspiration- Pink
You can add new categories by editing lib/categories.ts.
- Data Storage: Bookmarks are stored as simple objects with
hrefandcategories - Metadata Fetching: The app automatically fetches page titles and favicons using a Next.js API route (
/api/bookmark-metadata) - Server-Side Processing: Metadata is fetched server-side to avoid CORS issues
- Caching: Results are cached in component state to avoid refetching
- Fallbacks: If fetching fails, it gracefully falls back to the domain name as title