# fortran-lang/stdlib

Fortran Standard Library

Repository: https://github.com/fortran-lang/stdlib
Canonical: https://ross.abutalabs.com/products/fortran-lang-stdlib
Homepage: https://stdlib.fortran-lang.org
Language: Fortran
License: MIT
License Family: permissive
Topics: fortran, stdlib, fortran-stdlib, fortran-library, strings, hash, numpy, quadrature, rng, sorting, statistics, probability-distribution, fortran-package-manager, numerical-methods, blas, lapack, linear-algebra
Last push: 2026-07-18T17:58:12+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 93, release rhythm 68, longevity 100
- inputs: {"age_days": 2454, "days_push": 46, "days_rel": 219, "gap_med": 3, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1344, forks 226 (observed 2026-08-28T04:04:27.163257+00:00)

## What it is
A community-driven de facto standard library for Fortran, providing utilities, algorithms, and mathematical routines missing from the ISO Fortran standard. It serves as both a specification and reference implementation, developed in cooperation with the Fortran Standards Committee.

## Use cases
- add linear algebra and sparse matrix routines to a Fortran project
- get string manipulation and containers in Fortran without writing them myself
- run unit tests and assertions in Fortran code
- generate random numbers and compute statistics in Fortran
- perform numerical integration and FFT in Fortran
- sort and search arrays in Fortran
- build a Fortran project with fpm or CMake using a standard library

## When to choose
- you write modern Fortran (2008+) and want well-vetted common utilities and math routines
- you want a NumPy-like set of numerical tools in pure Fortran
- you want a library aligned with the Fortran standards committee's direction

## When to avoid
- you need a mature, feature-complete standard library today - parts are still work in progress
- your compiler only supports pre-2008 Fortran
- you need domain-specific libraries beyond the current scope (e.g., plotting, networking)

## Facets
- artifact type: library
- maturity: active
- function: math, parser, testing, logging, serialization, concurrency
- domain: programming-languages, mathematics, developer-tools
- platform: windows, cross-platform, cli
- tags: fortran, standard-library, linear-algebra, statistics, numerical-methods, sorting, random-numbers, containers, strings, fpm, algorithms, scientific-computing, linux, macos

## Member repositories
- fortran-lang/stdlib (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:27.163257+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:50.022037+00:00, confidence not recorded.
  - readme: https://github.com/fortran-lang/stdlib (fetched 2026-08-28T04:04:27.163257+00:00, sha 7e6c10a70094)
  - homepage: https://stdlib.fortran-lang.org (fetched 2026-08-29T12:02:05.780974+00:00, sha d5bfa53736fc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
