os-optics-lens
2,796 searchable records · 2,841 configurations
A searchable library of optical prescriptions for AI agents. Start with an optical design brief, inspect relevant facts and structural details, and retrieve an editable native Project to continue design in os-optics.
Project rules
- Search the available native Projects using their own optical values. Return short candidate summaries with the facts that help an agent choose and open a Project.
- Keep the corpus focused on Projects, compact search metadata and any small supporting data needed to interpret a Project fact. Keep preparation material in the contribution workspace or PR. Record the contributor's direct source and attribution, available through explicit provenance inspection.
- Keep a specification match and a promising optimization starting point distinguishable in search results. Show a missing value when it matters to the query.
os-optics owns the native model and optical evaluation. os-optics-lens ships the prescription collection and its retrieval interface. os-optics-kit provides agent skills, study tools and worked cases. Engine · Kit
To add a prescription, follow Submit a native Project. The seed below preserves its original intake metadata.
The seed collection
records/lenslibrary/ holds the first records: native os-optics Projects converted from
Nathan Hagen's LensLibrary at a pinned revision. Each record directory holds the Project and a
record.json with the search facts, their basis and the provenance. The batch outcome manifest
reports an outcome for every source input.
| Source inputs | 77 ZMX files at revision 86b2c0ca |
| Accepted records | 39 |
| Deferred, with a reason | 32 |
| Conversion failed | 6 |
Read the Project directly, or start from a record:
os-optics project check records/lenslibrary/lenslibrary-528155/project.json
os-optics project solids records/lenslibrary/lenslibrary-528155/project.json
os-optics project paraxial records/lenslibrary/lenslibrary-528155/project.json \
--components LENS --wavelength-nm 587.7220645720764
Record layout and field semantics defines the metadata. Importing the LensLibrary seed collection records the conversion method, the material and surface decisions, the verification run and the known limits.
The dry-objective expansion batch
records/dry-microscope-objectives/ holds the first expansion batch: microscope objectives that work
with air between the specimen or cover glass and the objective.
| Source examples assessed | 19 (US11067782B2, US7663807B2, US7643216B2 and five sources deferred before transcription) |
| Accepted records | 10 |
| Deferred, with a reason | 9 |
| Conversion failed | 0 |
The batch carries a 10×/0.40 family of eight variants, a 10×/0.80 pair. Read preparing the dry-objective batch for the transcription rules, the object-plane and aperture decisions and the deferrals, and the series issue #26 for the coordination record.
The Nikon FX expansion series
records/nikon-fx/ holds a series of Nikon-branded FX photography lenses, prepared for
issue #11. Two sources are used, and a
record says which one it came from.
| Batch | Source | Claim |
|---|---|---|
batch-nikon-fx-1.json |
A numerical example printed in a US patent publication | The surface table is transcribed from the publication |
batch-nikon-fx-2.json |
The FlareSim lens corpus at revision 0e28ead9 (MIT) |
Each Project models a corpus prescription using catalog glass approximations |
| Corpus files at the pinned revision | 1370 |
| Nikon-branded files | 246 |
| Distinct source inputs in batch 2 | 202 |
| Accepted records in batch 2 | 101 |
| Deferred, with a reason code | 100 |
| Conversion failed | 1 |
The series contains 102 native Projects including the patent example. Each zoom Project represents one position. Nikon FX intake records the sources, conversion decisions, acceptance checks and limits.
The ZEISS photography-lens series
records/zeiss/ holds ZEISS-branded photography lenses, prepared for
issue #20. The batch takes its surface
tables from the FlareSim lens corpus at
revision 0e28ead9 (MIT), the source the Nikon FX series also uses.
| ZEISS-branded corpus files at the pinned revision | 52 |
| Accepted records | 43 |
| Deferred, with a reason code | 7 |
| Conversion failed | 2 |
The series contains classic Contax and Praktica-era designs, the modern ZEISS lines the corpus carries, the ARRI/ZEISS cinema primes and several Vario-Sonnar zoom positions. The corpus states no field and no format, so a record carries no field fact. ZEISS intake records the source, the conversion decisions, the acceptance checks and the limits.
Canon full-frame photography lenses
The Canon collection includes 18 native Projects from published patent numerical examples for full-frame photography, including wide-angle, telephoto and individual zoom positions. Each record identifies the publication, example and modeled configuration. The collection notes describe the material and aperture models and the conditions for the retained chief-ray traces.
Spectral band boundaries
band_facets in a record uses these boundaries, in vacuum nanometres:
| Facet | Interval (nm) |
|---|---|
extreme_ultraviolet |
0.1 – 10 |
ultraviolet |
10 – 380 |
visible |
380 – 780 |
near_infrared |
780 – 3000 |
mid_wave_infrared |
3000 – 8000 |
long_wave_infrared |
8000 – 15000 |
A facet is a discovery label derived from the record's sampling span. A hard band constraint
uses confirmed continuous coverage of the Project. The state is UNCONFIRMED when the record
supplies only discrete samples or a sampling span.
The telescope and observation collection
records/telescope-observation/ holds the second collection: nine classical eyepieces from
MIL-HDBK-141 section 14, one Nikon eyepiece numerical example, and four MIT-licensed sample designs
— refracting telescope objectives and eyepieces. Every record is a coaxial sequential refracting
prescription with a real image plane, because that is what the prescription importer accepts;
reflecting systems, prism erectors and afocal trains are deferred with a reason rather than
approximated.
| Candidates examined | 88 |
| Accepted records | 14 |
| Deferred, with a reason | 74 |
| Conversion failed | 0 |
Collection README covers the scope, the record table, the aperture and stop conventions, the validation run and the deferred sources. Batch manifest reports one outcome per candidate.
Search the collection
The os-optics-lens package ships the retriever together with a prebuilt index and the
collection it indexes. Queries run locally, using only the Python standard library (Python 3.10
or newer). Every command prints one bounded JSON document.
Until the first PyPI release, build the wheel from a checkout and install it:
uv build --wheel
pip install dist/os_optics_lens-0.1.0-py3-none-any.whl
os-optics-lens help quickstart
From brief to an editable Project:
os-optics-lens facets --facet design_type --facet image_format
os-optics-lens fields --fact image_format.image_circle_diameter_mm
os-optics-lens search --mode specification --filter design_type=camera_lens \
--where 'first_order.effective_focal_length_mm between_inclusive [17.1,18.9]' \
--where 'image_format.image_circle_diameter_mm gte 43.27'
os-optics-lens project yutong-2025-mirrorless-18-p2b --out work/p2b.project.json
- Specification search reports each hard constraint as
MATCH,DOES_NOT_MATCHorUNCONFIRMED, with a reason code for each unknown. - Starting-point search (
--mode starting_point --target FACT=VALUE~TOL) ranks near matches and lists their shortfalls and unknowns. comparecompares selected Project facts.inspectshows Project facts, configurations and prescription details. Useinspect ID --evidence SECTIONto read supporting analysis.project --outwrites the exact native Project bytes. Their SHA-256 equals the record'snative_project.sha256.- Use
inspect ID --provenancewhen you need the record's direct source, attribution or redistribution terms.
On Windows PowerShell, pass JSON requests with --request FILE. Outside an installed wheel,
build an index from a checkout with os-optics-lens index build --corpus . --out build/os-optics-lens-index.sqlite, then pass --index to each command.
Retrieval documents installation, the request and response formats, the
search semantics, the error codes and how to rebuild the index.
Index schema documents the index tables and build findings.
The endoscopic imaging batch
records/endoscopic-imaging/ holds a second collection: endoscopic imaging objectives transcribed
from published patent prescriptions, prepared for
issue #30. Each record cites its
publication, its example and a SHA-256 of the transcribed table text.
| Candidates inventoried | 168 prescriptions from 25 publications |
| Accepted records | 21, from 17 publications |
| Deferred, with a reason | 8 |
| Conversion failed | 0 |
This source forces one decision the seed collection did not. A patent table states nd and vd, and
two numbers do not define a dispersion curve, so every glass is a constant index at the stated
nd and the records claim no colour correction. The stated vd is kept as a source fact and is
not used. Importing the endoscopic imaging batch records the
search, the conversion method, that material decision and the limits.
Status and contributions
The first package ships the search interface and the searchable collection together. The seed collection is the first batch of that collection, and new series are added as further batches. LensLibrary
The phone-module collection
records/phone-modules/ holds the first expansion batch: seven-element main-camera and
five-element ultrawide modules transcribed from two granted US patent publications. Each record
names its table and embodiment, carries the search facts with their basis, and holds a compact
evidence extract beside the Project.
| Source examples | 22, across US9366845B2 and US10247911B2 |
| Accepted records | 11 (6 main camera, 5 ultrawide) |
| Deferred, with a reason | 11 |
Phone main-camera and ultrawide modules records the transcription rules, the material and aperture models, the field evidence, the verification run and the limits.
Use ARCHITECTURE.md for the design, AGENTS.md for repository rules, and CONTRIBUTING.md for proposals, single-record contributions and batch intake. The project uses the MIT License.
The phone-telephoto collection
records/phone-telephoto/ holds the telephoto batch: five-element straight telephoto modules
transcribed from two granted US patent publications, in a short group (5.7–7.0 mm focal length) and
a long group (8.6–10.1 mm). Each record names its table and embodiment, marks itself
module_role: telephoto and folded: false, and holds a compact evidence extract beside the
Project.
| Source examples | 22, across US20220299735A1 and US11372203B2 |
| Accepted records | 7 straight telephoto modules |
| Deferred, with a reason | 15 (13 near-duplicate variants, 2 with two aperture stops) |
Phone telephoto modules records the transcription rules, the stop and tolerance decisions, the field evidence, the verification run and the limits. Folded periscope designs are out of scope for the surface-table format.
Data sources and acknowledgments
The initial prescription records are derived from Nathan Hagen's LensLibrary, using revision 86b2c0ca. Thanks to Nathan Hagen for compiling and sharing the collection. See the LensLibrary MIT notice for the upstream copyright and license. The records identify the library inputs used for conversion.
The telescope and observation collection draws on MIL-HDBK-141 (a US Government work in the public domain), on US10527839B2 and on the MIT-licensed optiland sample designs. Each record states its own attribution and redistribution basis; the collection README lists the sources and the exact revision read.
The LensLibrary notice must stay with the converted records in any distribution. The repository's own MIT License covers its code and documentation.
Metadata
Release files for os-optics-lens 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| os_optics_lens-0.1.0.tar.gz | 13.7 MB | With provenance | Details for os_optics_lens-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| os_optics_lens-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for os_optics_lens-0.1.0-py3-none-any.whl |
Total release size: 43.7 MB
Release files / os_optics_lens-0.1.0.tar.gz
| Download URL | os_optics_lens-0.1.0.tar.gz |
|---|---|
| Size | 13.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95249fc95b9cb6efadc25f8e7151873ab3e3d2b2bc0d0b975a5acd7aa0455b1a
|
|
BLAKE2b-256 checksum How to use checksums |
e5e3fd15fe65c750bb54b75ada17dea90808b018b2c1ed1aaf573dfc614848c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logRelease files / os_optics_lens-0.1.0-py3-none-any.whl
| Download URL | os_optics_lens-0.1.0-py3-none-any.whl |
|---|---|
| Size | 30.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83acca200539f443318b57e5eb272355e5ff313f2ec51a4a6c313fca755344f4
|
|
BLAKE2b-256 checksum How to use checksums |
135c9230938b5be6b90d32c1c6085df6dec88730085ff449acf8cbeba084c261
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logSecurity for os-optics-lens 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for os_optics_lens-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.