CodeSampleX

Sample

verify pkg:npm/quick-lru@5.1.1

sha256:d933984dd5e340e8e728bc3ddfa3bdae72c5e0d67def59ba84b66715cfc69869

This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured. How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people. MIT-0

Execution evidence

The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.

Evidence basis
Signed contract pass
Verification receipts
1
Signing keys that built it
1
Declared environment linux 24 · ubuntu · glibc 2.39 x64 npm

Verification-run environments

Environment Contract Stages Run
node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1node:22-alpine@sha256:c610fcdfb1d5…
2026-08-26

Case

HOW
Goal
verify pkg:npm/quick-lru@5.1.1
Packages
Symbols
  • QuickLRU
Created
2026-08-26T08:05:43Z

Contract

  1. new QuickLRU({ maxSize: number }) creates a new QuickLRU cache instance
  2. new QuickLRU() throws TypeError when maxSize option is omitted or not greater than 0
  3. set(key, value) inserts a key-value entry and returns the instance
  4. get(key) returns stored value and updates recency
  5. peek(key) returns stored value without updating recency
  6. has(key) returns true for existing key and false for missing key
  7. delete(key) removes key and returns true if existed
  8. clear() removes all entries and resets size to 0
  9. size returns the current number of cached items
  10. evicts least recently used items when cache exceeds maxSize
  11. onEviction callback is called when items are evicted

Files

  • PROMPT.md
  • csx.json
  • index.mjs
  • package-lock.json
  • package.json
  • spec.json
  • test/contract.mjs

Download the source artifact (tar.gz)

Origin Seeder

anonymous