{"id":14962865,"url":"https://github.com/hashbite/gatsby-transformer-unified","last_synced_at":"2026-01-22T18:02:54.772Z","repository":{"id":220881160,"uuid":"752769699","full_name":"hashbite/gatsby-transformer-unified","owner":"hashbite","description":"Use latest unified in Gatsby.","archived":false,"fork":false,"pushed_at":"2024-02-08T08:49:48.000Z","size":2487,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-16T16:38:16.859Z","etag":null,"topics":["gatsby","gatsbyjs","markdown","rehype","remark","unified"],"latest_commit_sha":null,"homepage":"https://gatsby-transformer-unified.netlify.app/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hashbite.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-02-04T18:53:20.000Z","updated_at":"2024-02-07T11:26:12.000Z","dependencies_parsed_at":"2024-11-04T05:11:28.104Z","dependency_job_id":null,"html_url":"https://github.com/hashbite/gatsby-transformer-unified","commit_stats":{"total_commits":37,"total_committers":1,"mean_commits":37.0,"dds":0.0,"last_synced_commit":"90262dd1a92dd8359f1b6d4dd23510693480c7f2"},"previous_names":["hashbite/gatsby-transformer-unified"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/hashbite/gatsby-transformer-unified","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashbite%2Fgatsby-transformer-unified","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashbite%2Fgatsby-transformer-unified/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashbite%2Fgatsby-transformer-unified/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashbite%2Fgatsby-transformer-unified/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hashbite","download_url":"https://codeload.github.com/hashbite/gatsby-transformer-unified/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashbite%2Fgatsby-transformer-unified/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28667881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T17:07:18.858Z","status":"ssl_error","status_checked_at":"2026-01-22T17:05:02.040Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["gatsby","gatsbyjs","markdown","rehype","remark","unified"],"created_at":"2024-09-24T13:30:37.285Z","updated_at":"2026-01-22T18:02:54.743Z","avatar_url":"https://github.com/hashbite.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gatsby Transformer Unified\n\n`gatsby-transformer-unified` is a powerful Gatsby plugin that leverages Unified.js for transforming text-based content, tailored for Gatsby v5. It enables seamless text transformations across a diverse range of data sources by integrating with `gatsby-source-filesystem` and extending support to any plugin compatible with `gatsby-transformer-remark`, including `gatsby-source-contentful`.\n\n**Current Stage:** Actively tested as a promising replacement for `gatsby-plugin-mdx` v2.\n\n![npm version](https://badge.fury.io/js/gatsby-transformer-unified.svg)\n\n## Key Features\n\n- **Unified.js Integration:** Utilize Unified.js for comprehensive text content transformation within Gatsby.\n- **Efficient Importing:** Features a `cachedImport` helper for optimal performance in importing Unified plugins.\n- **Configurable Pipelines:** Tailor Unified pipelines for specific content types, ensuring flexible transformations.\n- **Extensive Plugin Compatibility:** Seamlessly integrates with `gatsby-source-filesystem` and any plugin that supports `gatsby-transformer-remark`, such as `gatsby-source-contentful`, enhancing versatility across various data sources.\n\n## Getting Started\n\n### Installation\n\n```bash\nnpm install gatsby-transformer-unified unified\n```\n\n### Configuration\n\nAdd `gatsby-transformer-unified` to your `gatsby-config.js`, configuring it as needed:\n\n```js\nconst { cachedImport } = require(\"gatsby-transformer-unified\");\n\nmodule.exports = {\n  plugins: [\n    {\n      resolve: \"gatsby-transformer-unified\",\n      /**\n       * @type {import('gatsby-transformer-unified').UnifiedPluginOptions}\n       */\n      options: {\n        processors: {\n          markdownToHtml: async ({ cachedImport }) =\u003e {\n            const unified = await cachedImport(\"unified\");\n            const parse = await cachedImport(\"remark-parse\");\n            const remark2rehype = await cachedImport(\"remark-rehype\");\n            const stringify = await cachedImport(\"rehype-stringify\");\n\n            return unified()\n              .use(parse)\n              .use(remark2rehype)\n              .use(stringify);\n          },\n        },\n      },\n    },\n    // Additional plugins here...\n  ],\n};\n```\n\n### Processor Configuration\n\nCustomize your Unified processors within the plugin's options for specific content transformation needs:\n\n#### Options:\n\n- `processors`: Defines transformation names and corresponding async functions that create Unified processors. This enables dynamic and efficient plugin imports with `cachedImport`.\n\n## Broad Compatibility\n\nDesigned for Gatsby v5, `gatsby-transformer-unified` is engineered to support a wide array of text-based content transformations. It is compatible with `gatsby-source-filesystem` and extends support to all plugins compatible with `gatsby-transformer-remark`, such as `gatsby-source-contentful`. This ensures a versatile application across different data sources.\n\n## Testing and Feedback\n\nWe are exploring `gatsby-transformer-unified` as a viable alternative to `gatsby-plugin-mdx` v2 and encourage community feedback and contributions to assess its capabilities and refine its performance.\n\n## Contribution Guidelines\n\nContributions are welcome! Please review our [contribution guidelines](CONTRIBUTING.md) for details on how to help improve `gatsby-transformer-unified`.\n\n## License\n\n`gatsby-transformer-unified` is distributed under the MIT License. See the [LICENSE](LICENSE) file for more details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashbite%2Fgatsby-transformer-unified","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhashbite%2Fgatsby-transformer-unified","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashbite%2Fgatsby-transformer-unified/lists"}