Skip to content
LexBuild
On this page

Frontmatter

Every section on lexbuild.dev includes YAML frontmatter metadata at the top of the Markdown file. This metadata describes the section’s identity, source, currency, and legal status. It is visible in the Markdown tab and in the dedicated frontmatter panel above the content viewer.

Frontmatter Panel

The frontmatter panel appears on every section page and provides two views:

  • YAML view — Shows the raw YAML block exactly as it appears in the .md file
  • Preview view — Displays the same fields in a structured grid for easier scanning

Toggle between views using the tabs in the panel toolbar.

The source Field

The source field tells you which legal source produced the section. Its value determines which source-specific fields are present:

Source valueLegal source
"usc"U.S. Code
"ecfr"Code of Federal Regulations (eCFR)
"fr"Federal Register

When consuming frontmatter programmatically, check source first to know which additional fields to expect.

Common Fields

These fields appear on every section regardless of source:

FieldDescription
identifierCanonical URI path (e.g., /us/usc/t1/s1, /us/cfr/t17/s240.10b-5, /us/fr/2026-06029)
titleHuman-readable heading for the section
sourceSource discriminator ("usc", "ecfr", or "fr")
title_numberTitle number as a string (e.g., "1", "17")
section_numberSection number as a string (e.g., "1", "240.10b-5")
format_versionLexBuild output format version
generatorName and version of the generator that produced the file
last_updatedDate the file was last generated
legal_statusCurrent status of the section (e.g., "current", "repealed")

USC-Specific Fields

Sections from the U.S. Code include these additional fields:

FieldDescription
positive_lawWhether the title has been enacted as positive law (true or false)
currencyCurrency statement from the Office of the Law Revision Counsel
source_creditSource credit line citing the originating public law
statusSection status (e.g., "current", "repealed", "transferred")

eCFR-Specific Fields

Sections from the Code of Federal Regulations include these additional fields:

FieldDescription
authorityAuthority citation for the regulatory part
agencyIssuing agency name
cfr_partCFR part number
ecfr_updatedDate the eCFR data was last updated by GPO

FR-Specific Fields

Sections from the Federal Register include these additional fields:

FieldDescription
document_numberFederal Register document number (e.g., "2026-06029")
document_typeType of document ("rule", "notice", "proposed_rule", "presidential")
publication_dateDate the document was published in the Federal Register
agenciesList of agencies associated with the document
fr_citationFederal Register volume and page citation
effective_dateDate the rule or action takes effect
comments_close_dateDeadline for public comments (proposed rules)
docket_idsAssociated docket identifiers
cfr_referencesCFR parts affected by the document

Complete Schema

For the full output format specification, including all field types, constraints, and edge cases, see the Output Format Spec.