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

ark-kb

v1.0.1

Published

πŸ›οΈ Ark Knowledge Base β€” Personal knowledge base powered by LanceDB + Multimodal Embedding (Qwen3-VL-8B)

Readme

πŸ›οΈ Ark KB

Ark Knowledge Base β€” Drop files in a folder. Everything else is automatic.

A personal knowledge base for AI assistants. Powered by LanceDB + MinerU + Multimodal Embedding. Auto-detects file types, auto-parses, auto-chunks, auto-embeds, auto-indexes. 90+ file formats, 14-file codebase, ~7,000 lines.


✨ What It Does

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              Your Knowledge Folder                   β”‚
β”‚                                                     β”‚
β”‚  πŸ“„ report.pdf      πŸ“Š data.xlsx     πŸ“½οΈ deck.pptx   β”‚
β”‚  πŸ“ notes.md        πŸ–ΌοΈ photo.jpg     🎬 demo.mp4    β”‚
β”‚  πŸ“„ contract.docx   πŸ“§ email attachments             β”‚
β”‚                                                     β”‚
β”‚         ↓  fs.watch  (real-time)                     β”‚
β”‚         ↓  detectFileKind  (90+ formats)             β”‚
β”‚         ↓  complexity detection (Office XML)          β”‚
β”‚         ↓  MinerU / VLM / direct extract             β”‚
β”‚         ↓  chunkText  (paragraph / fixed / sentence) β”‚
β”‚         ↓  embed  (vectorize)                        β”‚
β”‚         ↓  upsert to LanceDB                         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

You ask: "What was the Q2 revenue forecast?"
   ↓
I search: semantic hybrid search β†’ find the .xlsx chunk β†’ show results

πŸ“‚ Supported Formats (90+)

πŸ“ Text (46 formats)

.md .txt .csv .html .htm .json .yaml .yml .xml .toml

.py .js .ts .jsx .tsx .java .c .cpp .h .go .rs .rb .php .sh .bash .sql .r .scala .lua

.css .scss .less .vue .swift .kt .dart

.log .conf .cfg .ini .env .tex .rst .org .adoc

🏒 Office (6 formats)

| Format | Simple | Complex | Binary | |--------|--------|---------|--------| | Word | .docx (text only) β†’ pipeline | .docx (formulas/images) β†’ vlm | .doc β†’ vlm | | Excel | .xlsx (data only) β†’ pipeline | .xlsx (charts/formulas) β†’ vlm | .xls β†’ vlm | | PPT | .pptx (text only) β†’ pipeline | .pptx (charts/animations) β†’ vlm | .ppt β†’ vlm |

Complexity detection: For .docx / .xlsx / .pptx, the plugin reads the ZIP-internal XML to detect formulas, charts, images, pivot tables, animations, etc. (10 markers each). Complex files automatically route to vlm model for higher accuracy.

πŸ“„ PDF

.pdf β†’ MinerU vlm (formulas, tables, images all extracted)

🌐 HTML

.html .htm β†’ MinerU MinerU-HTML model (structured extraction)

πŸ–ΌοΈ Images (17 formats)

.png .jpg .jpeg .jfif .webp .gif .bmp .svg .tiff .tif .ico .heic .heif .raw .cr2 .nef .arw

β†’ VLM summary β†’ text embedding (configurable to multimodal direct embedding)

🎬 Video (11 formats)

.mp4 .mov .avi .mkv .webm .wmv .flv .m4v .3gp .ogv .ts

β†’ VLM frame analysis β†’ summary β†’ text embedding

πŸ“§ Email Ingestion

IMAP-based (imapflow), auto-polls inbox, extracts .txt .md .pdf .doc .docx .ppt .pptx .xls .xlsx .html .htm .png .jpg .jpeg .gif .svg .webp .bmp attachments.


πŸ”§ How It Works

Ingestion Pipeline

file dropped / email received
    ↓
detectFileKind() β†’ FileKind
    ↓
β”œβ”€ text / code   β†’ direct chunking
β”œβ”€ pdf           β†’ MinerU API v4 (precision parsing)
β”œβ”€ docx/pptx/xlsx β†’ isComplex() β†’ pipeline | vlm β†’ MinerU
β”œβ”€ doc/ppt/xls   β†’ MinerU vlm (binary)
β”œβ”€ html          β†’ MinerU MinerU-HTML
β”œβ”€ image         β†’ VLM describe β†’ text embed (or multimodal)
β”œβ”€ video         β†’ VLM frame β†’ summary β†’ text embed
    ↓
chunkText() (paragraph / fixed / sentence strategy)
    ↓
embedder.embed() β†’ vectors
    ↓
store.upsert() β†’ LanceDB

Chunking Strategies

| Strategy | Behavior | |----------|----------| | paragraph | Split on blank lines, merge up to maxTokens | | fixed | Fixed-size window with overlap | | sentence | Split on sentence-ending punctuation |

Hash Deduplication

SHA256-based content dedup with hash-level locking to prevent concurrent ingestion of identical files with different names.

UID-based Email Tracking

Persists lastProcessedUID to avoid re-processing emails across restarts. Failed emails go to retry queue tracked by UID.


πŸ› οΈ OpenClaw Tools

| Tool | Description | |------|-------------| | kb_search | Hybrid semantic + keyword search with optional fileType filter | | kb_ingest | Manually trigger indexing of a file or all files | | kb_remove | Remove indexed chunks for a given source file | | kb_status | Show total chunks, indexed files, config summary |


πŸ“ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚          Storage Layer               β”‚
β”‚  /path/to/knowledge/ (filesystem)    β”‚
β”‚  ~/.ark-kb/* (state, LanceDB)        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚          Index Layer                 β”‚
β”‚  LanceDB (embedded, zero-ops)        β”‚
β”‚  IVF-PQ ANN search, millisecond       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚          Retrieval Layer             β”‚
β”‚  Hybrid: vector + BM25               β”‚
β”‚  Optional: reranking (BGE-m3)        β”‚
β”‚  fileType filter, pagination         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ”© Technical Stack

| Component | Technology | |---|---| | Vector DB | LanceDB (embedded, zero-ops) | | PDF/Office parsing | MinerU API v4 (precision parsing + complexity routing) | | Embedding | Configurable (MiniMax / Qwen / etc.) | | Image understanding | VLM (MiniMax-VL / Qwen-VL) | | Video summarization | VLM frame analysis | | File watching | fs.watch + debounce | | Email | imapflow (IMAP, configurable polling) | | Search algo | IVF-PQ ANN + BM25 keyword | | Chunking | paragraph / fixed / sentence strategies | | Dedup | SHA256 content hash + hash-level locking | | Runtime | Node.js / TypeScript |


πŸš€ Quick Start

# 1. Install
npm install ark-kb

# 2. Configure (plugin-config.json)
{
  "knowledgePath": "/path/to/knowledge",
  "embedding": { "model": "qwen/Qwen3-VL-Embedding-8B" },
  "pdfParser": {
    "api": "mineru",
    "endpoint": "https://mineru.net/api/v4/extract/task",
    "apiKey": "your-mineru-token"
  }
}

# 3. Drop files into /path/to/knowledge
#    β†’ Auto-indexed. No action needed.

# 4. Search via OpenClaw tool
kb_search(query="Q2 revenue forecast", fileType="xlsx")

πŸ“ License

AGPL v3 Β© njuboy11

A small ark that holds your world. πŸ›οΈ