pharmacopeia

What’s new

A running record of notable dataset and API changes. Subscribe with your reader of choice — RSS for legacy clients, JSON Feed for anything modern — to watch the dataset evolve without scraping.

  • addedEndpoint

    Semantic retrieval, grounded tier, and webhooks

    Three new API surfaces: GET /api/v1/semantic-search retrieves drug-record passages by meaning (pgvector embeddings with a lexical fallback — the response reports which path answered); POST /api/v1/grounded is the first key-gated tier, returning the same passages with per-span citations that carry full provenance for LLM consumers; and /api/v1/webhooks registers HMAC-signed outbound webhooks on dataset changes so caches can invalidate instead of polling this feed.

    semantic-searchgroundedwebhooksapi-keys
  • releasedDataset

    Supabase Postgres backend behind the same repository contract

    The API now serves from Supabase Postgres through Prisma when DATABASE_URL is configured, with the static seed dataset remaining as the zero-config fallback. Document-style rows keep the Zod schemas as the single source of truth, and /api/v1/health reports which backend answered. No contract changes — both backends are behaviourally identical.

    postgresprismasupabase

  • addedEndpoint

    Side-by-side comparison + public change feed

    New /compare view puts two or three drug records next to each other for quick reference contrast across class, mechanism, indications, identifiers, and 2D structure. A public RSS/JSON feed at /feed.xml and /feed.json now lists notable dataset changes so consumers can watch the contract evolve without scraping.

    uifeedrss
  • releasedEndpoint

    TypeScript and Python SDKs published

    @pharmacopeia/client (npm) and pharmacopeia (PyPI) ship as thin, fully-typed clients. Types are generated from the same Zod schemas the API uses, so request and response shapes can never silently drift from the server. Tagged releases on GitHub publish both packages automatically.

    sdktypescriptpythonwww.npmjs.compypi.org
  • addedStructure

    Structural analogs (Tanimoto over 2D fingerprints)

    Each drug record now exposes its structurally nearest neighbours, computed offline with OpenChemLib's 512-bit substructure fingerprint and the Tanimoto coefficient. Educational structural proximity only — never a claim of therapeutic equivalence. Surfaced at GET /api/v1/drug/{slug}/similar and on the drug detail page.

    chemistryendpointopenmolecules.org
  • addedInteraction

    openFDA drug-interaction narratives

    Every drug with an openFDA structured-product label now carries its 'drug_interactions' section verbatim. One-sided narrative text only — the pair-graph Interaction schema stays reserved for the day a real structured DDI source lands. Visible on /drugs/[slug] and tagged on /interactions.

    openfdainteractionsopen.fda.gov
  • addedEndpoint

    WHO ATC tree + mechanism-of-action graph

    Two new browse surfaces: /atc renders the WHO Anatomical Therapeutic Chemical hierarchy as a nested tree (levels 1–5), and /moa shows the mechanism-of-action network of drugs, MoA classes, and molecular targets. APIs at GET /api/v1/atc and GET /api/v1/mechanisms/graph.

    classesendpointwww.whocc.no
  • releasedDataset

    v0 preview released

    First public preview of pharmacopeia. ~310 of the most-prescribed drugs in the United States, ingested from RxNav, openFDA, and PubChem and baked into the source tree as static seed data. Full API + UI browsable end-to-end without any database. Every field links back to its public source via a per-record provenance object.

Search pharmacopeia

Search drugs, classes, and ingredients