The Firefox datasource extracts browsing history from Firefox's places.sqlite database file, allowing you to index and search your web browsing activity.
This datasource reads visit data from Firefox's local SQLite database, including:
- URLs visited
- Page titles
- Descriptions (when available)
- Visit timestamps
The datasource safely creates a temporary copy of the database to avoid conflicts with Firefox when it's running.
[datasources.firefox-browsing]
type = 'firefox'
[datasources.firefox-browsing.config]
database_path = '/path/to/your/firefox/profile/places.sqlite'database_path: Full path to Firefox'splaces.sqlitefile
The location of your Firefox profile varies by operating system:
~/.mozilla/firefox/PROFILE_NAME/places.sqlite
~/Library/Application Support/Firefox/Profiles/PROFILE_NAME/places.sqlite
%APPDATA%\Mozilla\Firefox\Profiles\PROFILE_NAME\places.sqlite
To find your exact profile path:
- Open Firefox
- Navigate to
about:profiles - Look for "Root Directory" under your active profile
- The
places.sqlitefile will be in that directory
You can configure multiple Firefox profiles as separate datasources:
[datasources.firefox-work]
type = 'firefox'
[datasources.firefox-work.config]
database_path = '/home/user/.mozilla/firefox/work.profile/places.sqlite'
[datasources.firefox-personal]
type = 'firefox'
[datasources.firefox-personal.config]
database_path = '/home/user/.mozilla/firefox/personal.profile/places.sqlite'Once configured, the Firefox datasource works with all standard ergs commands:
# Fetch browsing history
ergs fetch
# Search your browsing history
ergs search --query "github"
# List recent visits
ergs list --datasource firefox-browsing --limit 10Each visit record includes:
- url: The visited URL
- title: Page title (if available)
- description: Page description/meta description (if available)
- visit_date: When the page was visited
- Database Locks: Close Firefox before running ergs to avoid database locking issues
- Privacy: Only visits stored in Firefox's history are included; private browsing sessions are not recorded
- Safety: The datasource creates a temporary copy of your database file, so your original Firefox data is never modified
- Performance: Large browsing histories may take longer to process initially
- Verify the path to your Firefox profile
- Check that the
places.sqlitefile exists in the specified location - Ensure you have read permissions for the file
- The database file may be corrupted or from a very old Firefox version
- Try using a different Firefox profile
- Verify the file is actually a Firefox database (not Chrome or another browser)
- Check that your Firefox profile has browsing history
- Verify Firefox is completely closed when running ergs
- Try running ergs with
--debugflag for more detailed logging