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

filoscope

v0.4.0

Published

A Filecoin knowledge base built for your agents

Readme

Filoscope

Filoscope materializes Filecoin knowledge as a local tree of useful files. It can also build and publish a named QMD index from those files.

Collections and areas are TypeScript values. Each connector validates its own options and writes one collection to .filoscope/collections/<name>/. Repository connectors preserve selected source files. Document connectors write Markdown with minimal OKF frontmatter and links to the canonical source.

Use the published index

Install the latest published index and its QMD configuration:

npx -y --allow-remote=all filoscope pull

The index is named filoscope, so you can search it from any directory:

npx -y --allow-remote=all -p filoscope qmd --index filoscope search 'FIP-0081' -c fips -n 5
npx -y --allow-remote=all -p filoscope qmd --index filoscope query 'how do storage providers prove storage over time'
npx -y --allow-remote=all -p filoscope qmd --index filoscope get 'qmd://fips/FIPS/fip-0081.md'

Areas provide reusable collection filters for broad subjects:

npx -y --allow-remote=all filoscope areas
npx -y --allow-remote=all filoscope area onchain-cloud

You can pass the result directly to QMD:

npx -y --allow-remote=all -p filoscope qmd --index filoscope query \
  'how are PDP storage payments settled?' \
  $(npx -y --allow-remote=all filoscope area onchain-cloud)

Materialize local files

Use Node.js 22.21.1 or later. Clone the repository and install its dependencies:

npm ci --allow-remote=all

Materialize every collection, or name the collections you need:

npm run filoscope -- sync
npm run filoscope -- sync fips lotus

sync only writes local collection files. It does not require QMD and does not generate QMD configuration. A full sync removes undeclared collection directories. A named sync leaves other directories unchanged.

Generate the named QMD configuration when you want to build an index:

npm run filoscope -- config
npm exec -- qmd --index filoscope update
npm exec -- qmd --index filoscope embed

Define a collection

Each file in collections/ exports exactly one collection. Collection names are explicit and must be unique across the workspace.

import { github } from "../src/connectors/github.ts";

export default github({
  name: "lotus",
  context: "Go implementation of the Filecoin Lotus node, miner, worker, and gateway.",
  repository: "filecoin-project/lotus",
  include: "**/*.{md,go,sh,toml,json,yml,yaml}",
});

The include option controls which repository files are materialized. QMD uses **/* for every collection because connectors only write useful files.

Filoscope also includes connectors for GitHub Discussions, Google Drive, and Slack. Document connectors emit one Markdown file for each source unit and use this frontmatter:

type: Reference
title: Document title
context: Why this collection exists
resource: https://canonical.example/document
updated_at: 2026-08-20T10:00:00Z

Define an area

Each file in areas/ exports one area containing collection names:

import type { Area } from "../src/types.ts";

export default {
  name: "protocol",
  description: "Filecoin protocol design, governance, network upgrades, and built-in actors.",
  collections: ["builtin-actors", "fips", "fips-github-discussions"],
} satisfies Area;

Areas only select QMD collections. They do not copy or materialize files.

Publish the index

publish checks for a GitHub token and a clean commit that exists on GitHub. It then syncs every collection, generates the QMD configuration, updates and embeds the index, validates SQLite, compresses the database, and creates a GitHub release.

GH_TOKEN="$(gh auth token)" npm run filoscope -- publish

The scheduled GitHub workflow uses the same command. A separate workflow keeps the seven newest index releases.

Develop

Run all static checks and fixture tests before packing the package:

npm run check
npm test
npm pack

npm test includes a packed package test. It installs the tarball in a temporary project and runs the compiled filoscope bin without a TypeScript loader.

License

MIT