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

btg-store

v0.1.1

Published

Brain Text Graph - A SQLite-like memory graph store for AI agents

Readme

BTG Store

一个为 AI Agent 和个人知识整理设计的轻量级记忆图谱存储。

先从怎么用开始

  1. 安装

    pnpm add btg-store

    或者直接从仓库体验:

    git clone <repo-url>
    cd btg-store
    pnpm install
    pnpm build
  2. 用 CLI 捕捉灵感

    # 全局安装一次
    npm install -g btg-store
    
    # 记录瞬时想法
    btg note "新的 WebGPU 想法"
    
    # 构建结构化知识并探索
    btg node @idea/webgpu "用 GPU 计算做布局"
    btg edge @me uses @idea/webgpu
    btg search "webgpu"
    btg stats
  3. 作为库调用

    import { BTGStore } from 'btg-store';
    
    const store = new BTGStore({ memoryFile: './my-memory.btg' });
    await store.open();
    
    const noteId = await store.putNoteRaw('捕捉一闪而过的想法');
    await store.putEdge('@me', 'captures', noteId);
    
    const result = store.searchText('一闪而过', 5);
    console.log(result.hits);
    
    await store.exportNDJSON('./memory.ndjson');
    store.close();

启动示例应用

pnpm install
pnpm dev

该命令会启动一个基于本地 BTG Store 的演示界面。

为什么选择 BTG Store

  • 追加写入的数据包,稳定又快速
  • 自带全文检索与图谱遍历能力
  • 自动处理大段文本内容
  • 完全离线可用,需要同步时也支持 HTTPS 客户端/服务端模式

想了解更多?