8000 GitHub - bingoYB/ham_home: Open-source, local-first web clipper & tab manager: save pages, text and images, search collections, restore workspaces, and manage supported tasks with an AI Agent. Optional WebDAV sync. | 开源、本地优先的网页收藏与标签页管理扩展:网页、文本与图片剪藏,语义搜索、工作空间恢复、Agent 辅助操作与可选 WebDAV 同步。 · GitHub
[go: up one dir, main page]

Skip to content
bingoYBPublic

About

Open-source, local-first web clipper & tab manager: save pages, text and images, search collections, restore workspaces, and manage supported tasks with an AI Agent. Optional WebDAV sync. | 开源、本地优先的网页收藏与标签页管理扩展:网页、文本与图片剪藏,语义搜索、工作空间恢复、Agent 辅助操作与可选 WebDAV 同步。

Topics

Resources

Stars

126 stars

Watchers

0 watching

Forks

Latest commit

 

History

279 Commits

Folders and files

Repository files navigation

简体中文 · English

HamHome

HamHome — AI Bookmark Manager

AI categories, tags, summaries and semantic search for Chrome, Edge and Firefox

Release Stars Issues License: MIT

Keep your collections organized and your tabs tidy, with help from AI.

Website · Install · Usage Guide · Features · Development · Community

What is HamHome?

HamHome is an open-source, local-first AI bookmark manager for Chrome, Edge and Firefox. Generate categories, tags and summaries, import existing bookmarks for bulk AI analysis, and find saved content with keyword or semantic search. Also save text and image clips and tab workspaces.

  • Save with less sorting. Let AI generate summaries, categories, and tags, keep page snapshots and screenshots, or clip just the passage or image you need.
  • Organize existing bookmarks. Import browser bookmarks or an HTML file into HamHome, select items for bulk AI analysis, and optionally write results back to the browser bookmark bar.
  • Find it when you need it. Search saved content with keywords or semantic search, browse page screenshots in the visual gallery, or ask the built-in Agent to find and summarize it.
  • Keep tabs organized. Save a set of tabs as a workspace and restore it when needed. Chrome/Edge also support native Tab Group rules and optional AI grouping.
  • Ask for help with a task. Let the Agent search and summarize saved content, open extension views, check sync status, and run supported tools. Execution steps are visible; credentials and sensitive settings remain under your control.

Local first. Your choice of AI. Data stays in your browser by default, with no HamHome account required. AI features send relevant content to the provider you connect. AI requires your own provider or local endpoint; cloud API charges depend on the provider. Semantic search requires separate embedding configuration and an index. WebDAV sync and file import/export are optional.

Is HamHome right for you? · Import and organize old bookmarks · Set up AI providers

Product facts

Question Answer
What can I save? Page bookmarks, text clips, and image clips; optional local snapshots and page screenshots.
Where is my data? Browser storage and IndexedDB by default. No HamHome account is required.
Does everything work offline? Manual collection management is local. AI, link checks, and WebDAV use the relevant network services.
How is AI configured? Bring your own provider or local endpoint. Embeddings are configured separately for semantic search; image analysis requires a vision-capable model.
What does the Agent do? Search and summarize saved content, explain features, open views, inspect status, and run supported management tools. Sensitive credentials remain manual.
What does WebDAV sync? Structured data and bookmark text. Local HTML/Markdown snapshot files and page screenshots are not synced through WebDAV.
Are all browsers identical? Chrome/Edge run native Tab Group automation. The current Firefox build saves/restores workspaces but does not run native Tab Group automation.
Can I move my data? Import browser bookmarks, export JSON/HTML, and optionally sync through your WebDAV server. JSON backups do not contain page screenshots.

Start with a task

Install from your browser’s store, save a page or clip, then explore the library. Add AI or WebDAV only when you need them. See the usage guide for detailed instructions.

Screenshots

In-page Quick Save Image Clip
In-page Quick Save Image Clip
Bookmark Library Visual Gallery
Bookmark Library Visual Gallery
Bulk Bookmark Actions In-page Content Panel
Bulk Bookmark Actions In-page Content Panel
Bookmark Health Center Trash
Bookmark Health Center Trash
AI Agent Workspaces
AI Agent Workspaces
Tab Group Rules Import, Export, and Sync
Tab Group Rules Import, Export, and Sync

Features

AI-assisted bookmarking

  • Save the current page from the toolbar quick panel, context menu, or keyboard shortcut. The save form opens right on the page, so AI analysis never interrupts browsing; you can switch back to saving inside the popup in settings.
  • Extract page metadata and readable content with Defuddle, Mozilla Readability, and SingleFile-based snapshot capture.
  • Generate summaries, categories, tags, and optional translations after the user configures an AI provider.
  • Capture a screenshot of the visible page with each save, independently of the HTML/Markdown snapshot. HamHome's own UI is hidden during capture, and private pages skip screenshots by default.
  • Re-analyze existing bookmarks in bulk from the management page.

