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.
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: hash_password, verify_password, password_needs_rehash
1.0.0py rs ts36 tests Apache-2.0
form.validate-input
Check a text, email or number input: required, length, pattern and min/max, with GOV.UK messages.
validate_input in Python
1.0.0py rs ts49 tests Apache-2.0
validation.email
Is this a plausible email address? A documented, pragmatic subset of RFC 5322, not the full grammar.
is_email in Python
1.0.0py rs ts28 tests Apache-2.0
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: password_policy, check_password
1.0.1py rs ts31 tests Apache-2.0 AND OGL-UK-3.0
auth.rbac
Roles with inheritance, permission checks with wildcards and ownership, and a generated per-role access-test matrix.
A group of 4: resolve_roles, has_permission, check_access, access_matrix
1.0.0py rs ts54 tests Apache-2.0
email.send Integration · does I/O TypeScript only
Send a transactional email through Resend, any SMTP server or the log, behind one call.
Not available in Python
1.0.0ts 17 tests MIT
auth.login-throttle
Allow a login attempt or lock the account out, from its recent failed attempts, with the seconds until it may retry.
login_throttle in Python
1.0.0py rs ts19 tests Apache-2.0
react.form.validated-input React ^19 · TypeScript only
A text, email or number input that checks itself with form.validate-input and shows the error accessibly.
Not available in Python
1.0.0ts 14 tests Apache-2.0
Browse everything
Building a whole app?
Suites are the plan for a kind of app - accounting, payroll, an online shop, a clinic - with the capabilities it needs in build order and the gaps you will still write.
Use one in a project
import { addVat } from "#fune/finance.tax.add-vat@^1";
fune build
Name it in one line where you use it. fune build resolves the dependency graph, writes a lockfile with integrity hashes, and builds readable source in your project's own language into .fune/build. fune add finance.tax.add-vat pins a range the same way.
Publish your own
fune login
fune publish ./registry/my.capability/1.0.0
You publish under a namespace your organisation owns. How publishing works .