Codex
lifescientific.dev/samples
S · P · Q · R CODEX · MMXXVI

~ CODEX · LIFESCIENTIFIC · DEV ~

Codex— a manifest of works, with code & cause

Six small instruments for life-science teams, freely given. Read the inscription, copy the import, ship the work.

Initium · Install

copy · paste · ship
install.sh usage.tsx codex.json
# pick whichever fits the lab — all MIT, all typed, no telemetry
$ npm install @lifescientific/sequentia     # I.   sequence viewer
$ npm install @lifescientific/volvere       # II.  molecular rotator
$ npm install @lifescientific/ordinare      # III. tabular sorter
$ npm install @lifescientific/specula       # IV.  microscopy slider
$ pip  install lifescientific-legere          # V.   csv parser
$ npm install @lifescientific/mitosis       # VI.  mitosis loop

Index Operum · Six works

last sown · 2 days ago
Plaque · I

SequentiaDNA Sequence Viewer

An annotated reader for genomic strings. Long reads, custom palettes, cross-strand comparison.

Mature react · ts · canvas ★ 2.1k v3.4.1
// I. Sequentia — annotated genomic visualisation
import SequenceViewer from '@lifescientific/sequentia';

export function Lab() 
  return (
    <SequenceViewer
      fasta={data}
      strands="both"
      palette="taylor"
    />
  );
Plaque · II

VolvereMolecular Rotator

Three-dimensional ball-and-stick rotation. GPU-bound, zero dependencies, polite to touch.

Growing webgl · no-deps ★ 0.8k v0.9.3
// II. Volvere — 3D ball-and-stick rotation
import rotate from '@lifescientific/volvere';

const handle = rotate(canvas, 
  model:   caffeine,
  style:   'ball-and-stick',
  touch:   true,
);
handle.spin(0.5);  // rad/s
Plaque · III

OrdinareData Sorter, Pro

A typed, fastidious sorter for tabular biology. Knows a date from a count from an identifier.

Mature typescript · 10kb ★ 4.4k v2.0.0
// III. Ordinare — typed tabular sort
import sort from '@lifescientific/ordinare';

const rows = sort(samples, 
  by:   'collected_at',
  type: 'datetime',
  dir:  'desc',
);
Plaque · IV

SpecvlaMicroscopy Slider

A side-by-side comparator for microscopy plates. Keyboard-driven, framework-free, accessible.

Growing web-component ★ 0.3k v1.2.0
<!-- IV. Specula — side-by-side microscopy comparator -->
<script type="module" src="specula.js"></script>

<ls-specula
  left="./plate-A.tif"
  right="./plate-B.tif"
  labels="control · treated"
></ls-specula>
Plaque · V

LegereCSV Bio Parser

Reads exports from common sequencing platforms and hands you a tidy frame. Forgiving of mess.

Seed python · pandas ★ — v0.1.0
# V. Legere — sequencer exports → tidy frames
from legere import read

df = read("run-2026-05-01.csv",
            platform="illumina",
            strict=True)

df.describe()
Plaque · VI

MitosisCell Division, animated

An honest illustration of mitosis for teaching. Configurable timing, soft easing, attribution-friendly.

Seed canvas · MIT ★ — v0.0.2
// VI. Mitosis — configurable mitosis loop
import animate from '@lifescientific/mitosis';

animate(canvas, 
  phase:    'prophase → telophase',
  duration: 8000,
  easing:   'soft',
  loop:     true,
);
~ Architectvra Codicis ~
┌──────────────┐    ┌──────────────┐    ┌──────────────┐
│  SEQUENTIA   │    │   VOLVERE    │    │   ORDINARE   │
│   viewer     │    │   rotator    │    │    sorter    │
└──────┬───────┘    └──────┬───────┘    └──────┬───────┘
       │                   │                   │
       └─────────┬─────────┴─────────┬─────────┘
                 │                   │
        ┌────────▼─────────┐ ┌───────▼────────┐
        │   @lifescientific/   typed primitives  │
        │   shared types · utilities · MIT       │
        └────────┬─────────┘ └───────┬────────┘
                 │                   │
       ┌─────────┴─────────┬─────────┴─────────┐
       │                   │                   │
┌──────▼───────┐    ┌──────▼───────┐    ┌──────▼───────┐
│   SPECVLA    │    │    LEGERE    │    │   MITOSIS    │
│    slider    │    │    parser    │    │   animator   │
└──────────────┘    └──────────────┘    └──────────────┘

— Inscribed in Optima & JetBrains Mono. Leave word here for the next dispatch.