Text and image clips

  • Right-click selected text to save it as a text clip. The bookmark keeps the exact quote and reopens the source page at that passage through a Text Fragment.
  • Right-click an image to save an image clip with its source page, image URL, size, format, and dominant colors.
  • With a vision-capable model, AI suggests titles, summaries, categories, and tags for image clips. Image analysis can be turned off, and images from private pages are never sent.
  • Clips appear in the library as text and image cards, and the content-type filter separates bookmarks, images, and text.

Library views and filters

  • Switch between masonry cards, a compact list, and a visual gallery built from saved page screenshots; hover a card to preview its screenshot.
  • Filter by category, tag, content type, time range (including custom date ranges picked from a calendar), or saved custom filters.
  • Batch tag, move, delete, sync snapshots to Obsidian, or re-run AI analysis on selected bookmarks.
  • Large libraries stay responsive: lists, tag filters, and the health list are virtualized.

Bookmark Health Center and Trash

  • Check bookmark links on demand, or schedule checks weekly or monthly. Only 404 / 410 count as broken; sign-in walls, rate limits, server errors, and timeouts are flagged separately instead of being treated as dead links.
  • Adopt a redirect's new URL in one click, and spot duplicates by normalized URL (tracking parameters and fragments ignored) even before any check has run.
  • Clean up each duplicate group in one click, keeping the earliest saved bookmark. Image and text clips are excluded from health checks.
  • Deleted bookmarks move to Trash together with their content, snapshots, screenshots, and clips, and can be restored for 30 days. After that, or after a permanent delete, only a lightweight tombstone remains so the deletion syncs to your other devices.

AI Agent and search

  • Search bookmarks by title, URL, description, content, category, tag, domain, and time range.
  • Enable embedding-based semantic search and hybrid ranking that combines keyword and vector results.
  • Use the built-in AI Agent to understand HamHome features and settings, inspect status, search/summarize saved pages, open extension views, and handle safe non-sensitive setup.
  • Search from the browser address bar with the ham omnibox keyword when enabled.

Workspaces and tab sessions

  • Save the current window as a restorable workspace with page order, favicon, pinned state, and native Tab Group metadata.
  • Restore all or selected pages into the current window or a new window, with duplicate URL skipping.
  • Manage workspace-only categories and tags separately from bookmark categories.
  • Analyze workspace pages for duplicates, rough purpose/category signals, and bookmark conversion candidates.
  • Drag pages between workspaces or Tab Groups, edit page metadata, and convert useful pages into long-term bookmarks.

Native Tab Group automation

  • Create automatic grouping rules by domain, URL text, title, case-insensitive title, or regex.
  • Configure group title, color, collapsed state, ordering, and multiple match conditions.
  • Let unmatched tabs fall back to root-domain grouping or AI grouping. Manual rules always run first.
  • AI auto-grouping can use page title, URL, metadata, existing group titles, and custom grouping instructions; results are cached by domain and instruction set.
  • Chromium browsers apply rules through chrome.tabGroups; Firefox can store rules but does not run native Tab Group automation where the API is unavailable.

Snapshots, screenshots, and Obsidian

  • Save local HTML or Markdown snapshots for offline reading.
  • View, download, update, or delete snapshots from bookmark management; view, download, or delete page screenshots from the screenshot viewer.
  • Sync Markdown-style bookmark notes to Obsidian through the obsidian://new flow, with clipboard fallback and unchanged-content skipping.
  • Keep snapshot and screenshot storage visible from settings.

Import, export, and sync

  • Export full HamHome JSON backups containing bookmarks, clips, categories, workspaces, workspace categories, Tab Group rules, and auto-group settings.
  • Export a browsable HTML bookmark page.
  • Import HamHome JSON backups or standard browser bookmark HTML files from Chrome, Firefox, and Edge.
  • Import browser bookmarks directly through the browser bookmarks API, optionally preserving folder hierarchy or running AI analysis.
  • Write HamHome bookmarks back to the browser bookmark bar with root-folder, clear-first, and duplicate-skip options.
  • Sync structured data through WebDAV under /HamHomeSync: settings, bookmark/category data, bookmark text content, clips, workspaces, workspace categories, and Tab Group configuration. Bookmarks are matched by URL so syncing several devices does not create duplicates, deletions sync as tombstones, and Basic auth falls back to Digest automatically. Local HTML/Markdown snapshot files and page screenshots stay on the device unless you download them or send notes through the Obsidian workflow.

Privacy and storage controls

  • Store primary data in browser storage and IndexedDB; no HamHome-hosted accou 6870 nt is required.
  • Bring your own AI key and endpoint. Supported chat providers include OpenAI, Anthropic, Google Gemini, Azure OpenAI, DeepSeek, Groq, Mistral, Moonshot/Kimi, Zhipu/GLM, Tencent Hunyuan, NVIDIA NIM, SiliconFlow, Ollama, and custom OpenAI-compatible APIs.
  • Configure embeddings separately for semantic search. Supported embedding providers include OpenAI, Google, Azure, Mistral, Zhipu, Hunyuan, NVIDIA, SiliconFlow, Ollama, and custom OpenAI-compatible APIs.
  • Keep sensitive domains out of AI analysis and page screenshots with privacy domain settings and automatic privacy detection.
  • AI keys, Base URLs, privacy domains, WebDAV credentials, and browser shortcuts must be configured by the user; the Agent does not read or fill them.

