https://github.com/thitlwincoder/browser_data
Dart package to retrieve browser's data.
https://github.com/thitlwincoder/browser_data
bookmark browser dart data flutter history package
Last synced: 4 months ago
JSON representation
Dart package to retrieve browser's data.
- Host: GitHub
- URL: https://github.com/thitlwincoder/browser_data
- Owner: thitlwincoder
- License: mit
- Created: 2023-08-03T02:37:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-07T09:39:02.000Z (about 1 year ago)
- Last Synced: 2025-10-22T22:52:43.855Z (8 months ago)
- Topics: bookmark, browser, dart, data, flutter, history, package
- Language: Dart
- Homepage: https://pub.dev/packages/browser_data
- Size: 9.94 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# browser_data
[](https://pub.dev/packages/browser_data)
[](https://github.com/thitlwincoder/browser_data/commits/main)
[](https://github.com/thitlwincoder/browser_data)
[](https://github.com/thitlwincoder/browser_data/blob/main/LICENSE)
[](https://github.com/thitlwincoder)
`browser_data` is a dart package to retrieve the browser's data.
| Features | Windows | Mac | Linux |
| --------- | ------------------ | ------------------ | ------------------ |
| History | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
| Bookmarks | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
| Passwords | :heavy_check_mark: | |
| Downloads | | |
## Support Browsers
- Chromium
- Chrome
- Firefox
- LibreWolf
- Safari
- Edge
- Opera
- OperaGX
- Brave
- Vivaldi
- Epic
- Avast
- Torch
- Orbitum
- CentBrowser
- Yandex
## Getting Started
In the `pubspec.yaml` of your flutter project, add the following dependency:
```yaml
dependencies:
...
browser_data: latest
```
Next, we need to install this
```sh
# Dart
pub get
# Flutter
flutter packages get
```
## Usage
Before starting, you must download [sqlite3.dll](https://github.com/thitlwincoder/browser_data/blob/main/example/sqlite3.dll) for this package.
### Browser
If you want to get the `default` browser from the device :
```dart
import 'package:browser_data/browser_data.dart';
var browser = defaultBrowser();
```
You can also use it with a specific browser
```dart
var browser = Chrome();
```
If you want to use with specific sqlite3
```dart
var browser = Chrome(sqlite3Path: './sqlite3.dll');
```
### Profiles
To get `profiles` from a browser.
```dart
var profiles = await browser.fetchProfiles();
// [Default, Guest Profile, Profile 1, Profile 2]
```
### History
To get `history` from a browser.
If `profiles` parameter is null, get from all profiles.
```dart
var histories = await browser.fetchHistory(profiles: ['Default']);
```
Use pagination for history list
```dart
var histories = await browser.fetchHistory(limit: 4, page: 1);
```
### Bookmark
To get `bookmarks` from a browser.
```dart
var bookmarks = await browser.fetchBookmarks();
```
### Password
To get `passwords` from a browser.
```dart
var passwords = await browser.fetchPasswords();
```
## Contribution
Feel free to file an [issue](https://github.com/thitlwincoder/browser_data/issues/new) if you find a problem or make pull requests.
All contributions are welcome :)
## Disclaimer
I just wanted to let you know that I am not responsible for any misuse. This package is only for educational purposes.