Functional Weave
Code in TypeScript

Functions you do not have to write again.

Functional Weave is a registry of capabilities. A capability is one function, implemented in TypeScript, Python and Rust, pinned by one set of test vectors that all three must pass. Install it into your project as readable source, not a black box.

finance.tax.add-vat 9 tests, 3 languages, one answer
20 percent on 100 pounds £100.00, GB, STANDARD, 2026-09-16 → net £100.00, tax £20.00, gross £120.00, rate 20%
rounds a fractional penny up £1.99, GB, STANDARD, 2026-09-16 → net £1.99, tax £0.40, gross £2.39, rate 20%
zero rated goods are taxable at nothing £100.00, GB, ZERO, 2026-09-16 → net £100.00, tax £0.00, gross £100.00, rate 0%
ts typescript py python rs rust
467 capabilities
682 published versions
14,430 tests
10 organisations
95,199 installs

Recently published

auth.password-hash
Hash a password for storage as pbkdf2_sha256$iterations$salt$hash, verify one in constant time, and spot weak hashes.
A group of 3: hashPassword, verifyPassword, passwordNeedsRehash
auth.password-policy
Check a new password against a named policy (NIST SP 800-63B-4 by default): length, common passwords, name and email.
A group of 2: passwordPolicy, checkPassword
auth.rbac
Roles with inheritance, permission checks with wildcards and ownership, and a generated per-role access-test matrix.
A group of 4: resolveRoles, hasPermission, checkAccess, accessMatrix
email.send Integration · does I/O TypeScript only
Send a transactional email through Resend, any SMTP server or the log, behind one call.
sendEmail in TypeScript

Browse everything