{"id":41952340,"url":"https://github.com/mgks/md-fusion","last_synced_at":"2026-01-25T21:35:02.082Z","repository":{"id":331074241,"uuid":"1125137185","full_name":"mgks/md-fusion","owner":"mgks","description":"Convert notes between HTML/JSON and Markdown with YAML Frontmatter. Ideal for Notion/Obsidian migrations.","archived":false,"fork":false,"pushed_at":"2025-12-30T08:17:42.000Z","size":142,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-02T20:28:07.258Z","etag":null,"topics":["converter","json","markdown","nodejs","notion","npm","obsidian","yaml-parser"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mgks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"mgks","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2025-12-30T07:49:53.000Z","updated_at":"2025-12-30T08:19:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mgks/md-fusion","commit_stats":null,"previous_names":["mgks/md-fusion"],"tags_count":1,"template":false,"template_full_name":"mgks/nodejs-package-template","purl":"pkg:github/mgks/md-fusion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgks%2Fmd-fusion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgks%2Fmd-fusion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgks%2Fmd-fusion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgks%2Fmd-fusion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgks","download_url":"https://codeload.github.com/mgks/md-fusion/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgks%2Fmd-fusion/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28759413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T20:56:06.009Z","status":"ssl_error","status_checked_at":"2026-01-25T20:54:48.203Z","response_time":113,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["converter","json","markdown","nodejs","notion","npm","obsidian","yaml-parser"],"created_at":"2026-01-25T21:35:01.302Z","updated_at":"2026-01-25T21:35:02.076Z","avatar_url":"https://github.com/mgks.png","language":"TypeScript","funding_links":["https://github.com/sponsors/mgks"],"categories":[],"sub_categories":[],"readme":"# md-fusion\n\n**Convert notes between HTML/JSON and Markdown with YAML Frontmatter.**\n\n\u003cp\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/md-fusion.svg?style=flat-square\u0026color=d25353\" alt=\"npm version\"\u003e\n  \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/md-fusion?style=flat-square\u0026color=38bd24\" alt=\"size\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dt/md-fusion.svg?style=flat-square\u0026color=success\u0026color=38bd24\" alt=\"npm downloads\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/mgks/md-fusion.svg?style=flat-square\u0026color=blue\" alt=\"license\"\u003e\n\u003c/p\u003e\n\nA lightweight Node.js library and CLI tool to bridge the gap between structured note data (JSON) and static file systems (Markdown). It seamlessly handles **YAML Frontmatter**, making it perfect for migrating content to **Obsidian**, **Notion**, or **Jekyll/Hugo** sites.\n\n## Installation\n\n```bash\n# Global Install (CLI)\nnpm install -g md-fusion\n\n# Project Install (Library)\nnpm install md-fusion\n```\n\n## Usage\n### CLI Usage\n\n**Convert JSON Notes to Markdown Files**\nPerfect for importing into Obsidian or Dendron.\n```bash\nmd-fusion to-md notes.json -o ./my-vault\n# Creates: ./my-vault/note_title.md, ./my-vault/another_note.md\n```\n\n**Parse Markdown to JSON**\nUseful for processing existing Markdown files.\n```bash\nmd-fusion from-md ./my-vault/daily-note.md\n# Output: JSON object to console\n```\n\n### API Usage\n\n```javascript\nimport { toMarkdown, fromMarkdown } from 'md-fusion';\n\nconst myNote = {\n  title: \"Project Idea\",\n  content: \"\u003ch1\u003eBig Plans\u003c/h1\u003e\u003cp\u003eDo the thing.\u003c/p\u003e\",\n  tags: [\"ideas\", \"work\"],\n  created: \"2023-10-27T10:00:00Z\"\n};\n\n// 1. Convert Object to Markdown string with Frontmatter\nconst md = toMarkdown(myNote);\nconsole.log(md);\n/* Output:\n---\ntitle: Project Idea\ntags:\n  - ideas\n  - work\ncreated: 2023-10-27T10:00:00Z\n---\n# Big Plans\n\nDo the thing.\n*/\n\n// 2. Parse Markdown string back to Object\nconst noteObj = fromMarkdown(md);\nconsole.log(noteObj.title); // \"Project Idea\"\n```\n\n### Input/Output Format\n\nExpects (or produces) a standard JSON Note object:\n\n```typescript\ninterface Note {\n  title: string;\n  content: string; // HTML\n  tags: string[];\n  created: string; // ISO 8601\n  updated?: string; \n  [key: string]: any; // Any extra JSON keys become YAML Frontmatter\n}\n```\n\n## License\n\nMIT\n\n\u003e **{ github.com/mgks }**\n\u003e \n\u003e ![Website Badge](https://img.shields.io/badge/Visit-mgks.dev-blue?style=flat\u0026link=https%3A%2F%2Fmgks.dev) ![Sponsor Badge](https://img.shields.io/badge/%20%20Become%20a%20Sponsor%20%20-red?style=flat\u0026logo=github\u0026link=https%3A%2F%2Fgithub.com%2Fsponsors%2Fmgks)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgks%2Fmd-fusion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgks%2Fmd-fusion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgks%2Fmd-fusion/lists"}