Lightweight, zero-dependency DeFi math utilities — basis points, fees, slippage, AMM math, token amounts, and yield calculations.
Estimate points on a bezier curve or a set of connexted bezier curves
Estimate points on a SVG path
Convert a series of points to a monotone cubic spline
Draw perfect pressure-sensitive freehand strokes.
Fast robust predicates for computational geometry
Prebuilt sharp for use with Linux (glibc) x64
Prebuilt sharp for use with Linux (musl) x64
Operations for two-dimensional polygons.
Fill a polygon with lines
> [!CAUTION] > This SDK has been deprecated for use in Node.js environments. It is still supported for use in web elements and reactor environments. > > Our new Node.js SDK can be found at https://github.com/Basis-Theory/node-sdk > > See our documentation
TypeScript definitions for d3-polygon
Takes a set of points and creates a Triangulated Irregular Network.
No description provided.
Fast 2D concave hull algorithm in JavaScript (generates an outline of a point set)
A very fast static 2D index for points based on kd-tree.
Underlying schema language parsed from arktype syntax.
Basic circuits library for Circom
Finds points that fall within polygon(s).
A mesh replacement for `THREE.Line`. Instead of using GL_LINE, it uses a strip of billboarded triangles. This is a fork of [spite/THREE.MeshLine](https://github.com/spite/THREE.MeshLine), previously maintained by studio [Utsuboco](https://github.com/utsub
[](https://www.npmjs.org/package/@basis-theory/react-elements) [](https://www.npmjs.org/package/@basis-the
Takes a set of points and partition them into clusters according to DBSCAN's data clustering algorithm.
A very fast geospatial point clustering library.
Creates an interpolated grid of points using the Inverse Distance Weighting method.
Validated basis-points type with optional Decimal and Anchor support.
Dust-safe proportional distribution and fee extraction for Hopper. Largest-remainder splitting, basis-point + flat fees.
The zero-copy standard library for Solana programs built on Hopper Runtime. Account layout, validation, PDA, Token/Mint readers, Token-2022 screening, CPI guards, DeFi math, AMM, slippage, lending, staking, vesting, multisig, distribution, Merkle, Ed25519, Pyth oracle. Declarative macros for error codes, instruction dispatch, and account checks. no_std, no_alloc, no proc macros, BPF-safe.
Validator slashing, attestation participation, inactivity accounting, and fraud-proof appeals for the DIG Network L2 blockchain.
Greentic deployment object-model schemas (Environment, Revision, TrafficSplit, BundleDeployment, Credentials, PackConfig, RuntimeConfig)
Lending protocol primitives for Hopper: collateralization ratios, health checks, liquidation math, interest calculations. Zero-copy, no_std, no_alloc, BPF-safe.
Dust-safe proportional distribution helpers for Jiminy: N-way splits and fee extraction. Zero-copy, no_std, no_alloc, BPF-safe.
Lending protocol primitives for Jiminy: collateralization ratios, health checks, liquidation math, interest calculations. Zero-copy, no_std, no_alloc, BPF-safe.
Basis is a project skeleton generator. It'll have more docs at some point. 1.x releases of Basis are primarily experiments in anticipation of a 2.0.
Because most percentages only need to be accurate to two decimals, this gem has you store them as basis points and does the conversion for you.
Contentful API wrapper library exposing an ActiveRecord-like interface