Skip to main content

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.

  1. Enter the development shell:
    nix develop
    
  2. Sync dependencies:
    uv sync --frozen
    
  3. 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.

  1. Bump project.version in pyproject.toml.
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tabpack-0.1.0.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tabpack-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

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

Hashes for tabpack-0.1.0.tar.gz
Algorithm Hash digest
SHA256 26971a9d2cc75147d8c9698aa58419dd78c447e45ebfeb76818da5082860de98
MD5 60a1014476c7a0c17bfb0805c81aa879
BLAKE2b-256 51af6c77645ed15984e77a7f62612a477859fc9ee3321153da6db7a5396f9e89

See more details on using hashes here.

Provenance

The following attestation bundles were made for tabpack-0.1.0.tar.gz:

Publisher: publish.yml on hcbt/tabpack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for tabpack-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3aee1a15fb284eba68e46db100761273a8d26cec571d0369d49de797ac4af484
MD5 38f63e69a5953dee12f714e01d4ee1eb
BLAKE2b-256 53834a686a55e45e5411fb3aee7298aa5835f08f01cba209e99cd1a6617634c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for tabpack-0.1.0-py3-none-any.whl:

Publisher: publish.yml on hcbt/tabpack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page