
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
faf-scoring-kernel
Advanced tools
FAF Mk4 Scoring Kernel — WASM-compiled Rust engine for scoring .faf files and compiling .fafb binaries. The Foundry.
FAF Mk4 Scoring Kernel — WASM-compiled Rust engine for scoring .faf files and compiling .fafb binaries.
The Foundry. 281KB. 136 tests. In Rust We Trust.
npm install faf-scoring-kernel
Works in Node.js and Bun.
const kernel = require('faf-scoring-kernel');
// Score a .faf file
const result = JSON.parse(kernel.score_faf(`
project:
name: my-project
goal: Ship fast
main_language: TypeScript
`));
console.log(result.score); // 14
console.log(result.tier); // 🔴
console.log(result.populated, '/', result.active); // 3 / 21
8 pure-function exports. No classes. No state.
| Function | Input | Output | Description |
|---|---|---|---|
sdk_version() | — | string | Engine version |
score_faf(yaml) | YAML string | JSON string | Mk4 base scoring (21 slots) |
score_faf_enterprise(yaml) | YAML string | JSON string | Mk4 enterprise scoring (33 slots) |
validate_faf(yaml) | YAML string | boolean | Check if valid YAML mapping |
compile_fafb(yaml) | YAML string | Uint8Array | Compile .faf to .fafb binary |
decompile_fafb(bytes) | Uint8Array | JSON string | Decompile .fafb to JSON |
score_fafb(bytes) | Uint8Array | JSON string | Read score from .fafb binary |
fafb_info(bytes) | Uint8Array | JSON string | Header/section metadata |
| Score | Tier | Status |
|---|---|---|
| 100% | 🏆 Trophy | Optimized |
| 99% | 🥇 Gold | Exceptional |
| 95-98% | 🥈 Silver | Top tier |
| 85-94% | 🥉 Bronze | Production ready |
| 70-84% | 🟢 Green | Solid foundation |
| 55-69% | 🟡 Yellow | Needs improvement |
| <55% | 🔴 Red | Major work needed |
| 0% | 🤍 White | Empty |
const kernel = require('faf-scoring-kernel');
// Compile YAML to FAFb binary
const yaml = 'faf_version: "1.0"\nproject_name: my-project';
const bytes = kernel.compile_fafb(yaml);
// bytes[0..4] === "FAFB" (magic bytes)
// Decompile back
const json = kernel.decompile_fafb(bytes);
// Read score from binary
const score = kernel.score_fafb(bytes);
This is the universal FAF scoring and compilation engine, compiled from Rust to WebAssembly. It implements:
One binary. Same scores everywhere. The code is the spec.
MIT
FAQs
FAF Mk4 Scoring Kernel — WASM-compiled Rust engine for scoring .faf files and compiling .fafb binaries. The Foundry.
The npm package faf-scoring-kernel receives a total of 589 weekly downloads. As such, faf-scoring-kernel popularity was classified as not popular.
We found that faf-scoring-kernel demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.