GitRead 中文社区
首页趋势排行榜原创文章严选周刊
更多资源
新手训练营
精选专题热门话题GitHub 文档资源精选实战指南

MiniSearch

极简的网页搜索平台,配有直接从浏览器运行的AI助手。演示:https://felladrin-minisearch.hf.space

  • 语言TypeScript
  • 默认分支main
  • 大小34.5 MB
  • 更新22 小时前
  • Issues2
在 GitHub 打开
avatarfelladrin

技术解读

以下内容由 GitRead 中文社区 编辑团队基于项目 README 与官方资料整理, 结合中文开发者的常见使用场景补充技术选型建议。具体以项目官方文档为准。

技术分析:felladrin/MiniSearch

项目背景与痛点

在数字时代,信息的过载已成为一个不可避免的问题。如何从海量的互联网数据中获取所需信息,如何实现快速、准确、高效的网页搜索功能,成为了众多开发者和用户共同面对的难题。felladrin/MiniSearch 项目正是为了解决这一痛点而生,它提供了一个基于浏览器运行的精简搜索平台,配合AI助手,满足用户在浏览器中直接进行高效搜索的需求。该项目不仅简化了搜索过程,还能够提升用户的搜索体验,带来更贴心的信息获取方式。

核心技术揭秘

MiniSearch的设计旨在提供一种轻量级、高效、且易于集成的搜索功能。其背后的技术架构并不深厚,秉承着极简原则,通过合理的模块划分和数据流设计,构建了一个易于理解和使用的系统。

技术架构

以下是MiniSearch的关键技术架构:

  • 前端界面:精简的HTML与CSS实现界面用户交互,支持主流浏览器运行。
  • 浏览器API调用:利用浏览器本身的API,如fetch、IndexedDB等,实现异步数据处理与存储。
  • AI助手集成:通过集成外部的AI服务,如Hugging Face Spaces,提供智能化的搜索结果推荐。
  • HTTP请求与响应:使用fetch API发送HTTP请求,从远程服务器获取搜索结果并呈现给用户。
核心数据流
graph TD A[用户输入关键词] --> B[发送HTTP请求] B --> C[远程服务器处理] C --> D[返回搜索结果] D --> E[前端渲染结果] E --> F[用户进一步交互]

通过简化的架构,MiniSearch保持了系统的轻量级,同时确保了数据的高效处理和快速反馈。

功能亮点与差异

MiniSearch功能上最大的亮点便是其高度集成的AI助手和在浏览器中直接运行的能力。作为一个基于Web的搜索工具,它尝试简化搜索过程,消除本地安装的繁琐步骤。相较其他通过单一算法驱动的搜索工具,这里通过AI助手为用户提供更加智能化的搜索结果推送。此外,MiniSearch的开放性(使用流行的Web技术栈),使其具备良好的扩展性,允许根据业务需求进行各种程度的定制和改进。

应用场景与落地建议

在生产环境中使用MiniSearch时,开发者需要注意以下几点:

  • 安全问题:用户输入的验证不可忽视,确保任何外部传入的数据都被妥善处理,避免前端注入攻击。
  • 性能优化:考虑数据处理和结果展示效率,尤其是在大量的搜索请求下如何优化返回结果的速度。
  • 个性化定制:充分利用其良好的扩展性,针对特定应用场景进行定制,以达到最佳的用户体验。

适合的应用场景包括:

  • 教育平台:为学生提供一个简化的线上学习资料搜索工具。
  • 内部文档搜索:企业内部文档、知识库的便捷查询,构建知识管理系统。
  • 个人网站:小型网站或个人博客,满足基本的搜索需求。

综合评价

MiniSearch项目在轻量化、部署简便性方面表现出色,尤其针对浏览器中的搜索需求给出了一个不错的解决方案。其使用的Web技术栈不仅易于维护,还带来了良好的扩展性和集成性。然而,实现更复杂功能时,需要开发者自行进行相应的信息处理与呈现逻辑的完善。如果希望在一个不依赖第三方服务的情况下实现高效的搜索功能,MiniSearch是一个值得考虑的选择。不过,必须明确的是,强大的AI服务依赖于外部的支持,开发者需要评估集成外部服务带来的风险与收益。

内容更新时间:6月20日。 编辑团队负责选题与抽样审核,详见 编辑准则。

相关仓库

