awesome-repositories.com
Blog
MCP
awesome-repositories.com

Descoperă cele mai bune repository-uri open source cu căutare AI.

ExploreazăCăutări recomandateAlternative open-sourceSoftware self-hostedBlogHartă site
ProiectDespreCum realizăm clasamentulPresăServer MCP
LegalConfidențialitateTermeni
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
jonschlinkert avatar

jonschlinkert/gray-matter

0
View on GitHub↗
4,459 stele·161 fork-uri·JavaScript·MIT·5 vizualizărigithub.com/jonschlinkert↗

Gray Matter

gray-matter este o bibliotecă pentru separarea, parsarea și serializarea datelor de configurare structurate în documente bazate pe text. Funcționează ca un extractor de metadate pentru documente care izolează blocurile structurate din corpul principal al unui fișier și ca o bibliotecă de serializare care convertește obiectele de date înapoi în șiruri formatate.

Proiectul suportă extracția blocurilor de metadate YAML, JSON și TOML de la începutul șirurilor sau fișierelor. Include mecanisme pentru identificarea prezenței metadatelor și determinarea limbajului de formatare specific utilizat pe baza caracterelor care urmează delimitatorului de deschidere.

Sistemul este extensibil printr-un motor de parsare bazat pe plug-in-uri și înregistrarea de parsere personalizate, permițând logicii definite de utilizator să gestioneze limbaje de metadate non-standard. Capabilitățile sale acoperă identificarea limbajului de metadate, extracția metadatelor din fișiere și serializarea simetrică pentru a reconstrui formatele originale ale documentelor.

Features

  • Document Metadata Extractors - Separates structured configuration data from the main body of markdown or text files.
  • Configurable Content Parsers - Provides a flexible parser that supports custom delimiters and external engines for non-standard metadata.
  • Front Matter Parsers - Extracts and parses YAML, JSON, and TOML metadata blocks from the beginning of text files.
  • File-Based Metadata Extraction - Loads files from the filesystem and parses front-matter metadata into structured objects.
  • Metadata String Serialization - Converts data objects into formatted metadata blocks and prepends them to content strings using delimiters.
  • Front-Matter Indexing - Extracts metadata formatted as YAML, JSON, or TOML from the start of a string and separates it from the content.
  • Serialization Libraries - Converts structured data objects back into formatted front matter strings for document reconstruction.
  • Pluggable Parsing Engines - Implements a plug-in architecture to support various metadata formats like YAML, JSON, and TOML.
  • Delimiter-Based Splitters - Splits documents into metadata and body sections using specified start and end delimiters.
  • Format Parser Registries - Allows users to register custom parsing and stringifying logic for non-standard metadata formats.
  • Metadata Format Detection - Analyzes the text immediately following the opening delimiter to identify the metadata language.
  • Metadata Parsing Logic - Allows the definition of custom logic to parse and stringify specific metadata languages.
  • Metadata Language Identification - Analyzes strings to determine which metadata language follows the initial delimiter.
  • Metadata Presence Detection - Analyzes strings to determine if they contain a valid metadata block based on specified delimiters.
  • Symmetric Read-Write Pipelines - Ensures consistency between parsing and serialization by using the same engine for both directions.

Istoric stele

Graficul istoricului de stele pentru jonschlinkert/gray-matterGraficul istoricului de stele pentru jonschlinkert/gray-matter

Căutare AI

Explorează mai multe repository-uri excelente

Descrie ce ai nevoie în limbaj simplu — AI-ul sortează mii de proiecte open source selectate în funcție de relevanță.

Start searching with AI

Alternative open-source pentru Gray Matter

