{"library":"gatsby-transformer-javascript-frontmatter","type":"library","category":null,"description":"This is a Gatsby transformer plugin designed to extract metadata, commonly known as \"frontmatter,\" directly from JavaScript, TypeScript, JSX, or TSX files within a Gatsby project. It operates by statically analyzing `exports.frontmatter` or `export const frontmatter` declarations using `@babel/parser` and `@babel/traverse`. The current stable version, `5.16.0`, aligns with the Gatsby v5 ecosystem. Its release cadence is tied to the main Gatsby monorepo, receiving updates alongside Gatsby core to ensure compatibility with new Node.js versions (e.g., Node.js 24 support in `5.16.0`) and address security vulnerabilities. Its key differentiator is enabling developers to define content metadata directly within their component or data files using standard JavaScript exports, providing a unified location for code and content configuration, distinct from traditional Markdown-based frontmatter solutions.","language":"javascript","status":"active","version":"5.16.0","tags":["javascript","gatsby","gatsby-plugin","js"],"last_verified":"Wed May 27","install":[{"cmd":"npm install gatsby-transformer-javascript-frontmatter","imports":["// in gatsby-config.js\nmodule.exports = {\n  plugins: [\n    {\n      resolve: `gatsby-source-filesystem`,\n      options: {\n        name: `pages`,\n        path: `${__dirname}/src/pages/`,\n      },\n    },\n    \"gatsby-transformer-javascript-frontmatter\",\n  ],\n};","export const frontmatter = {\n  title: \"My Page Title\",\n  date: \"2023-01-15\"\n};","exports.frontmatter = {\n  title: \"Another Page\",\n  category: \"development\"\n};"]},{"cmd":"yarn add gatsby-transformer-javascript-frontmatter","imports":[]},{"cmd":"pnpm add gatsby-transformer-javascript-frontmatter","imports":[]}],"homepage":null,"github":"https://github.com/gatsbyjs/gatsby","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/gatsby-transformer-javascript-frontmatter","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/gatsby-transformer-javascript-frontmatter/compatibility"}}