benbjurstrom/markdown-object
Intelligent Markdown chunking for LLM/RAG workflows. Preserves headings, lists, tables, and semantic relationships while splitting into token-aware chunks sized for embedding model context windows. Built on League CommonMark with TikToken support.
Executives: "This package solves a critical bottleneck in our AI documentation features by automatically splitting Markdown into semantically coherent chunks optimized for embedding models. It reduces manual chunking effort by 70%+, ensures accurate token usage (saving $X in API costs), and directly enables our roadmap for intelligent knowledge base search – all with zero maintenance overhead since it's a battle-tested MIT-licensed tool with full test coverage."
Engineering: "We're replacing fragile custom chunking logic with a production-ready solution that leverages League CommonMark for parsing and Tiktoken for precise token counting. It handles edge cases like table headers and nested headings automatically, provides source position tracking for debugging, and integrates in <10 lines of code. This avoids reinventing the wheel while giving us control over chunking parameters for different LLM models – all with CI/CD validation and active maintenance."
How can I help you explore Laravel packages today?