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

faf-wasm-sdk

v1.2.1

Published

FAF WASM SDK - AI context format for browsers and edge compute

Readme

FAF WASM SDK

AI Context Format for Browsers and Edge Compute. Sub-10ms context loads globally.

Features

  • YAML parsing via serde_yaml (WASM-proven)
  • Glass Hood AI-readiness scoring
  • 8-tier rating system (🤍 to 🏆)
  • Cloudflare Workers / Vercel Edge ready
  • <2ms parse + score performance

Installation

npm install @faf/wasm-sdk

Usage

Browser / Node.js

import { initialize, createFAF, scoreFAF } from '@faf/wasm-sdk';

await initialize();

const faf = createFAF(`
project:
  name: my-project
  stack: typescript
`);

console.log(faf.weighted_score);  // 45.0
console.log(faf.tier);            // 🟢

Cloudflare Workers

import init, { FAF } from '@faf/wasm-sdk';

export default {
  async fetch(request) {
    await init();
    const faf = new FAF(yamlContent);
    return Response.json({ score: faf.weighted_score });
  }
};

API

FAF Class

  • new FAF(yamlContent) - Parse and score FAF content
  • name - Project name
  • stack - Technology stack
  • weighted_score - Weighted AI-readiness (0-100)
  • truth_score - Unweighted average (0-100)
  • tier - Tier emoji (🤍🔴🟡🟢🥉🥈🥇🏆)
  • completeness - Core DNA score (40% weight)
  • clarity - Instructions score (35% weight)
  • structure - Context score (15% weight)
  • metadata - Metadata score (10% weight)

Hot Path Functions

For maximum edge performance:

import { score_weights_fast, WEIGHTS_F32 } from '@faf/wasm-sdk';

const values = new Float32Array([80, 70, 60, 50]);
const score = score_weights_fast(WEIGHTS_F32, values);

Build

# Install wasm-pack
cargo install wasm-pack

# Build WASM
wasm-pack build --target web --release

# Run tests
wasm-pack test --headless --chrome

Deploy to Cloudflare

npm install -g wrangler
wrangler deploy

Scoring Algorithm

Glass Hood - Full transparency scoring:

| Category | Weight | Description | |----------|--------|-------------| | Completeness | 40% | Core project DNA fields | | Clarity | 35% | AI instructions quality | | Structure | 15% | Context organization | | Metadata | 10% | Versioning and tags |

Tier System

| Score | Tier | Emoji | |-------|------|-------| | 0-12 | White | 🤍 | | 13-25 | Red | 🔴 | | 26-38 | Yellow | 🟡 | | 39-51 | Green | 🟢 | | 52-64 | Bronze | 🥉 | | 65-77 | Silver | 🥈 | | 78-90 | Gold | 🥇 | | 91-100 | Championship | 🏆 |

License

MIT

Links