Export Safari tab groups and open tabs to Netscape bookmarks
Project description
Tabpack
Export your Safari Tab Groups and currently open Safari tabs into a standardized Netscape Bookmarks HTML file. The generated bookmarks.html can be imported into any modern browser (Chrome, Firefox, Arc, etc.) directly.
Unlike the default Safari exporter which cannot export entire Tab Groups, this project directly interrogates the local macOS Safari SQLite database to perfectly extract out your saved context.
Installation
Tabpack is published as a Python package. You can install it globally via uv or any standard pip tool:
uv tool install tabpack
Or just run it instantly without installing:
uvx tabpack
Usage
Simply run the CLI tool on macOS. By default, it will automatically attempt to locate your Safari database (Library/Containers/com.apple.Safari/Data/Library/Safari/SafariTabs.db) and write a bookmarks.html locally to your current directory.
tabpack
Specifying Output Paths
You can manually specify where you want the resulting bookmark file to be saved:
tabpack --out ~/Desktop/safari_bookmarks.html
Specifying The Database Path
If you have a backup of SafariTabs.db stored elsewhere or the tool cannot locate the exact container path on your macOS version, you can manually point the tool to the DB file:
tabpack --db ~/Downloads/SafariTabs.db
Local Development
The project environment is fully hermetic and managed with Nix flakes plus devenv.
- Enter the development shell:
nix develop - Sync dependencies:
uv sync --frozen
- Run the CLI:
uv run tabpack
Quality Checks
Run formatting and linting hooks:
prek run --all-files
Testing
The test suite runs with pytest:
uv run python -m pytest
Packaging
Build source and wheel artifacts:
uv build
Releases
Releases are automated via GitHub Actions and are triggered on tag push events.
- Bump
project.versioninpyproject.toml. - Create and push a tag (for example
v0.1.1).
git tag v0.1.1
git push origin v0.1.1
The release workflow uploads both .whl and .tar.gz artifacts.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tabpack-0.1.0.tar.gz.
File metadata
- Download URL: tabpack-0.1.0.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26971a9d2cc75147d8c9698aa58419dd78c447e45ebfeb76818da5082860de98
|
|
| MD5 |
60a1014476c7a0c17bfb0805c81aa879
|
|
| BLAKE2b-256 |
51af6c77645ed15984e77a7f62612a477859fc9ee3321153da6db7a5396f9e89
|
Provenance
The following attestation bundles were made for tabpack-0.1.0.tar.gz:
Publisher:
publish.yml on hcbt/tabpack
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tabpack-0.1.0.tar.gz -
Subject digest:
26971a9d2cc75147d8c9698aa58419dd78c447e45ebfeb76818da5082860de98 - Sigstore transparency entry: 1123506811
- Sigstore integration time:
-
Permalink:
hcbt/tabpack@0f398aff464d6c883001ea9dda48817fd9cf5821 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/hcbt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0f398aff464d6c883001ea9dda48817fd9cf5821 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tabpack-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tabpack-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3aee1a15fb284eba68e46db100761273a8d26cec571d0369d49de797ac4af484
|
|
| MD5 |
38f63e69a5953dee12f714e01d4ee1eb
|
|
| BLAKE2b-256 |
53834a686a55e45e5411fb3aee7298aa5835f08f01cba209e99cd1a6617634c3
|
Provenance
The following attestation bundles were made for tabpack-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on hcbt/tabpack
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tabpack-0.1.0-py3-none-any.whl -
Subject digest:
3aee1a15fb284eba68e46db100761273a8d26cec571d0369d49de797ac4af484 - Sigstore transparency entry: 1123506864
- Sigstore integration time:
-
Permalink:
hcbt/tabpack@0f398aff464d6c883001ea9dda48817fd9cf5821 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/hcbt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0f398aff464d6c883001ea9dda48817fd9cf5821 -
Trigger Event:
push
-
Statement type: