# Invntr > An open-source lab (GPL-3.0-or-later) for an AI that researches and invents. A person brings a question or a thing to invent; the AI works over MCP on that person's own machine, running and chaining instruments that AI agents built. Instruments must pass known-answer cases before they may run; every call is journalled; every file is stored by hash; runs replay; units are checked when runs chain. ## Guides - [agents.md](agents.md): install from source, connect over MCP, the rules, every tool, writing and publishing instruments - [instruments.json](instruments.json): all 105 instruments with inputs, units, readings and known-answer cases - [A real project](project.html): one design job from the lab's journal, with the first design the lab itself overturned - [Install](start.html): the same install, for people - [Registry](registry.html): publish and find instruments ## Instruments - [acoustics](instruments/acoustics.html): Airborne ultrasound from arrays of piston transducers (far-field piston model, checked against the Rayleigh integral) and the radiation force on small spheres (Gor'kov's potential, checked against the exact partial-wave solution for a rigid sphere and corrected by it), plus self-consistent bead-to-bead multiple acoustic scattering (exact fluid-sphere Mie monopole+dipole partial waves, checked against Silva & Bruus 2014 secondary radiation forces and exact 4M x 4M dense linear solves). - [adduct_mass](instruments/adduct_mass.html): Converts between observed ESI precursor m/z and neutral monoisotopic mass (Da) for standard positive/negative adducts, with optional ppm mass error against a reference mass. - [allan_deviation](instruments/allan_deviation.html): Overlapping Allan deviation of a rate (frequency) or phase time series at logarithmically spaced averaging times. - [antenna_array](instruments/antenna_array.html): Linear antenna array of equally spaced isotropic elements. - [arm](instruments/arm.html): A serial robot arm on a weighted base (yaw, pitch joints, roll wrist, gripper), sized by statics and rigid-body dynamics. - [arrhenius_fit](instruments/arrhenius_fit.html): Arrhenius and Eyring analysis of rate constants measured at several temperatures. - [backbone_build](instruments/backbone_build.html): Builds a protein backbone (N, CA, C, O) from a sequence and phi, psi, omega with ideal bond lengths and angles (internal coordinates, NeRF placement). - [battery_ecm](instruments/battery_ecm.html): Battery cell equivalent-circuit (Thevenin) model. - [beam](instruments/beam.html): Euler-Bernoulli beam, finite elements with cubic Hermite shape functions. - [bode_margins](instruments/bode_margins.html): Frequency response of an open loop L(s) = gain * num(s)/den(s) * exp(-s T) on a log sweep. - [bolt_joint](instruments/bolt_joint.html): Preloaded bolted joint in tension. - [buckled_beam](instruments/buckled_beam.html): A precompressed (buckled) beam turned at its right end. - [calibration_curve](instruments/calibration_curve.html): Instrument calibration. - [channel2d](instruments/channel2d.html): 2D incompressible flow by the lattice Boltzmann method (D2Q9, BGK). - [charge_deconvolution](instruments/charge_deconvolution.html): Electrospray charge-state deconvolution. - [circuit](instruments/circuit.html): An electrical circuit simulated by ngspice 47 (the open-source SPICE; built from its pinned source tarball by install.sh). - [compare](instruments/compare.html): Compare two tables of numbers cell by cell. - [contact_map](instruments/contact_map.html): Analyzes 3D protein-protein or protein-ligand contacts from PDB/mmCIF. - [control_chart](instruments/control_chart.html): Statistical process control. - [crystal_lattice](instruments/crystal_lattice.html): Crystallography of one unit cell, any of the seven crystal systems. - [diffraction](instruments/diffraction.html): Fraunhofer (far-field) diffraction at normal incidence by a single slit, a double slit, an N-slit grating and a circular aperture. - [diffusion_solid](instruments/diffusion_solid.html): Diffusion in solids (Fick's second law, constant D). - [draft](instruments/draft.html): The drafting engine (from DraftCore, with ForgeCraft's and MasonCraft's commands). - [drawing](instruments/drawing.html): A dimensioned workshop drawing made from a `solid` model. - [dynamics](instruments/dynamics.html): One mass on any spring, shaken at its base, followed over time (SciPy solve_ivp, DOP853, events at every contact and snap). - [elastic_network](instruments/elastic_network.html): Gaussian (GNM) and anisotropic (ANM) elastic network models on C-alpha atoms from PDB or mmCIF text or a file. - [elastica](instruments/elastica.html): The planar elastica, exact (no small-angle approximation). - [fatigue](instruments/fatigue.html): Infinite-life fatigue check under a mean plus an alternating stress. - [fea2d](instruments/fea2d.html): 2D finite elements (quadratic triangles) from ForgeCraft. - [fea3d](instruments/fea3d.html): 3D linear elastic stress and deflection of a solid part, on proven open-source code. - [fiber_modes](instruments/fiber_modes.html): Step-index optical fibre (weakly guiding LP modes) and symmetric slab waveguide. - [filter_design](instruments/filter_design.html): Passive LC ladder filter synthesis. - [fingerprint_sim](instruments/fingerprint_sim.html): Computes circular Morgan-like topological fingerprints from SMILES, pairwise Tanimoto and Dice similarity matrices, SALI scores, and activity-cliff detection. - [fit](instruments/fit.html): Nonlinear least-squares fit of a model to measured data (Levenberg-Marquardt and trust-region, SciPy, exact complex-step derivatives, tolerances at machine precision). - [formula_from_mass](instruments/formula_from_mass.html): Candidate elemental formulas (C, H, N, O, S, P, F, Cl, Br, I within limits) for a measured monoisotopic neutral mass, or an m/z with its adduct ([M+H]+, [M-H]-, [M+Na]+, [M+2H]2+, [2M+H]+ ...), within a ppm tolerance. - [gas_eos](instruments/gas_eos.html): Real-gas equations of state (ideal, van der Waals, Redlich-Kwong, Peng-Robinson) from the critical temperature, critical pressure and acentric factor given as inputs. - [gear_train](instruments/gear_train.html): Generic ISO/AGMA involute spur gear pair designer. - [hardy_weinberg](instruments/hardy_weinberg.html): Hardy-Weinberg analysis of genotype counts at one autosomal locus with two or more alleles. - [hbond_find](instruments/hbond_find.html): Hydrogen bonds and salt bridges in a protein from PDB/mmCIF by geometry. - [hertz_contact](instruments/hertz_contact.html): Hertz contact of two elastic bodies (sphere on flat, sphere on sphere or in a cup, cylinder on flat, parallel cylinders). - [huckel_mo](instruments/huckel_mo.html): Hueckel molecular-orbital theory for a conjugated pi system given as atoms and bonds (heteroatom h and k optional). - [hypothesis_test](instruments/hypothesis_test.html): Classical tests on small data sets. - [isotope_pattern](instruments/isotope_pattern.html): Computes exact monoisotopic mass, average mass, RDBE, nitrogen rule, and theoretical isotopic envelope (M, M+1, M+2...) from a molecular formula, or enumerates CHNO candidate formulas for a target exact mass. - [kabsch_align](instruments/kabsch_align.html): Exact Horn quaternion Kabsch 3D superposition of two protein structures (CA atoms). - [kalman_filter](instruments/kalman_filter.html): Linear Kalman filter for a small state-space model x[k] = F x[k-1] + w (cov Q), z[k] = H x[k] + v (cov R). - [kendrick_defect](instruments/kendrick_defect.html): Kendrick mass analysis of a peak list. - [kinetics_fit](instruments/kinetics_fit.html): Nonlinear Levenberg-Marquardt solver for enzyme kinetics (Michaelis-Menten Vmax, Km) and 4PL Hill dose-response curves (IC50/EC50, Hill slope), with Cheng-Prusoff Ki conversion. - [kmer_spectrum](instruments/kmer_spectrum.html): k-mer counting on DNA reads or one sequence (canonical or not, linear or circular). - [ld_stats](instruments/ld_stats.html): Linkage disequilibrium between two biallelic loci (A/a, B/b) from phased haplotype counts, or from unphased 3x3 genotype counts by EM gene counting. - [lddt_score](instruments/lddt_score.html): lDDT (local distance difference test, Mariani et al. - [life](instruments/life.html): LifeCraft's sequence engine (molecular biology). - [lqr](instruments/lqr.html): Continuous-time linear-quadratic regulator for a small state-space plant x' = Ax + Bu (up to 8 states, tested to 6). - [material](instruments/material.html): A material's properties with the source of every value, and a design endurance limit derived as a run. - [measure](instruments/measure.html): A measured time series (base and response accelerations, e.g. - [modal_chain](instruments/modal_chain.html): Undamped modes of a spring-mass chain with n degrees of freedom (fixed-fixed, fixed-free or free-free; uniform or per-element masses and stiffnesses). - [molecule](instruments/molecule.html): Molecules from SMILES, one per line with an optional name after a space. - [molecule3d](instruments/molecule3d.html): Molecules in 3D from SMILES (one per line, optional name after a space). - [motif_scan](instruments/motif_scan.html): Scans DNA/RNA sequences against a Position Frequency Matrix (PFM / JASPAR format) converted to a log-odds PWM. - [nernst_cell](instruments/nernst_cell.html): Electrochemical cell thermodynamics. - [neutral_loss](instruments/neutral_loss.html): Screens a singly-charged MS2 spectrum for curated literature neutral losses (H2O, CO, CO2, NH3, ketene, sulfate, phosphate, hexose, glucuronide, etc.) within a Da tolerance. - [optics](instruments/optics.html): Light on small spheres in a box. - [orbit_kepler](instruments/orbit_kepler.html): Two-body (Kepler) orbits about any central body given by its GM (Earth by default). - [orbit_transfer](instruments/orbit_transfer.html): Impulsive orbital manoeuvres around one body (two-body, coplanar and coaxial orbits). - [orf_codon](instruments/orf_codon.html): Finds Open Reading Frames (ORFs) across all 6 reading frames, translates the longest ORF, and computes sequence GC%, longest-ORF GC3%, and codon usage counts. - [pdb_parse](instruments/pdb_parse.html): Parses PDB or mmCIF protein/macromolecule coordinate files. - [pendulum](instruments/pendulum.html): Rigid pendulum released from rest at any amplitude, with optional viscous damping. - [peptide_fragments](instruments/peptide_fragments.html): Peptide fragment ions for tandem MS. - [ph_speciation](instruments/ph_speciation.html): Exact Henderson-Hasselbalch polyprotic acid-base microspecies solver. - [phylo_tree](instruments/phylo_tree.html): Evolutionary distances from aligned DNA (p-distance, Jukes-Cantor 1969, Kimura two-parameter 1980, with large-sample standard errors) or a distance matrix given directly, and trees from them by neighbour joining (Saitou-Nei, Studier-Keppler form) and UPGMA. - [plate_bending](instruments/plate_bending.html): Thin rectangular plate simply supported on all four edges (Kirchhoff theory, small deflection) under a uniform pressure, a half-sine pressure or a central force (true point or spread over a patch), by the Navier double sine series. - [plddt_analyze](instruments/plddt_analyze.html): Analyzes AlphaFold pLDDT confidence scores from PDB/mmCIF B-factors. - [plot](instruments/plot.html): Line plot of columns from a CSV (a file from an earlier run, or inline text), optionally one line per value of a group column, and a second CSV overlaid dashed (theory against simulation). - [potion](instruments/potion.html): PotionCraft's chemistry engine. - [primer_check](instruments/primer_check.html): PCR primer quality check by counting and exact matching only (no nearest-neighbour tables). - [protein_digest](instruments/protein_digest.html): In-silico protease digestion of one protein sequence (trypsin with the proline rule, trypsin without it, Lys-C, chymotrypsin, Glu-C, CNBr, or a custom rule) with up to 5 missed cleavages. - [protein_props](instruments/protein_props.html): Computes ProtParam-style physicochemical properties from an amino acid sequence. - [qsar_ridge](instruments/qsar_ridge.html): Small-N standardized Ridge QSAR/ADMET regressor with exact Hat-matrix Leave-One-Out cross-validation (R², Q²_LOO, RMSE_LOO) and leverage applicability-domain checks for candidate predictions. - [ramachandran](instruments/ramachandran.html): Computes backbone dihedral angles (phi, psi, omega) from PDB/mmCIF N-CA-C atoms, assigns secondary structure and Ramachandran favored/allowed/outlier fractions, and writes an outlier-highlighted 3D scene.glb. - [reaction_network](instruments/reaction_network.html): Mass-action kinetics of a reaction network written as text ('A + B -> C; k = 0.5', 'A <=> B; kf = 2; kr = 0.5', sources '0 -> A', sinks 'A -> 0'), integrated by 3-stage Radau IIA (order 5, L-stable) with an exact Jacobian and step-doubling error control. - [resolving_power](instruments/resolving_power.html): Mass resolving power. - [resonator](instruments/resonator.html): A vibration energy harvester as a base-excited mass-spring-damper (Williams and Yates). - [restriction_map](instruments/restriction_map.html): Restriction digest of one DNA sequence, linear or circular, with named enzymes (66 common sites built in, IUPAC degenerate codes, type IIS enzymes that cut outside their site, custom sites). - [rigid_body_spin](instruments/rigid_body_spin.html): Torque-free rotation of a rigid body. - [sasa](instruments/sasa.html): Solvent-accessible surface area by Shrake-Rupley point counting (probe 1.4 Å) from PDB or mmCIF text or a file. - [seq_align](instruments/seq_align.html): Exact Needleman-Wunsch (global) and Smith-Waterman (local) pairwise sequence alignment for proteins (BLOSUM62) and DNA/RNA. - [servo_control](instruments/servo_control.html): Generic closed-loop PID electromechanical actuator simulator (RK4) with torque saturation, anti-windup, viscous damping, and load torque. - [smiles_graph](instruments/smiles_graph.html): Pure-Rust SMILES molecular graph analyzer. - [solid](instruments/solid.html): One parametric solid model of a part or an assembly, built from a model script by SolidCraft's headless CLI (pinned release 0.45.0, B-rep kernel solidcore). - [spectral_match](instruments/spectral_match.html): Computes greedy-matched cosine similarity, mass-shifted modified (analog) cosine similarity, and peak-count & intensity-weighted spectral coverage between two MS2 spectra. - [spectrum_clean](instruments/spectrum_clean.html): Preprocesses an MS2 fragment peak list. - [spectrum_fft](instruments/spectrum_fft.html): Spectrum of an equally sampled signal (inline samples, a csv, or a synthetic test signal). - [spring_design](instruments/spring_design.html): Helical compression spring of round wire from wire and coil diameter, active coils, moduli, free length and load. - [stoich_balance](instruments/stoich_balance.html): Balances a chemical equation, ionic ones too (charge is a conserved row), by the exact integer null space of its composition matrix; molar masses from formulas with brackets and hydrates; limiting reagent, theoretical and percent yield, excess left over, atom economy. - [strip](instruments/strip.html): A precompressed strip clamped at both ends at given angles (the exact planar elastica, inextensible), pushed sideways at a point under displacement control, followed by pseudo-arclength continuation along one branch, from a margin below the lowest resting state to a margin above the highest (it says where the branch ends. - [surface_finish](instruments/surface_finish.html): Generic procedural PBR surface finish & texture synthesizer (pure Rust). - [thin_film](instruments/thin_film.html): Multilayer thin-film stack by the transfer-matrix (characteristic-matrix) method. - [tm_score](instruments/tm_score.html): TM-score, GDT-TS/GDT-HA and RMSD between two protein structures. - [torsion_shaft](instruments/torsion_shaft.html): Round shaft in torsion, solid or hollow, stepped in segments carrying one torque in series. - [trajectory](instruments/trajectory.html): Generic 3D point-mass flight and aiming solver (RK4) with quadratic aerodynamic drag, 3D wind, and optional Magnus lift. - [transducer](instruments/transducer.html): A cantilever with a tip mass and bonded piezoelectric patches (31 mode) reduced to the one-mass numbers dynamics takes, referred to the motion of the tip mass's centre. - [transmission_line](instruments/transmission_line.html): Lossless transmission line. - [truss2d](instruments/truss2d.html): Plane pin-jointed truss by the direct stiffness method. - [uncertainty](instruments/uncertainty.html): Measurement uncertainty budget after the GUM (JCGM 100). - [variant_effect](instruments/variant_effect.html): Annotates coding DNA variants (SNVs and indels). - [vle_flash](instruments/vle_flash.html): Vapour-liquid equilibrium of an ideal mixture (Raoult's law, Antoine vapour pressures given as inputs per component).