Adding a favorite
To add a utility to your favorites:Click the heart icon
Click the heart icon in the top-right corner of any utility card.The heart icon will:
- Change from outline to filled
- Turn red to indicate it’s favorited
- Display a red background
Favorites are saved automatically in your browser’s localStorage and persist across sessions.
Removing a favorite
To remove a utility from your favorites:- Click the filled red heart icon on any favorited utility card
- The utility is immediately removed from your favorites section
- The utility returns to its regular category in the “All Utilities” section
Where favorites appear
Favorites are displayed prominently across all platform versions:- Web version
- Desktop app
- Extension
On the web version, favorites appear in a dedicated section at the top of the homepage with:
- A blue border and background to distinguish from other utilities
- A heart icon header with “Your Favourites” title
- Description: “Quick access to your most-used utilities”
- Grid layout matching the main utilities grid
Storage and syncing
Favorites are stored using the following mechanism:Storage location
localStorage as a JSON array of utility IDs:
Cross-tab syncing
The desktop app includes automatic syncing across multiple windows:The storage event only fires for changes in other tabs/windows. Changes in the current window are handled by the local state update.
Visual indicators
Favorites have distinct visual styling to help you identify them:Favorited state
- Heart icon: Filled with red color (
fill-currentclass) - Icon background: Red background with opacity (
bg-red-500/10) - Icon color: Bright red (
text-red-500)
Non-favorited state
- Heart icon: Outline only (no fill)
- Icon color: Muted gray with low opacity (
text-muted-foreground/30ortext-muted-foreground/40) - Hover effect: Turns red on hover
Layout differences by platform
Web cards (standard layout)
Favorite cards on the web version use the standard card layout:Desktop/extension cards (compact layout)
The desktop and extension versions use a more compact card design:Favorites count badge
The favorites section header includes a count badge showing how many utilities you’ve favorited:Search and filtering
In the Chrome extension, favorites respect the active category filter and search query:- Select a specific category, only favorites in that category are shown
- Enter a search query, only matching favorites appear
Implementation details
Helper functions
The favorites system uses two helper functions:Toggle logic
Toggling a favorite is handled with this logic:Privacy considerations
Because TryDevUtils is privacy-focused:- Favorites are never sent to any server
- Favorites are stored only on your device
- Favorites do not require an account
- Clearing your browser data will remove your favorites
Tips and tricks
Source code reference
The favorites implementation can be found in:- Storage key constant:
/src/pages/Index.tsx:8 - Helper functions:
/src/pages/Index.tsx:10-21 - Toggle logic:
/src/pages/Index.tsx:118-126 - Desktop sidebar favorites:
/src/components/DesktopLayout.tsx:15-24and/src/components/DesktopLayout.tsx:234-256