Skip to main content

Authoritative, versioned PDF facts contract for Think Neverland tools.

Project description


title: "Overview" description: "Authoritative read-only PDF facts + render engine for Print with Synergy / Think Neverland tools. Versioned contract, schema-validated output, deployed as three services." group: "Getting started" order: 1 slug: "overview"

codexPDF

codexPDF is the authoritative, read-only PDF facts + render reference for the Print with Synergy / Think Neverland tool family.

Other engines consult codexPDF for canonical document facts instead of re-parsing PDFs independently. The contract is versioned and schema-validated.

Status

codex-pdf 1.7.0. Current surface includes:

  • Python package (codex_pdf) with typed pydantic models.
  • CLI (codex-pdf extract|schema|contract|validate|probe|parity|render|serve).
  • HTTP API (/v1/extract, /v1/probe, /v1/extract/stream, /v1/render/{page,separations,heatmap,layer}, /v1/sample/{color,density}, /v1/walk/{type4,content-stream}, /v1/color/{resolve,match-pantone,inkbook}, /v1/geom/{tile,intersect,union,difference}).
  • TypeScript client (@printwithsynergy/codex-client) mirroring the Python codex_pdf.client surface, with SSE streaming for probe and extract.
  • Versioned schemas in schemas/v1/ (document, color, geom).
  • Cloudflare Worker (codex-edge) providing a KV-backed write-through cache layer in front of the API.
  • Redis-Streams speculator (codex-speculator) that pre-warms Phase 1 + Phase 2 caches.

See CLAUDE.md for the full deployed-service map (URLs, account IDs, version-bump checklist).

Quickstart

uv sync
uv run codex-pdf probe input.pdf --json
uv run codex-pdf extract input.pdf --pretty > out.json
uv run codex-pdf validate out.json
uv run codex-pdf parity --fixtures-root tests/fixtures --profile summary --max-files 5

Run the HTTP API locally:

uv run codex-pdf serve --host 0.0.0.0 --port 8080
curl localhost:8080/v1/version

Contract

The public surface is the JSON contract rooted at CodexDocument, plus the per-section contracts under color and geom.

  • Document schema: schemas/v1/codex-document.schema.json
  • Runtime model: codex_pdf.models.v1.CodexDocument
  • Stability policy: SemVer (major for breaking contract changes; field additions are minor bumps).
  • Live contract endpoint: GET /v1/contract returns the endpoint inventory plus section_schema_versions.

Documentation

Topic Doc
Architecture and boundaries docs/architecture.md
CLI commands and usage docs/cli.md
Contract and schema versioning docs/contract.md
Deploying the API + speculator + edge docs/deploy.md
Parity profiles and baselines docs/parity.md
Preflight ingest adapters docs/preflight-ingest.md
Service-ownership contract docs/service-ownership-contract.md
Codex change ripple rule docs/operations/codex-change-ripple.md
Marketing deploy template docs/operations/marketing-deploy-template.md

Contributing

We welcome PRs that fit codex's lane (extraction, normalization, detection signals). Display concerns belong in Loupe; rule pass/fail logic belongs in Lint.

Read CONTRIBUTING.md for the dev setup, test commands, schema-bump rules, and release checklist.

Security

Please report vulnerabilities privately to security@thinkneverland.com — do not open a public issue.

The full disclosure policy, supported-version matrix, and scope (including the read-only PDF invariant) live in SECURITY.md.

License

codexPDF is distributed under the GNU Affero General Public License v3.0 or later (SPDX-License-Identifier: AGPL-3.0-or-later). The full license text is in LICENSE.

AGPL applies in particular when codex is reachable over a network — modifications served to remote users must be made available to those users under the same terms.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codex_pdf-1.7.1.tar.gz (718.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codex_pdf-1.7.1-py3-none-any.whl (599.8 kB view details)

Uploaded Python 3

File details

Details for the file codex_pdf-1.7.1.tar.gz.

File metadata

  • Download URL: codex_pdf-1.7.1.tar.gz
  • Upload date:
  • Size: 718.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for codex_pdf-1.7.1.tar.gz
Algorithm Hash digest
SHA256 a7ee357951ef61712fde8b0272132858d120452c35b2b51d964532ee38e29cdc
MD5 5f72390cee165ceb3011ace1a40dd2e6
BLAKE2b-256 aff441828e60430501e7398b46ed60762974141de0488fb79e507836b4ac4c91

See more details on using hashes here.

File details

Details for the file codex_pdf-1.7.1-py3-none-any.whl.

File metadata

  • Download URL: codex_pdf-1.7.1-py3-none-any.whl
  • Upload date:
  • Size: 599.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for codex_pdf-1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c20c9c4a3bcb408e40d18357522464fc85ef3e7e890eca3478ded9034369016e
MD5 6e379c46d666654df42ab9d940270d42
BLAKE2b-256 f5a2ccd5ca9950c5c8e6575187e4847240ac4d98dbc7e9b0607fd9a3770ebb08

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page