Modern extension UI

  • Full extension app with bookmarks, Bookmark Health, workspaces, Tab Groups, categories, tags, privacy, import/export, Trash, settings, and about pages.
  • Toolbar quick panel to save the current page, open the bookmark panel, and check recent saves and common settings.
  • In-page edge-triggered bookmark panel with left/right positioning; it can be turned off in settings.
  • Light, dark, and system themes with English and Chinese localization.
  • Sync status widget, shortcut display, custom filters, tag cloud, storage stats, and vector index controls.

Browser Support

Browser Status
Chrome / Chromium Manifest V3
Microsoft Edge Manifest V3
Firefox Firefox build, 109+ configured; native Tab Group automation depends on browser API support

Downloads

Installation from Source

git clone https://github.com/bingoYB/ham_home.git
cd ham_home
pnpm install
pnpm build:extension

Load the built extension:

  • Chrome / Chromium: open chrome://extensions/, enable Developer mode, choose Load unpacked, and select apps/extension/.output/chrome-mv3.
  • Microsoft Edge: open edge://extensions/, enable Developer mode, choose Load unpacked, and select apps/extension/.output/edge-mv3.
  • Firefox: open about:debugging, choose This Firefox, choose Load Temporary Add-on, and select apps/extension/.output/firefox-mv2/manifest.json.

Development

# Install workspace dependencies
pnpm install

# Run extension dev builds
pnpm dev:extension
pnpm dev:ext-firefox
pnpm dev:ext-edge

# Run the Next.js product site
pnpm dev:web

# Build
pnpm build
pnpm build:extension
pnpm build:web

# Package and submit extension builds
pnpm zip:extension
pnpm submit:init
pnpm submit:extension

# Tests and screenshots
pnpm --filter hamhome test
pnpm --filter hamhome test:e2e:install
pnpm --filter hamhome test:e2e
pnpm --filter hamhome screenshots

Tech Stack

Node pnpm TypeScript React

  • Monorepo: pnpm workspaces + Turborepo
  • Extension: WXT + React 19 + TypeScript + Tailwind CSS 4
  • Product site: Next.js 16 + React 19
  • UI: shadcn/ui-style primitives, Radix UI, lucide-react, shared @hamhome/ui and @hamhome/ui-business
  • AI: @hamhome/agent, provider adapters, embedding queue, hybrid retriever
  • Extraction: Defuddle, Mozilla Readability, SingleFile-style capture, Turndown/Markdown workflows
  • Storage: WXT Storage, browser storage APIs, IndexedDB for snapshots, page screenshots, AI cache, and vector data
  • Sync: WebDAV, gzip-compressed bookmark content chunks, sync locks, local credential obfuscation
  • Testing: Vitest + Playwright extension E2E + generated screenshot suites

Project Structure

ham_home/
├── apps/
│   ├── extension/          # WXT browser extension
│   │   ├── components/     # React feature components
│   │   ├── contexts/       # Bookmark and app state context
│   │   ├── entrypoints/    # app, popup, content, background entrypoints
│   │   ├── hooks/          # Extension hooks
│   │   ├── lib/            # AI, agent, search, sync, storage, services
│   │   ├── locales/        # English and Chinese i18n resources
│   │   └── e2e/            # Playwright extension tests and screenshot generation
│   └── web/                # Next.js product / marketing site
├── packages/
│   ├── agent/              # Browser agent runtime (vendored from browser-agent-sdk)
│   ├── ui/                 # Shared UI primitives
│   ├── ui-business/        # Shared HamHome business UI
│   ├── types/              # Shared TypeScript types
│   ├── utils/              # Shared utilities
│   ├── parser/             # Content parsing package
│   ├── storage/            # Storage abstraction package
│   ├── db/                 # Drizzle schema package
│   ├── api/                # Cloudflare Workers / Hono API package
│   └── i18n/               # Shared i18n package
└── docs/                   # Product docs, Chinese README, screenshots, design notes

Community and support

  • GitHub Discussions — Ask a question in Q&A, suggest a feature in Ideas, or share your bookmark workflow in Show and tell.
  • Issues — Report a reproducible bug. Include your browser, HamHome version, and steps to reproduce it.
  • Pull requests — Submit a fix, translation, or documentation change, or review an open contribution.

Contributing

Contributions are welcome. Please keep changes focused, follow the existing TypeScript and React patterns, and include tests or manual verification steps for extension workflows.

  1. Fork this repository.
  2. Create a feature branch: git checkout -b feature/your-feature.
  3. Commit with a scoped message, preferably Conventional Commits.
  4. Push your branch and open a Pull Request.

License

MIT


If HamHome is useful to you, a star is very appreciated.

About

Open-source, local-first web clipper & tab manager: save pages, text and images, search collections, restore workspaces, and manage supported tasks with an AI Agent. Optional WebDAV sync. | 开源、本地优先的网页收藏与标签页管理扩展:网页、文本与图片剪藏,语义搜索、工作空间恢复、Agent 辅助操作与可选 WebDAV 同步。

Topics

Resources

Stars

126 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0