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.0
py rs ts
36 tests
Apache-2.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.0
py rs ts
54 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.1
py rs ts
31 tests
Apache-2.0 AND OGL-UK-3.0
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 Rust
1.0.0
py rs ts
19 tests
Apache-2.0
auth.email-token
Hashed single-use tokens for email verification, password reset and magic links, with expiry, as pure steps.
A group of 4: generate_email_token, hash_email_token, check_email_token, consume_email_token
1.0.0
py rs ts
43 tests
Apache-2.0
finance.tax.vat-rate Unreviewed
Look up the VAT rate in force for a jurisdiction, category and date.
vat_rate in Rust
1.2.2
py rs ts
25 tests
Apache-2.0 AND OGL-UK-3.0
form.address
Check a UK or international postal address form: required lines, lengths, country and postcode.
A group of 2: validate_address, address_format
1.0.0
py rs ts
37 tests
Apache-2.0
validation.uk-postcode
Validate a UK postcode and normalise it to canonical upper case with one space before the inward code.
validate_uk_postcode in Rust
2.0.0
py rs ts
26 tests
Apache-2.0
finance.tax.add-vat Unreviewed
Add VAT to a net amount using the rate in force on the date of supply.
add_vat in Rust
1.0.1
py rs ts
9 tests
Apache-2.0
auth.account-link
Decide whether an OAuth sign-in signs in, links to an existing account by verified email, creates one, or is refused.
decide_account_link in Rust
1.0.0
py rs ts
16 tests
Apache-2.0
finance.tax.remove-vat Unreviewed
Extract the VAT already included in a gross amount, using the rate in force on the date of supply.
remove_vat in Rust
1.0.2
py rs ts
20 tests
Apache-2.0
form.money-input
Read a typed amount as minor units for its currency and locale, check min/max, and format it back.
A group of 3: parse_money_input, format_money_input, money_input_format
1.0.0
py rs ts
61 tests
Apache-2.0
auth.access-token
Issue an API's HS256 access token, read one from an Authorization header, and refuse revoked or superseded ones.
A group of 3: issue_access_token, read_access_token, confirm_access_token
1.0.0
py rs ts
33 tests
Apache-2.0
retail.promotion-apply
Apply BOGOF, 3-for-2, percent off, amount off and multibuy deals to a basket, best for the customer, allocated to lines.
apply_promotions in Rust
1.0.0
py rs ts
23 tests
Apache-2.0
retail.shipping-rate
Delivery charge from a dated rate table by service, zone, chargeable weight and size, with a free-over threshold.
shipping_rate in Rust
1.0.1
py rs ts
20 tests
Apache-2.0
auth.recovery-codes
Two-factor recovery codes: generate from caller entropy, hash for storage, and verify-and-consume as a pure step.
A group of 4: generate_recovery_codes, normalise_recovery_code, hash_recovery_code, consume_recovery_code
1.0.0
py rs ts
39 tests
Apache-2.0
auth.totp
Authenticator-app two-factor codes (TOTP RFC 6238, HOTP RFC 4226): secret, QR URI, codes, verify with window and drift.
A group of 5: totp_secret, totp_uri, hotp_code, totp_code, verify_totp
1.0.0
py rs ts
80 tests
Apache-2.0
1.0.0
py rs ts
9 tests
Apache-2.0
validation.uk-vat-number
Check a UK VAT registration number against HMRC's mod-97 checksum, including the post-2010 9755 variant.
is_uk_vat_number in Rust
1.0.0
py rs ts
22 tests
Apache-2.0
fleet.drivers-hours Unreviewed
Check a driver's activities against GB/EU drivers' hours: breaks after 4.5h, daily, weekly and fortnightly driving.
check_drivers_hours in Rust
1.0.2
py rs ts
26 tests
Apache-2.0 AND OGL-UK-3.0
construction.cis-deduction
Construction Industry Scheme deduction (0, 20 or 30%) on the labour part of a subcontractor payment.
cis_deduction in Rust
1.0.2
py rs ts
24 tests
Apache-2.0 AND OGL-UK-3.0
legal.court-fee Unreviewed
The court fee to issue a money claim in England and Wales, from the claim value bands in force on a date.
court_fee in Rust
1.0.2
py rs ts
27 tests
Apache-2.0 AND OGL-UK-3.0
health.appointment-slots Unreviewed
Bookable appointment slots from clinic sessions, a slot length, breaks and existing bookings.
appointment_slots in Rust
1.0.1
py rs ts
20 tests
Apache-2.0
todo.group-by-due
Split todos into Overdue, Today, Tomorrow, This week, Later, No date and Done sections, in that order.
A group of 2: group_by_due, group_by_due_with_order
1.1.0
py rs ts
26 tests
Apache-2.0
construction.payment-notice-dates
Construction Act default dates: payment due, payment notice, final date for payment and pay-less notice.
payment_notice_dates in Rust
1.0.2
py rs ts
21 tests
Apache-2.0 AND OGL-UK-3.0
energy.climate-change-levy
Climate Change Levy on a business supply of electricity, gas, LPG or solid fuel, at the main rate in force on the date.
climate_change_levy in Rust
1.0.2
py rs ts
20 tests
Apache-2.0 AND OGL-UK-3.0
construction.vat-reverse-charge
Whether the UK VAT domestic reverse charge applies to a construction supply, and the invoice wording.
domestic_reverse_charge in Rust
1.0.2
py rs ts
24 tests
Apache-2.0 AND OGL-UK-3.0
monitor.burn-rate-alert
Multiwindow, multi-burn-rate SLO alerting: which rules fire, from event counts per window (Google SRE workbook).
burn_rate_alert in Rust
2.0.0
py rs ts
30 tests
Apache-2.0
charity.gift-aid
Gift Aid a UK charity can claim on a donation: basic rate tax grossed up, 25p per £1 at 20%.
gift_aid in Rust
1.0.2
py rs ts
15 tests
Apache-2.0 AND OGL-UK-3.0
payroll.pension-auto-enrolment Unreviewed
Workplace pension contributions for one pay period: qualifying earnings band, employee and employer shares, tax relief.
pension_contributions in Rust
1.0.2
py rs ts
22 tests
Apache-2.0 AND OGL-UK-3.0
invest.bond-yield Unreviewed
Current yield and yield to maturity of a fixed-coupon bond from its clean price, as Excel's YIELD defines it.
bond_yield in Rust
1.0.2
py rs ts
27 tests
Apache-2.0
payroll.national-insurance Unreviewed
Employee and employer Class 1 National Insurance for one payment by category letter, exact percentage method.
national_insurance in Rust
1.0.2
py rs ts
29 tests
Apache-2.0 AND OGL-UK-3.0
property.stamp-duty Unreviewed
Stamp duty on a property purchase: SDLT (England, NI), LBTT (Scotland), LTT (Wales), with reliefs and surcharges.
stamp_duty in Rust
1.0.2
py rs ts
51 tests
Apache-2.0 AND OGL-UK-3.0
fleet.tachograph-rest Unreviewed
Check daily and weekly rest against GB/EU drivers' hours: 11h daily (9h reduced, 3+9 split), 45h weekly (24h reduced).
check_tachograph_rest in Rust
1.0.2
py rs ts
22 tests
Apache-2.0 AND OGL-UK-3.0
insurance.ipt Unreviewed
UK Insurance Premium Tax at the standard or higher rate in force on a date, added to or taken out of a premium.
insurance_premium_tax in Rust
1.0.2
py rs ts
23 tests
Apache-2.0 AND OGL-UK-3.0
payroll.income-tax Unreviewed
PAYE income tax for one pay period from a tax code, cumulative or week 1/month 1, by HMRC's tax table routines.
income_tax in Rust
1.0.2
py rs ts
30 tests
Apache-2.0 AND OGL-UK-3.0
lending.apr Unreviewed
Consumer-credit APR from drawdowns and repayments, by the FCA CONC App 1.2.6 equation, to one decimal place.
apr in Rust
1.0.1
py rs ts
22 tests
Apache-2.0
fleet.mileage-allowance
HMRC approved mileage allowance payments for an employee's own vehicle: tax-free amount, taxable excess or relief.
mileage_allowance in Rust
1.0.2
py rs ts
23 tests
Apache-2.0 AND OGL-UK-3.0
charts.layout
Chart layout: the plot area inside margins, legend items wrapped into rows, and greedy label collision avoidance.
A group of 3: plot_area, legend_rows, avoid_collisions
1.0.1
py rs ts
33 tests
Apache-2.0
payroll.student-loan Unreviewed
Student loan or postgraduate loan deduction from one period's pay, by plan, rounded down to whole pounds.
student_loan in Rust
1.0.2
py rs ts
24 tests
Apache-2.0 AND OGL-UK-3.0
hospitality.allergen-matrix Unreviewed
Which of the 14 UK major allergens a dish contains or may contain, from its ingredients' declared allergens.
allergen_matrix in Rust
1.0.1
py rs ts
16 tests
Apache-2.0 AND OGL-UK-3.0
todo.import-csv
Read todos from a CSV file (RFC 4180) as todo.export-csv writes it, checking every row, with row-numbered errors.
A group of 2: import_csv, validate_todo_csv
1.1.0
py rs ts
59 tests
Apache-2.0
todo.list
The to-do list reducer: add, edit, complete, remove, clear and reorder todos, each returning a new list.
A group of 8: add_todo, update_todo, toggle_todo, remove_todo, clear_completed, toggle_all, move_todo, toggle_all_mode
1.1.0
py rs ts
102 tests
Apache-2.0
charity.gasds
Gift Aid Small Donations Scheme top-up for a tax year: the £8,000 limit, the matching rule and community buildings.
gasds in Rust
1.0.2
py rs ts
21 tests
Apache-2.0 AND OGL-UK-3.0
charts.axis
Axis geometry as data: tick positions, tick marks, label anchors and gridlines for number, time and category axes.
A group of 5: axis_from_ticks, number_axis, time_axis, band_axis, grid_lines
1.0.1
py rs ts
49 tests
Apache-2.0
fleet.company-car-bik Unreviewed
UK company car benefit in kind: appropriate percentage by CO2 and electric range, car and fuel benefit for a tax year.
company_car_bik in Rust
1.0.2
py rs ts
37 tests
Apache-2.0 AND OGL-UK-3.0
payroll.overtime Unreviewed
Pay for the time worked in a period split into multiplier bands: basic, time and a half after 40 hours, double time.
overtime_pay in Rust
1.0.1
py rs ts
11 tests
Apache-2.0
telecoms.roaming-charge
Roaming charges for a trip abroad from a dated tariff table of zones: daily fees, data, calls and texts.
roaming_charge in Rust
1.0.1
py rs ts
16 tests
Apache-2.0
property.service-charge-apportion Unreviewed
Apportion a service charge across units by lease fraction, floor area or fixed percentage, exact to the penny.
apportion_service_charge in Rust
1.0.1
py rs ts
19 tests
Apache-2.0
invest.rebalance Unreviewed
Whole-unit buy and sell trades that bring a portfolio back to target weights, skipping trades below a minimum size.
rebalance in Rust
1.0.1
py rs ts
22 tests
Apache-2.0
insurance.sum-insured-average Unreviewed
Average clause settlement for underinsurance: the loss times sum insured over value at risk, capped at the loss.
average_clause_settlement in Rust
1.0.1
py rs ts
22 tests
Apache-2.0
charts.shape
SVG path strings for lines, areas, steps, monotone curves, bars, arcs and pie slices, identical in every language.
A group of 7: line_path, area_path, step_path, monotone_curve, bar_rects, arc_path, pie_angles
1.0.1
py rs ts
70 tests
Apache-2.0
legal.retainer-drawdown Unreviewed
Apply money held on account in client account to bills in order: what each bill takes, what stays due, what is left.
retainer_drawdown in Rust
1.0.1
py rs ts
11 tests
Apache-2.0
lending.affordability Unreviewed
Debt-to-income and a stressed-rate affordability test for a proposed loan's monthly repayment.
affordability in Rust
1.0.1
py rs ts
13 tests
Apache-2.0
energy.price-cap
Ofgem energy price cap unit rate and daily standing charge for a fuel and payment method on a date (GB average).
price_cap in Rust
1.0.2
py rs ts
19 tests
Apache-2.0 AND OGL-UK-3.0
telecoms.call-rating
Rate a call from a rate deck: longest-prefix destination match, billing increments, connection fee and minimum charge.
rate_call in Rust
1.0.1
py rs ts
22 tests
Apache-2.0
property.rent-review Unreviewed
New rent after an index-linked (CPI/RPI) rent review, with an optional collar and cap and upward-only option.
rent_review in Rust
1.0.1
py rs ts
19 tests
Apache-2.0
insurance.rating-factors Unreviewed
Premium from a base rate times factor-table lookups, loadings and discounts, within minimum and maximum premiums.
rate_premium in Rust
1.0.1
py rs ts
24 tests
Apache-2.0
logistics.duty-estimate Unreviewed
Estimate import duty and import VAT on goods: customs value on a CIF basis, the caller's duty rate, VAT on top.
duty_estimate in Rust
1.0.1
py rs ts
17 tests
Apache-2.0
hospitality.recipe-cost
Cost a recipe and each portion from ingredient quantities, pack sizes and pack prices, allowing for trim and waste.
recipe_cost in Rust
1.0.1
py rs ts
25 tests
Apache-2.0
legal.court-deadline Unreviewed
A deadline in days under CPR 2.8: clear days, short periods skip weekends and bank holidays, court-closed days.
court_deadline in Rust
1.0.1
py rs ts
23 tests
Apache-2.0
health.news2 Unreviewed
NEWS2 early warning score from one set of observations: parameter scores, aggregate and RCP clinical risk band.
news2_score in Rust
1.0.1
py rs ts
45 tests
Apache-2.0
invest.time-weighted-return Unreviewed
Time-weighted return from valuations taken at each external cash flow, geometrically linked exactly.
time_weighted_return in Rust
1.0.1
py rs ts
22 tests
Apache-2.0
lending.early-settlement Unreviewed
Early settlement figure and rebate on UK regulated consumer credit, per the Early Settlement Regulations 2004.
early_settlement in Rust
1.0.1
py rs ts
18 tests
Apache-2.0
property.mortgage-affordability Unreviewed
Mortgage affordability: the loan-to-income multiple and a stress-tested repayment against income, both checked.
mortgage_affordability in Rust
1.0.1
py rs ts
13 tests
Apache-2.0
energy.tariff-time-of-use
Cost half-hourly consumption against time-of-use rates: Economy 7 windows or Agile-style half-hourly prices.
time_of_use_cost in Rust
1.0.1
py rs ts
24 tests
Apache-2.0
legal.statutory-interest Unreviewed
Statutory interest on a judgment debt (8% simple, daily) or a late commercial debt, England and Wales.
statutory_interest in Rust
1.0.1
py rs ts
19 tests
Apache-2.0 AND OGL-UK-3.0
legal.time-billing Unreviewed
Fees from time entries: each rounded to 6-minute (or other) units and priced at the fee earner's hourly rate.
time_billing in Rust
1.0.1
py rs ts
15 tests
Apache-2.0
legal.limitation-date Unreviewed
The last day to bring a claim under the Limitation Act 1980, by claim type, from the date it accrued.
limitation_date in Rust
1.0.1
py rs ts
26 tests
Apache-2.0 AND OGL-UK-3.0
retail.oss-vat
EU distance-selling VAT: which member state's standard rate applies under OSS and the EUR 10,000 threshold, and the VAT.
oss_vat in Rust
1.0.1
py rs ts
28 tests
Apache-2.0
todo.parse-quick-add
Turn one typed line like "Pay rent tomorrow !high #home every month" into a todo draft.
parse_quick_add in Rust
1.0.0
py rs ts
44 tests
Apache-2.0
invest.fee-drag Unreviewed
What an annual charge costs an investment over the years: value with and without the fee, year by year, in minor units.
fee_drag in Rust
1.0.1
py rs ts
20 tests
Apache-2.0
lending.loan-payment Unreviewed
Level repayment for a loan (annuity formula), computed exactly and rounded once, the way you choose.
loan_payment in Rust
1.0.1
py rs ts
23 tests
Apache-2.0
payroll.tax-period Unreviewed
The UK PAYE tax week, tax month and payroll period number that a pay date falls in, weeks 53, 54 and 56 included.
tax_period in Rust
1.0.1
py rs ts
16 tests
Apache-2.0 AND OGL-UK-3.0
health.qrisk-inputs-validate Unreviewed
Check a QRISK3 cardiovascular risk input set against the calculator's published ranges; does not compute risk.
validate_qrisk_inputs in Rust
1.0.1
py rs ts
29 tests
Apache-2.0
insurance.instalment-plan Unreviewed
Pay a premium by monthly instalments: deposit, flat credit charge, instalments exact to the penny, and the APR.
instalment_plan in Rust
1.0.1
py rs ts
15 tests
Apache-2.0
payroll.minimum-wage-check Unreviewed
Check pay for a pay reference period against the minimum or living wage for age and apprenticeship.
minimum_wage_check in Rust
1.0.1
py rs ts
19 tests
Apache-2.0 AND OGL-UK-3.0
insurance.premium-proration Unreviewed
Return premium on mid-term cancellation, pro rata or on a short-period scale, with an optional minimum retained premium.
cancellation_return_premium in Rust
1.0.1
py rs ts
26 tests
Apache-2.0
legal.disbursements-vat Unreviewed
Whether a cost passed to a client is a VAT disbursement (outside scope) or a recharge (VAT due), per HMRC Notice 700.
disbursement_vat in Rust
1.0.1
py rs ts
14 tests
Apache-2.0
payroll.redundancy-pay Unreviewed
Statutory redundancy pay from age, completed years of service (at most 20) and a week's pay capped by date.
statutory_redundancy_pay in Rust
1.0.1
py rs ts
13 tests
Apache-2.0 AND OGL-UK-3.0
1.0.0
py rs ts
22 tests
Apache-2.0
lending.daily-interest Unreviewed
Interest accrued day by day on a changing balance under a day-count convention, summed exactly and rounded once.
daily_interest in Rust
1.0.1
py rs ts
21 tests
Apache-2.0