{"id":51064697,"url":"https://github.com/cosmiciron/vmprint-transmuters","last_synced_at":"2026-06-23T05:32:24.351Z","repository":{"id":349437574,"uuid":"1191197299","full_name":"cosmiciron/vmprint-transmuters","owner":"cosmiciron","description":"A collection of specialized source-to-AST transmuters for the VMPrint ecosystem. Converts Markdown (and future formats) into VMPrint's native DocumentInput representation.  🚀 Official part of the VMPrint project: https://github.com/cosmiciron/vmprint","archived":false,"fork":false,"pushed_at":"2026-04-17T03:01:33.000Z","size":174,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-17T05:09:03.287Z","etag":null,"topics":["document-conversion","layout-engine","pdf-generation","puppeteer","typesetting","typst","vmprint"],"latest_commit_sha":null,"homepage":"https://cosmiciron.github.io/vmprint/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cosmiciron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-25T02:25:29.000Z","updated_at":"2026-04-17T03:01:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cosmiciron/vmprint-transmuters","commit_stats":null,"previous_names":["cosmiciron/vmprint-transmuters"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cosmiciron/vmprint-transmuters","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmiciron%2Fvmprint-transmuters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmiciron%2Fvmprint-transmuters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmiciron%2Fvmprint-transmuters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmiciron%2Fvmprint-transmuters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosmiciron","download_url":"https://codeload.github.com/cosmiciron/vmprint-transmuters/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmiciron%2Fvmprint-transmuters/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34677382,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["document-conversion","layout-engine","pdf-generation","puppeteer","typesetting","typst","vmprint"],"created_at":"2026-06-23T05:32:21.702Z","updated_at":"2026-06-23T05:32:24.341Z","avatar_url":"https://github.com/cosmiciron.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚠️ Repository Moved to Monorepo\n\nThis repository is now deprecated and is no longer maintained here. All development, issues, and pull requests have been moved to the primary monorepo:\n\n👉 **[vmprint](https://github.com/cosmiciron/vmprint)**\n\nPlease update your bookmarks and direct any contributions or issues there. Thank you!\n\n---\n\n# VMPrint Transmuters\n\n\u003e 🚀 **Part of the [VMPrint Ecosystem](https://github.com/cosmiciron/vmprint)**\n\nA transmuter converts a source format into VMPrint's native intermediate representation — `DocumentInput` — without touching the layout engine.\n\n## Why transmuters exist\n\nThe VMPrint engine speaks exactly one language: `DocumentInput` JSON. This is intentional. The engine has no knowledge of Markdown, DOCX, LaTeX, or any other authoring format. That separation keeps the layout core deterministic and format-agnostic.\n\nTransmuters are the bridge. Each one takes a human-authored source and produces a `DocumentInput` object the engine can ingest directly. They are deliberately kept thin:\n\n- **No file access.** No `fs`, no I/O. Input and output are plain in-memory values.\n- **No engine dependency.** Transmuters do not import `@vmprint/engine`. Types are declared locally and kept structurally compatible.\n- **Embeddable anywhere.** Browser, Node.js, edge worker, build plugin — the same package works in all of them.\n\n## Naming convention\n\nDirectories follow `{source}-{target}` where both sides use short format identifiers:\n\n| Identifier | Meaning |\n|---|---|\n| `mkd` | Markdown (CommonMark + GFM extensions) |\n\nSo `mkd-mkd` is the Markdown → `DocumentInput` transmuter. The second `mkd` here refers not to a different Markdown dialect but to the vmprint IR whose semantic elements (`heading-1`, `paragraph`, `blockquote`, …) mirror the block-level vocabulary of Markdown — it is the natural structural target for markdown source.\n\n## Transmuters in this repo\n\n| Directory | Package | Source |\n|---|---|---|\n| `markdown-core/` | `@vmprint/markdown-core` | Shared Markdown → `DocumentInput` compiler core |\n| `mkd-mkd/` | `@vmprint/mkd-mkd` | Markdown → `DocumentInput` |\n| `mkd-academic/` | `@vmprint/mkd-academic` | Markdown → `DocumentInput` (academic defaults) |\n| `mkd-literature/` | `@vmprint/mkd-literature` | Markdown → `DocumentInput` (literature defaults) |\n| `mkd-manuscript/` | `@vmprint/mkd-manuscript` | Markdown → `DocumentInput` (manuscript defaults) |\n| `mkd-screenplay/` | `@vmprint/mkd-screenplay` | Markdown → `DocumentInput` (screenplay defaults) |\n\n## Relationship to draft2final\n\n`draft2final` is now a thin, transmuter-first orchestrator. It selects a transmuter, loads user-editable config defaults, resolves optional themes, and then renders either PDF or AST JSON output.\n\nTransmuters remain the lower-level primitives: `source text` in, `DocumentInput` AST out. They are where source-format semantics and default conventions live. This keeps heavy regression coverage at the transmuter level while the CLI stays lightweight.\n\n## Local dev loop\n\nFor rapid local testing of a transmuter plus theme/config YAML, use the workspace dev CLI:\n\n```bash\nnpm run dev:transmute -- sample.md --as mkd-mkd --theme ./theme.yaml --out ./sample.pdf\n```\n\nOr point directly at a transmuter source module:\n\n```bash\nnpm run dev:transmute -- sample.md --transmuter ./mkd-mkd/src/index.ts --out ./sample.json\n```\n\n## Adding a new transmuter\n\nShared transmuter contract types live in [`@vmprint/contracts`](https://www.npmjs.com/package/@vmprint/contracts).\n\nA transmuter should satisfy the shared `Transmuter\u003cInput, Output, Options\u003e` contract and may also export a convenience function:\n\n```typescript\ninterface Transmuter\u003cInput, Output, Options\u003e {\n  transmute(source: Input, options?: Options): Output;\n}\n```\n\nIt should have no runtime dependency on `@vmprint/engine` and no file-system access. Themes and config are passed as strings or plain objects by the caller.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmiciron%2Fvmprint-transmuters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosmiciron%2Fvmprint-transmuters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmiciron%2Fvmprint-transmuters/lists"}