Proiecte open-source similare, clasificate după numărul de funcționalități comune cu Gray Matter.
  • metalsmith/metalsmithAvatar metalsmith

    metalsmith/metalsmith

    7,827Vezi pe GitHub↗

    Metalsmith is a Node.js static site generator and static content processor that transforms source files into websites, eBooks, or technical documentation. It functions as a file-to-object transformer, converting directory trees into plain JavaScript objects that can be programmatically manipulated in memory. The project is built around a pluggable build pipeline where files are passed through a sequence of custom functions to transform content and metadata incrementally. This architecture allows users to extend functionality by writing their own plugins or using third-party modules to define

    JavaScriptjavascriptmarkdownmarkdown-to-html
    Vezi pe GitHub↗7,827
  • google/gsonAvatar google

    google/gson

    24,357Vezi pe GitHub↗

    Gson is a Java library designed for the serialization and deserialization of objects into structured text formats. It functions as a reflection-based data mapper, inspecting class structures at runtime to automatically convert memory-resident objects into data representations and reconstruct them back into typed language objects. The library distinguishes itself through a modular type-adapter pattern that allows for custom conversion rules for complex or nested structures. It also provides robust support for production environments by generating build-time metadata and configuration rules, wh

    Java
    Vezi pe GitHub↗24,357
  • toon-format/toonAvatar toon-format

    toon-format/toon

    24,642Vezi pe GitHub↗

    Toon is a data serialization library and toolkit designed to convert complex objects into compact, human-readable formats optimized for large language models. By focusing on token efficiency, the library minimizes the context window footprint of structured data through techniques like key folding and tabular layout optimization. It provides a streaming-capable processor that handles the encoding and decoding of hierarchical data while maintaining structural integrity. The project distinguishes itself through its path-aware transformation pipeline and configurable serialization logic, which al

    TypeScriptdata-formatllmserialization
    Vezi pe GitHub↗24,642
  • nlohmann/jsonAvatar nlohmann

    nlohmann/json

    49,944Vezi pe GitHub↗

    This library is a header-only C++ framework designed for the serialization, parsing, and manipulation of structured data. It provides a recursive variant data model that represents arbitrary structures as native types, allowing developers to navigate, modify, and patch hierarchical data using standard pointer paths and declarative update patterns. The project distinguishes itself through its template-based architecture, which enables type-safe data structures and custom type mapping at compile time. It offers a unified interface for binary format abstraction, supporting multiple compact repre

    C++bsoncborheader-only
    Vezi pe GitHub↗49,944
Vezi toate cele 30 alternative pentru Gray Matter→

Întrebări frecvente

Ce face jonschlinkert/gray-matter?

gray-matter este o bibliotecă pentru separarea, parsarea și serializarea datelor de configurare structurate în documente bazate pe text. Funcționează ca un extractor de metadate pentru documente care izolează blocurile structurate din corpul principal al unui fișier și ca o bibliotecă de serializare care convertește obiectele de date înapoi în șiruri formatate.

Care sunt principalele funcționalități ale jonschlinkert/gray-matter?

Principalele funcționalități ale jonschlinkert/gray-matter sunt: Document Metadata Extractors, Configurable Content Parsers, Front Matter Parsers, File-Based Metadata Extraction, Metadata String Serialization, Front-Matter Indexing, Serialization Libraries, Pluggable Parsing Engines.

Care sunt câteva alternative open-source pentru jonschlinkert/gray-matter?

Alternativele open-source pentru jonschlinkert/gray-matter includ: metalsmith/metalsmith — Metalsmith is a Node.js static site generator and static content processor that transforms source files into websites,… toon-format/toon — Toon is a data serialization library and toolkit designed to convert complex objects into compact, human-readable… google/gson — Gson is a Java library designed for the serialization and deserialization of objects into structured text formats. It… nlohmann/json — This library is a header-only C++ framework designed for the serialization, parsing, and manipulation of structured… assemble/assemble — Assemble is a static site generator and build pipeline system that compiles markdown, templates, and data into static… jekyll/minima — Minima is a Jekyll static site theme and configuration-driven site template. It provides a collection of layouts,…