freeCodeCamp/freeCodeCamp avatar
freeCodeCampfreeCodeCamp
9 小时前
459.1k
47.5k
189

freeCodeCamp.org 的开源代码库和课程体系。免费学习数学、编程和计算机科学。

learn-to-codenonprofitsprogramming+7
TypeScript
571.2 MB
9
详情
morluto/rea avatar
reamorluto
3 小时前
458.2k
112.1k
867

借助智能体逆向分析任何内容,从应用行为直至原生二进制文件。

agent-skillsaiandroid+17
TypeScript
157.6 MB
0
详情
openclaw/openclaw avatar
openclawopenclaw
2 小时前
394.4k
81.6k
4.8k

真正做实事的 AI。任何 OS。任何平台。龙虾之道。🦞

aiassistantcrustacean+4
TypeScript
14.0 GB
18
详情
nilbuild/developer-roadmap avatar
developer-roadmapnilbuild
1 天前
372.0k
46.3k
0

交互式路线图、指南及其他教育内容,帮助开发者在职业生涯中成长。

computer-scienceroadmapdeveloper-roadmap+7
TypeScript
356.3 MB
2
详情
deepseek-ai/deepseek-harness avatar
deepseek-harnessdeepseek-ai
1 天前
280.7k
34.5k
0

DeepSeek Harness:一切皆插件。

ai-agentscordisdsh+1
TypeScript
380.6 MB
3
详情
anomalyco/opencode avatar
opencodeanomalyco
5 小时前
226.7k
30.7k
4.0k

开源编码代理。

TypeScript
709.8 MB
0
详情
vuejs/vue avatar
vuevuejs
2024年10月10日
212.5k
34.3k
645

这是 Vue 2 的仓库。如需 Vue 3,请前往 https://github.com/vuejs/core

vuejavascriptfrontend+1
TypeScript
31.4 MB
0
详情
n8n-io/n8n avatar
n8nn8n-io
3 小时前
210.4k
61.0k
329

具备原生 AI 能力的公平代码工作流自动化平台。将可视化构建与自定义代码相结合,支持自托管或云端部署,提供 400+ 种集成。

automationipaasn8n+7
TypeScript
801.5 MB
3
详情

关于

aiai-search-engineartificial-intelligencegenerative-aigpu-acceleratedinformation-retrievalllmllm-inferencemetasearchmetasearch-enginequestion-answeringragretrieval-augmented-generationsearxngweb-searchwebappwllama
  • Apache License 2.0
  • 608 Stars
  • 75 Forks
  • 8 Watching

简要分析

热度分
766
价值分
388
活跃状态
活跃
GitHub

语言占比

CSS
Dockerfile
HTML
JavaScript
Shell
TypeScript

Release

  • 2026.11.122 天前
  • 2026.11.86 天前
  • 2026.11.3.11 周前
  • 2026.11.31 周前
  • 2026.10.203 周前

贡献者

renovate[bot]renovate[bot]felladrinfelladringithub-actions[bot]github-actions[bot]dependabot[bot]dependabot[bot]uuzzrmuuzzrmchenzeyan54-commitschenzeyan54-commits74877487KingEmma7KingEmma7lntutorlntutorsnowyukittysnowyukittyhope0719hope0719radamesradames
MiniSearch logo

MiniSearch

Private AI search that runs in your browser.

Live Demo CI status Docker image License GitHub stars

MiniSearch answering a query: an AI response with citations above the search results

About

MiniSearch is a self-hosted search engine with an AI assistant.

The AI can run entirely inside your browser tab, on GPU or CPU, so a working setup needs no API key, no separate inference server, and no third party seeing your queries. Web results come from a bundled SearXNG metasearch instance, are reranked locally, and the whole thing ships as a single Docker container.

Features

  • Private by design. No tracking, no telemetry, no accounts. Search history, cached results, and chats are stored in your browser and never leave your machine.
  • AI in your browser. Pick from several curated models that run on WebGPU where available and on CPU elsewhere. Models are downloaded once and cached by the browser.
  • Any backend you like. Connect an OpenAI-compatible API (Ollama, LM Studio, vLLM, llama.cpp server, or a hosted provider), use the crowdsourced AI Horde, or let the server proxy your own API without exposing its key.
  • A real search pipeline. Text and image results aggregated by SearXNG, reranked locally by a cross-encoder model, cached, and rate-limited; all inside the container.
  • Answers you can verify. Responses cite the sources they draw from, support follow-up questions with conversation memory, reveal the model’s reasoning on demand, and can be read aloud.
  • Local history and analytics. Fuzzy-searchable history with pinning and full-session restore, plus usage statistics and an activity heatmap. Retention is configurable, and storage stays in the browser.
  • Fits your workflow. Set it as your browser’s default search engine, trigger it from Raycast, embed it in your own pages, and optionally protect your instance with access keys.

