{"id":14997683,"url":"https://github.com/nesterow/watch_mdx","last_synced_at":"2026-03-13T23:06:51.577Z","repository":{"id":65910831,"uuid":"602015254","full_name":"nesterow/watch_mdx","owner":"nesterow","description":"Compile mdx files to jsx on fly.","archived":false,"fork":false,"pushed_at":"2023-02-16T19:04:23.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T11:45:21.950Z","etag":null,"topics":["deno","mdx","mdx-js"],"latest_commit_sha":null,"homepage":"https://deno.land/x/watch_mdx","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/nesterow.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}},"created_at":"2023-02-15T10:15:38.000Z","updated_at":"2023-05-25T23:29:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"481c42f5-7622-4384-8516-89aa932809b4","html_url":"https://github.com/nesterow/watch_mdx","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":"0.19999999999999996","last_synced_commit":"431e8720ce5204a29bbb665010f109222e2594be"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/nesterow/watch_mdx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nesterow%2Fwatch_mdx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nesterow%2Fwatch_mdx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nesterow%2Fwatch_mdx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nesterow%2Fwatch_mdx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nesterow","download_url":"https://codeload.github.com/nesterow/watch_mdx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nesterow%2Fwatch_mdx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30479007,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T20:45:58.186Z","status":"ssl_error","status_checked_at":"2026-03-13T20:45:20.133Z","response_time":60,"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":["deno","mdx","mdx-js"],"created_at":"2024-09-24T17:30:39.048Z","updated_at":"2026-03-13T23:06:51.555Z","avatar_url":"https://github.com/nesterow.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Watch MDX\n\nCompile MDX to JSX on fly..\n\n## Usage\n\n```typescript\nimport { watchMdx } from \"https://deno.land/x/watch_mdx/mod.ts\";\n\nwatchMdx({\n  compile: async ({ compile, source, output }) =\u003e {\n    const result = await compile(source.value, {\n      jsxImportSource: \"preact\",\n      jsx: true,\n    });\n    return {\n      value: result.value,\n      output: output,\n    };\n  },\n});\n```\n\n## API\n\nEverything can be modified through options.\n\n### watchMdx(options: WatcherOptions) - Watcher\n\nWatch directory for changes and compile mdx files.\n\n### copileMdx(options: WatcherOptions) - Compiler\n\nCollect all mdx files and compile them.\n\n### WatcherOptions\n\n```typescript\ninterface WatcherOptions {\n  dir: string; // default: cwd\n  pattern: RegExp; // default: /\\.mdx$/\n  compile: CompilerCallback;\n  onCompile: Callback;\n  precompile: boolean; // compile all before init?\n  denoFormat: boolean; // format output with deno fmt?\n  formatOutput: (input: string) =\u003e string; // custom path/ext\n}\n```\n\n## Example\n\n[dev.ts](https://github.com/nesterow/tailored/blob/main/dev.ts)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnesterow%2Fwatch_mdx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnesterow%2Fwatch_mdx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnesterow%2Fwatch_mdx/lists"}