Skip to content
JS
Package

@11ty/gray-matter

Parse front-matter from a string or file. Fast, reliable and easy to use. Parses YAML front matter by default, but also has support for YAML, JSON, TOML Front-Matter, with options to set custom delimiters. Used by metalsmith, assemble, verb and many other

v3.0.0, 29 Jul 2026MITCommonJSTypes: BundledParsers and serialisersDocumentation tooling
$ npm install @11ty/gray-matter

Key numbers

As of 25 Sept 2026
Weekly downloads
429.3k
- over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
1 month ago
v3.0.0
GitHub stars
15
4 forks
Open issues / PRs
2 / 2
Contributors
-
Commits, last 52 weeks
37

No weekly download data in the snapshot.

429,312 downloads last week, 2,048,188 in the last month. No 52-week series has been fetched yet.

Releases, last 12 months
46 in total
Latest version
3.0.0, 29 Jul 20261 month ago
First published
12 May 2025
Last push to GitHub
21 Sept 20263 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
2
Commits, last 52 weeks
37
Dependents on npm
28

Major versions

  1. v3 first release 3.0.0, 29 Jul 2026
  2. v2 first release 2.0.0, 2 Jul 2025
  3. v1 first release 1.0.0, 12 May 2025

Recent releases

VersionPublished
3.0.029 Jul 2026
2.1.016 Jun 2026
2.0.220 Apr 2026
2.0.114 Nov 2025
2.0.02 Jul 2025
1.0.012 May 2025
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=11
Runtimes
-
Unpacked size (npm)
35 kB
Dependencies (2)
js-yamlsection-matter
npm install @11ty/gray-matter
  • jsDelivrhttps://cdn.jsdelivr.net/npm/@11ty/gray-matter@3.0.0/
  • unpkghttps://unpkg.com/@11ty/gray-matter@3.0.0/
  • esm.shhttps://esm.sh/@11ty/gray-matter@3.0.0
PackageWeekly downloadsGzipLast releaseModuleComparison
gray-matter7.1m-5 years agoCommonJS-
@docmd/live10.3k-3 days agoESM only-
@speclynx/apidom-parser-adapter-overlay-json-123.4k-5 days agoESM + CommonJS-
@speclynx/apidom-parser-adapter-overlay-yaml-120.3k-5 days agoESM + CommonJS-
@speclynx/apidom-parser-adapter-openapi-json-223.5k-5 days agoESM + CommonJS-
@speclynx/apidom-parser-adapter-openapi-yaml-3-023.5k-5 days agoESM + CommonJS-
@speclynx/apidom-parser-adapter-openapi-yaml-220.4k-5 days agoESM + CommonJS-
@speclynx/apidom-parser-adapter-openapi-json-3-020.4k-5 days agoESM + CommonJS-
Sources: npm registry, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.