Quick start

Run the published image:

docker run -p 7860:7860 ghcr.io/felladrin/minisearch

Then open http://localhost:7860 and start searching.

Pin to a specific build

latest moves on every release, so it changes under you. To stay on a known-good build, pin the digest, which always identifies the same image:

docker inspect --format '{{index .RepoDigests 0}}' ghcr.io/felladrin/minisearch:latest
docker run -p 7860:7860 ghcr.io/felladrin/minisearch@sha256:1a2b3c...

The version the running instance reports (in the menu, and under build on /status) tells you which commit it was built from.

Images carry provenance and SBOM attestations, which you can inspect with:

docker buildx imagetools inspect ghcr.io/felladrin/minisearch:latest
Use Docker Compose

Add the service to your docker-compose.yml:

services:
  minisearch:
    image: ghcr.io/felladrin/minisearch:latest
    ports:
      - "7860:7860"
Build from source
git clone https://github.com/felladrin/MiniSearch.git
cd MiniSearch
docker compose -f docker-compose.production.yml up --build
Host it on Hugging Face

Duplicate the Space to get your own hosted instance, no server required. Environment variables can be set in the Space settings.

How it works

flowchart LR subgraph browser [Your browser] UI[Search UI] LocalAI[In-browser model<br/>WebGPU or CPU] Storage[(IndexedDB<br/>history and cache)] end subgraph container [Docker container] Server[App server] SearXNG[SearXNG<br/>metasearch] Reranker[Reranker<br/>ONNX Runtime] end UI <--> Storage UI -->|search| Server Server --> SearXNG SearXNG --> Web((Web)) Server --> Reranker UI -.->|in-browser inference| LocalAI UI -.->|remote inference, optional| RemoteAPI[OpenAI-compatible API<br/>or AI Horde]

Your query goes to the app server, which asks the bundled SearXNG instance to aggregate results from multiple search engines. The server reranks them with a small cross-encoder model before returning them, and the browser caches them locally. If the AI response is enabled, the assistant reads the top results and writes a cited answer, either with a model running in your browser or through the backend you configured. The full picture is in docs/overview.md.

Configuration

MiniSearch works out-of-the-box, but you can customize it if you want. More details at docs/configuration.md.

FAQ

How do I make it my browser's default search engine?

Add a custom search engine in your browser settings using the pattern http://localhost:7860/?q=%s, replacing the host with your instance’s address. Your search term replaces %s.

How do I search from Raycast?

Add this Quicklink to Raycast, and edit it to point to your own instance if you have one.

Can I use my own models through an OpenAI-compatible API?

Yes. Open the menu, set “AI Processing Location” to Remote server (OpenAI-compatible API), then fill in the base URL, and optionally an API key and a model name. If the model is left blank, it is picked from the ones the API lists.

Can others use my instance with my API key without seeing it?

Yes. Configure the INTERNAL_OPENAI_COMPATIBLE_API_* variables from the Configuration table and restart the container. A new option with the name you chose appears in the “AI Processing Location” menu, and the key stays on the server.

Contributing

See the Contributing Guidelines, Code of Conduct, and Security Policy.

Releases

Each release is cut with a CalVer tag (YYYY.M.D). Notable changes are documented in the Changelog.

License

Apache License 2.0

评论

登录 后发表评论
暂无评论
GitRead 中文社区
深度解读 · 趋势洞察 · 价值精选

关于

关于我们联系我们编辑准则收录标准赞赏人员

发现

技术趋势新手训练营资源精选实战指南精选专题热门话题GitHub 文档

条款

隐私政策服务条款网站地图
26.9万收录项目
7.2万中文话题
155精选专题
发现技术价值,连接开源智慧
© 2026 GitRead · GitHub 中文社区 本站与 GitHub, Inc. 无隶属关系;GitHub 是 GitHub, Inc. 的商标。