{"schemaVersion":1,"id":"gray-matter","name":"gray-matter","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/gray-matter/","officialUrl":"https://github.com/jonschlinkert/gray-matter","isCatalog":false,"description":"A front matter parser for Markdown and other documents: it extracts metadata for content sites and pipelines.","tasks":["Extract metadata from Markdown documents","Separate metadata and content and pass them to rendering or a content pipeline"],"categoryIds":["backend"],"subcategoryIds":["backend.api"],"tags":["gray-matter","API","Development"],"aliases":["jonschlinkert/gray-matter","gray-matter","graymatter","gray-matter-parser"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under MIT.","paidUsage":"Computing resources, self-hosting, and external services are paid for separately if used.","license":"MIT for the code; dependencies have separate licenses.","selectionGuide":{"purpose":"Extract metadata from Markdown documents","chooseWhen":["Extract metadata from Markdown documents","Separate metadata and content and pass them to rendering or a content pipeline"],"considerInstead":[],"requirements":[],"limitations":["Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.","Terms of use: MIT for the code; dependencies have separate licenses.","Parsing support does not imply built-in reverse serialization for a format; a corresponding engine is needed."],"faq":[{"question":"What can you use for free in gray-matter?","answer":"Code and local use under MIT."},{"question":"What additional costs might arise with gray-matter?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for gray-matter?","answer":"MIT for the code; dependencies have separate licenses."},{"question":"How do you get started with gray-matter?","answer":"Prepare a document with front matter and define metadata fields. Separate metadata and content and pass them to rendering or a content pipeline. Add error handling and an integration check of the result."},{"question":"Can I change the front matter format and save it back?","answer":"The parser separates data, content, and excerpt; YAML is the default, while custom formats use engines and delimiters. stringify supports YAML/JSON by default; another format requires an engine with stringify. matter.read reads a file synchronously."}],"related":[],"sources":["https://github.com/jonschlinkert/gray-matter","https://raw.githubusercontent.com/jonschlinkert/gray-matter/HEAD/README.md","https://raw.githubusercontent.com/jonschlinkert/gray-matter/HEAD/LICENSE","https://www.open-source-tools.com/"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Extract metadata from Markdown documents.","inputs":["A data contract or HTTP workflow.","A project with a supported runtime."],"steps":["Prepare a document with front matter and define metadata fields.","Separate metadata and content and pass them to rendering or a content pipeline.","Add error handling and an integration check of the result."],"checks":["Invalid and missing data are handled predictably.","Types and the actual response agree; errors are not hidden."]},"sources":["https://github.com/jonschlinkert/gray-matter","https://raw.githubusercontent.com/jonschlinkert/gray-matter/HEAD/README.md","https://raw.githubusercontent.com/jonschlinkert/gray-matter/HEAD/LICENSE","https://www.open-source-tools.com/"],"checkedAt":"2026-10-06","reviewScope":"The purpose, current repository license, and separate terms for code, services, and models have been reviewed. The product was not run, and no security audit was performed.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Backend / API library","kind":"library","pricingNote":"Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.","notes":null,"labeledSources":[{"url":"https://github.com/jonschlinkert/gray-matter","label":"Official source"},{"url":"https://raw.githubusercontent.com/jonschlinkert/gray-matter/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/jonschlinkert/gray-matter/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}