Skip to content
Projects

About

Tampermonkey userscripts to batch-create/export Gemini public share links, plus a cross-platform desktop app (Tauri + SQLite) to import, tag, favorite and search them fast with fuzzy/semantic retrieval. Multi-library support + bulk open/export.

Data & Analytics

How these counts are measured

Measured star growth

in 24h
0
in 7 days
+1
in 15 days
+4
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.en.md

Original

Gemini Public Links Tools (Personal Accounts)

中文 README

Batch-create Gemini "public links" for many existing chats, export chat title + public link from /sharing, and import them into a local searchable library (SQLite / desktop app) so you can quickly find & reuse chats across multiple personal accounts.

Important: the /sharing page states that a public link is available only as long as the associated chat remains saved in your Gemini Apps Activity. If any part of a chat is deleted, its public link is also deleted. Treat links as "long-lived", not guaranteed permanent.

You Might Be Searching For

  • Gemini chat export / conversation export / chat history backup
  • Bulk "Share conversation" automation / export public share links
  • Gemini /sharing export JSON / export CSV / public links export
  • Tampermonkey userscript / browser automation
  • Turn Gemini chats into a local knowledge base (PKM): searchable, taggable, reusable
  • Local retrieval: SQLite FTS5 / BM25 / fuzzy search (typo tolerance) / semantic search (vector search)

Keywords / Synonyms (for search engines)

Gemini / Google Gemini / Google Bard (old name) / public share link / share conversation / /share / /sharing / export public links / chat export / conversation export / PKM / second brain / local knowledge base / SQLite / FTS5 / BM25 / fuzzy search / semantic search / vector search / Qdrant / Tauri / Tampermonkey

Use Cases

  • Multiple accounts: export/link all your chats and search them in one place.
  • Long-term reuse: keep a searchable library with tags/notes/favorites (and optional short digests).
  • Fast recall: you only remember a vague concept or a misspelled keyword.
  • Cross-device: export JSON/CSV and import the same library on another computer.

Core Features (implemented)

  • Bulk create/export: generate share links from Gemini UI and export from /sharing as JSON/CSV.
  • Local library: import into SQLite (multiple libraries supported), incremental updates + dedup.
  • Retrieval: keyword search (FTS5/BM25) + fuzzy rerank + synonyms + optional semantic search.
  • Management: tags/notes/favorites, bulk open, bulk export for sharing across devices.

Note: this open-source repo focuses on the user-side workflow (userscripts + local library + desktop app). Admin/backend/payment parts are not included.

What’s In This Repo

  1. Browser automation (Tampermonkey userscript)
  • userscripts/gemini_bulk_share.user.js
    • On https://gemini.google.com/app: batch triggers "Share conversation" to create public links for chats.
    • On https://gemini.google.com/sharing: auto-scrolls and exports your public links list as JSON/CSV.
  • userscripts/gemini_bulk_import.user.js
    • On https://gemini.google.com/share/*: batch clicks "Continue this chat" to import shared chats into the currently logged-in Gemini account (use a dedicated browser profile for the target account).
  1. Local database import/search (Python CLI)
  • scripts/gemini_links_db.py
    • Import exported JSON/CSV into SQLite (dedup by url).
    • Search by substring (title/url) and list accounts.
  1. Desktop app (Tauri v2 + React)
  • apps/desktop
    • Import JSON/CSV exports into a local SQLite library.
    • Search with SQLite FTS5 (title/notes/tags), edit notes/tags, mark favorites.
    • Manage multiple libraries (one library = one SQLite file), optional cross-library search.

Chinese beginner docs: docs/work/使用文档/小白教程/Gemini 批量分享链接/README.md

Development Status

  • Current: mostly usable (bulk export/import + local search/management + multi-library), still improving UX and stability.
  • Note: the maintainer is busy recently, so updates may be irregular. Issues with clear reproduction steps/logs are highly appreciated.

Screenshots

Desktop app (Search)

Desktop app (Viewer / Body fetch)

Desktop app (AI assistant / non-keyword retrieval)

Userscripts panel (Gemini /app)

Prerequisites

  • Browser automation: a Chromium browser (Chrome/Edge) + Tampermonkey
  • Python CLI: Python 3
  • Desktop app (dev/build): Node.js + npm, Rust toolchain, and Tauri system dependencies

Recommended Workflow (Per Account)

Repeat for each personal Gemini account:

  1. Log in and open https://gemini.google.com/app
  2. Install Tampermonkey, create a new script, paste userscripts/gemini_bulk_share.user.js
  3. Refresh the page; you should see the "Gemini 批量分享" panel in the top-right
  4. Click "设置账号标签" (Set account label; use your email or a nickname)
  5. Click "开始批量分享" (Start bulk share) and keep the page in the foreground until it finishes
  6. Open https://gemini.google.com/sharing, click "导出 JSON" (or "导出 CSV")
    • The script will auto-scroll first to load more items (can take a while for 200+ links).

Then import and search locally (choose one):

Option A: Python CLI + SQLite

python3 scripts/gemini_links_db.py init --db data/gemini_links.sqlite3
python3 scripts/gemini_links_db.py import --db data/gemini_links.sqlite3 --file /path/to/export.json
python3 scripts/gemini_links_db.py search --db data/gemini_links.sqlite3 --q "NuScenes"
python3 scripts/gemini_links_db.py accounts --db data/gemini_links.sqlite3

Option B: Desktop app

Run in dev mode:

npm -C apps/desktop install
npm -C apps/desktop run tauri dev

Then import your JSON/CSV in the app UI and search locally.

Docs

  • Beginner guide (Chinese): docs/work/使用文档/小白教程/Gemini 批量分享链接/README.md
  • Engineering/tech notes (Chinese): docs/work/使用文档/调研技术/README.md

Export File Format

The /sharing export contains (at least):

  • account: your account label (set in the panel)
  • title: chat title
  • url: https://gemini.google.com/share/...
  • created_text: the "Created ..." line shown by Gemini (best-effort)
  • scraped_at: export time

Practical Limitations / Notes

  • Links are not guaranteed permanent (depends on Gemini Apps Activity retention and future Google policy changes).
  • UI automation is fragile: Gemini DOM/labels can change and break selectors. Keep the tab in the foreground.
  • "Multiple snapshots per chat": Gemini may only allow one share link per chat (verify in your UI).

Keeping The README Updated

This repo maintains two full README files:

  • README.md (Chinese)
  • README.en.md (English)

When you change behavior, UI text, file paths, commands, or add/remove features, update both files in the same PR/commit so they stay in sync.

Explore related projects

Loading…