Skip to content

benbjurstrom/markdown-object-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown Object Demo

A demo application showcasing the PHP library markdown-object.

markdown-object-demo test_(1280x720) (1)

What is Markdown Object?

Markdown Object is a PHP library that intelligently parses and chunks Markdown documents for use in Retrieval-Augmented Generation (RAG) systems and embedding models. It maintains semantic coherence while splitting documents into manageable pieces.

Quick Start

Clone the repository:

git clone https://github.com/benbjurstrom/markdown-object-demo.git
cd markdown-object-demo

Install PHP dependencies:

composer install

Install JavaScript dependencies:

npm install

Build frontend assets:

npm run build

Start the development server:

php artisan serve

Then visit http://localhost:8000 in your browser.

Features

Real-time Markdown Processing

  • Parse markdown instantly as you type
  • Visual feedback with processing indicators
  • Configurable chunking parameters

Intelligent Chunking

  • Hierarchical chunking that maintains document structure
  • Configurable target token size (128-8192)
  • Hard cap limits to prevent oversized chunks (256-16384)
  • Accurate token counting for embedding models

Multiple View Modes

Chunks View

  • See your markdown split into semantic chunks
  • View token counts per chunk
  • Track source line positions
  • Copy all chunks in a text-friendly format
  • Breadcrumb navigation showing document hierarchy

JSON View

  • Inspect the complete structured markdown object
  • Collapsible tree view
  • Copy individual values
  • Size indicators for arrays and objects

About

Demo app showcasing the PHP markdown-object package

Resources

Stars

Watchers

Forks

Contributors