npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@telepat/lore

v0.1.4

Published

Build and maintain persistent LLM knowledge bases from any content.

Readme

Lore 从您的项目内容构建持久 LLM 知识库——编译 Markdown 百科,而非向量嵌入。

将原始文件、URL 和转录内容转化为由 LLM 图书管理员组织的可导航百科。一次摄入,编译后,您的知识在多次会话中保持可用,没有 RAG 的检索噪音。

专为需要 LLM 在跨会话中保留真实架构上下文的团队打造。

功能特性

  • 编译 Markdown 百科,而非向量嵌入 — 结构化、人类可读、Git 友好。无不透明向量或检索噪音。
  • LLM 驱动的图书管理员 — LLM 像全职研究图书管理员一样,主动组织和交叉链接您的知识。
  • 反向链接 + FTS5/BM25 搜索 — 快速精准检索,无需向量相似度噪音。通过链接直达相关概念。
  • 代码驱动的工作流 — 确定性代码处理摄入、编译、索引和图构建。Token 用于知识组织,而非基础设施。
  • 混合来源摄入 — 文档、代码笔记、URL、聊天记录、媒体文件。Lore 将其统一为一致的知识结构。
  • 多格式导出 — 幻灯片、PDF、DOCX、HTML、Canvas、GraphML。您的知识不受专有格式限制。
  • 智能体就绪的 MCP 服务器 — 13 个工具通过 stdio 提供检索、图谱诊断和维护。兼容任何 MCP 主机。
  • Git 友好且可移植 — 您的百科就是纯 Markdown 文件。提交、分支、随项目发布。

快速开始

# 1) 安装
npm install -g @telepat/lore

# 2) 在项目内创建 Lore 仓库
lore init

# 3) 添加素材
lore ingest ./README.md
lore ingest https://example.com/article

# 4) 编译为百科页面
lore compile

# 5) 搜索和提问
lore search "architecture"
lore query "How does this system work?"

环境要求

  • Node.js 22+
  • 可选:yt-dlp,用于视频字幕提取
    • macOS:brew install yt-dlp

工作原理

Lore 将内容提取到 .lore/raw/,编译为 .lore/wiki/articles/ 中的链接百科文章,然后构建搜索索引和反向链接图。查询和搜索通过图和 FTS 索引解析。导出功能可将百科内容打包为 slides、PDF、docx、web、canvas 或 graphml 格式。

与 AI Agent 一起使用

Lore 内置一流的 MCP 服务器,供智能体集成:

  • MCP 服务器 — 运行 lore mcp 启动 stdio MCP 服务器,提供 13 个工具:
    • 检索: searchasklist_articlesget_articleget_neighborspath
    • 图诊断: graph_statslint_summarylist_orphanslist_gapslist_ambiguous
    • 提取/维护: check_duplicatelist_raw_tagsrebuild_index
  • 兼容主机 — 支持 Claude Code、Cursor、VS Code Copilot 及任何 stdio MCP 客户端。
  • 推荐智能体循环: list_orphanslist_gapslist_ambiguous → 编辑/编译 → rebuild_index(repair=true)
  • Agent 文档MCP 服务器指南 涵盖工具模式、示例调用和故障排查。

安全与信任

  • 密钥在 OS 安全存储可用时保存(macOS Keychain、Linux/Windows 平台等效工具)。
  • 如果安全存储不可用或显式禁用(LORE_DISABLE_KEYTAR=true),写入会失败并提示使用环境变量。
  • Lore 不会以明文回退文件持久化密钥。

运行时环境变量(最高优先级):

  • OPENROUTER_API_KEY
  • REPLICATE_API_TOKEN
  • LORE_CF_ACCOUNT_IDLORE_CF_TOKEN
  • LORE_DISABLE_KEYTAR

文档与支持

贡献

欢迎贡献。请参阅开发指南了解环境搭建、工作流和质量门禁。

许可证

MIT。详见 LICENSE