Getting Started with Glyphrig
Create your own data-only glyphrig_bookmarks repository in one command, publish it automatically via CI/CD, and sync a chosen bookmark folder two-way across Desktop Chrome, Desktop Firefox, Firefox for Android, and phones.
Step 1: Scaffold Your Bookmark Repository
Run glyphrig init (no global install or template-repo fork required — your repo starts with clean git history and zero framework boilerplate):
npx --yes @glyphrig/cli@0 init glyphrig_bookmarks
cd glyphrig_bookmarks
In an interactive terminal, glyphrig init prompts for your site title, description, author, CI/hosting provider, whether to include starter example bookmarks, and optional PWA Quick Add coordinates.
Non-Interactive / Provider Flags
You can also skip prompts with --yes and select any CI/hosting target directly:
# GitHub Actions -> GitHub Pages (default)
npx --yes @glyphrig/cli@0 init glyphrig_bookmarks --yes --ci github --title "My Bookmarks"
# GitLab CI -> GitLab Pages
npx --yes @glyphrig/cli@0 init glyphrig_bookmarks --yes --ci gitlab --title "My Bookmarks"
# Forgejo / Codeberg Actions -> pages branch
npx --yes @glyphrig/cli@0 init glyphrig_bookmarks --yes --ci forgejo --title "My Bookmarks"
# Cloudflare Pages / Netlify / Vercel / custom
npx --yes @glyphrig/cli@0 init glyphrig_bookmarks --yes --ci cloudflare --title "My Bookmarks"
# Start completely empty (no sample bookmarks)
npx --yes @glyphrig/cli@0 init glyphrig_bookmarks --yes --no-examples
This creates:
glyphrig_bookmarks/
├── .gitignore
├── README.md
├── glyphrig.config.yaml # Site metadata, theme accent, enrichment & PWA Quick Add
├── bookmarks/
│ └── README.md # Root bookmarks (+ dev/, dev/web/, reading/ when examples enabled)
└── .github/workflows/deploy.yml # Or .gitlab-ci.yml / .forgejo/workflows/deploy.yml per --ci
Step 2: Initialize Git & Push to Your Forge
Create an empty public repository on GitHub, GitLab, or Codeberg (e.g. glyphrig_bookmarks), then push:
git init -b main
git add -A
git commit -m "chore: initial glyphrig_bookmarks setup"
GitHub (gh CLI or git remote)
# Option 1: create and push in one command with GitHub CLI
gh repo create glyphrig_bookmarks --public --source=. --push
# Option 2: push to an already-created empty GitHub repo
git remote add origin git@github.com:<your-username>/glyphrig_bookmarks.git
git push -u origin main
GitLab / Codeberg / Self-Hosted
git remote add origin git@codeberg.org:<your-username>/glyphrig_bookmarks.git
git push -u origin main
Step 3: Customize glyphrig.config.yaml and bookmarks/
Edit glyphrig.config.yaml:
site:
title: My Public Bookmarks
description: Curated links synced from my browsers via Glyphrig.
author: Your Name
# url: https://<your-username>.github.io
# base: /glyphrig_bookmarks/ # Auto-inferred on GitHub Actions; set explicitly if needed
theme:
# use: editorial # Built-in: editorial | minimal | terminal | nord, or "./theme"
accent: "#b45309"
defaultView: list # "list" | "cards"
# colorScheme: system # "system" | "light" | "dark"
# customCss: assets/custom.css
# customHead: assets/head.html
enrichment:
enabled: true
fetchFavicons: true
fetchOgImage: true
autoTags: false
concurrency: 8
timeoutMs: 5000
ttlDays: 30
pwa:
enabled: true
quickAdd:
enabled: false # Enable for mobile PWA Quick Add / Share Target
forge: github
owner: <your-username>
repo: glyphrig_bookmarks
branch: main
rootDir: bookmarks
Security rule: Never place Personal Access Tokens inside
glyphrig.config.yamlor commit tokens to Git.pwa.quickAddstores only public repository coordinates; your PAT lives strictly in that browser'slocalStorage.
Want to use another built-in preset, restyle with CSS, or supply a full custom Astro theme? See the Theming Guide (or run npx --yes @glyphrig/cli@0 theme list).
Step 4: Enable Static Site Publishing
- GitHub Pages (
.github/workflows/deploy.yml):- Open your repo's Settings -> Pages.
- Under Build and deployment -> Source, choose GitHub Actions.
- Trigger the workflow from Actions -> Build & Deploy Glyphrig Site -> Run workflow (or push a change under
bookmarks/). Your site publishes tohttps://<your-username>.github.io/glyphrig_bookmarks/(or/if you add aCNAMEfile). - The workflow caches
.glyphrig-cacheviaactions/cache@v4and runs a weekly keep-warm schedule.
- GitLab Pages (
.gitlab-ci.yml): Enabled automatically on push tomain. - Codeberg / Forgejo Actions (
.forgejo/workflows/deploy.yml): Builds./distand force-pushes to thepagesbranch. - Cloudflare Pages / Netlify / Vercel: Connect your repo with build command
npx --yes @glyphrig/cli@0 build --base /, output directorydist, andNODE_VERSION=22.
Step 5: Install & Connect the Browser Extension
Download the latest release bundles from Glyphrig Releases:
- Desktop Chrome / Brave / Edge: unzip
glyphrigextension-*-chrome.zip, openchrome://extensions, enable Developer mode, and click Load unpacked. - Desktop Firefox: load
glyphrigextension-*-firefox.zipviaabout:debugging(or the signed AMO build). - Firefox for Android: install the signed Firefox release (
gecko_androidis configured in the MV3 manifest).
Configure a sync profile in each browser:
- Create a dedicated folder inside your bookmarks bar/toolbar (e.g.,
Bookmarks Bar/Public Bookmarks). Glyphrig intentionally disables top-level browser roots so private bookmarks are never synced. - Open Glyphrig Settings -> Profiles, set:
- Forge:
GitHub(orGitLab/Forgejo / Codeberg) - Owner / Group:
<your-username> - Repository:
glyphrig_bookmarks - Branch:
main - Repo Folder:
bookmarks - Published Site URL: e.g.
https://<your-username>.github.io/glyphrig_bookmarks/
- Forge:
- Authenticate:
- GitHub OAuth Device Flow: Click Sign in with GitHub, copy the 8-character code, and approve at
github.com/login/device. - Or Fine-Grained PAT: Scope it strictly to
<your-username>/glyphrig_bookmarkswith Contents: Read and write (tokens stay solely inbrowser.storage.local).
- GitHub OAuth Device Flow: Click Sign in with GitHub, copy the 8-character code, and approve at
- Click Test Connection to confirm repo and branch access.
- Select
Public Bookmarksin the Synced Bookmark Folder picker. - Keep all four Safety Rails enabled, click Preview Sync (Dry-Run), verify the proposed pushes/pulls/skips, and click Confirm & Sync.
Step 6: Add Additional Devices & Local Preview
- Laptop, Desktop & Firefox Android: Install the extension, create an empty
Public Bookmarksfolder, point it at the sameglyphrig_bookmarksrepo andmainbranch, and confirm the initial dry-run preview to pull everything into sync two-way (60s debounced push, 15m periodic pull, plus startup pull). - iOS / Chrome Android: Set
pwa.quickAdd.enabled: trueinglyphrig.config.yamlwith your repo coordinates, install your published site to your home screen, and use + Quick Add (or Android Share Target) with a scoped PAT stored locally in that browser. - Local preview & validation anytime:
npx --yes @glyphrig/cli@0 validate npx --yes @glyphrig/cli@0 dev
Step 7: Shared & Team Repositories (Optional)
Multiple people can point Glyphrig (extension or PWA Quick Add) at the same shared repository:
- Plain forge attribution & duplicate merging: Glyphrig records your Git forge handle (
by=alice,bob) in each bookmark's hidden HTML comment. When multiple collaborators save the same URL, Glyphrig merges their handles, unions#tags, preserves notes, keeps the earliestaddeddate, and surfaces shared popularity rankings at/popular/and per-user views at/u/<username>/. - Two-way vs. Contribute-only mode: In Extension Settings -> Sync Mode, choose Two-way sync to mirror all team bookmarks into your browser folder, or Contribute-only to push your own additions and removals to the repo without pulling collaborators' bookmarks into your personal browser.
- Non-destructive
.archived/folder: Deleting a link removes only your handle fromby=.... When no contributors remain saving that bookmark, Glyphrig moves it into<folder>/.archived/README.md(archived=YYYY-MM-DD) in the same directory—preserving history in Git while excluding archived items from the published site. Re-saving the link restores it cleanly.