# msteinbeck/tinyspline

ANSI C library for NURBS, B-Splines, and Bézier curves with interfaces for C++, C#, D, Go, Java, Javascript, Lua, Octave, PHP, Python, R, and Ruby.

Repository: https://github.com/msteinbeck/tinyspline
Canonical: https://ross.abutalabs.com/products/tinyspline
Language: C
License: MIT
License Family: permissive
Topics: nurbs, b-splines, bezier-curves, splines
Last push: 2024-09-03T22:18:21+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4360, "days_push": 729, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1350, forks 219 (observed 2026-08-28T04:04:28.095896+00:00)

## What it is
TinySpline is a small ANSI C library for interpolating, transforming, and querying NURBS, B-Splines, and Bézier curves, with a C++ object-oriented wrapper. Auto-generated bindings are provided for many languages including C#, Go, Java, JavaScript, Lua, PHP, Python, R, and Ruby.

## Use cases
- interpolate a smooth curve through a set of 2D or 3D points
- sample points along a B-spline for drawing or plotting
- convert NURBS or B-splines into Bézier curve segments
- compute arc-length parametrization of a curve
- extract sub-curves and compute derivatives of splines
- morph between two splines for animation
- work with splines from Python, Java, Go, or other languages

## When to choose
- you need spline math in C or C++ with minimal dependencies
- you want one spline library usable across many programming languages
- you need NURBS, B-spline, and Bézier operations like knot insertion, degree elevation, and decomposition
- you need a permissively licensed (MIT) geometry library

## When to avoid
- you need 3D mesh processing or full CAD kernel functionality
- you need GPU-accelerated curve rendering
- you want a high-level plotting or animation framework rather than a math library

## Facets
- artifact type: library
- maturity: stable
- function: math, graphics, serialization
- domain: graphics, cross-platform, developer-tools
- platform: cross-platform, c, cpp, python, go, jvm, lua, php, ruby, dotnet, rust
- tags: nurbs, b-splines, bezier-curves, splines, interpolation, geometry, curve-fitting, ansi-c, algorithms, javascript

## Member repositories
- msteinbeck/tinyspline (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:28.095896+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:42:17.827889+00:00, confidence not recorded.
  - readme: https://github.com/msteinbeck/tinyspline (fetched 2026-08-28T04:04:28.095896+00:00, sha b9ecd8b86d01)
- Data as of 2026-08-30T08:39:29.467469+00:00.
