{"repo":"daviddominguezh/llm-markdown-whatsapp","free":true,"listed":false,"github":"https://github.com/daviddominguezh/llm-markdown-whatsapp","clone":"git clone https://github.com/daviddominguezh/llm-markdown-whatsapp.git","description":"A TypeScript library that splits LLM-generated markdown into WhatsApp-friendly chat message chunks.","language":"TypeScript","stars":16,"topics":["formatting","llm","markdown","strings","whatsapp"],"license":"MIT","category":"ai-agents","readme_excerpt":"LLM Markdown WhatsApp A TypeScript library that splits LLM-generated markdown into WhatsApp-friendly chat message chunks. Problem • Quickstart • Features • Splitting Rules • API Reference --- The Problem LLMs generate long, structured markdown responses—paragraphs, numbered lists, product cards, nested bullet points. Sending these as a single WhatsApp message creates a wall of text that users won't read. Naively splitting at character limits breaks mid-sentence, mid-list, or mid-URL. Splitting at every period creates fragmented messages that feel robotic. Neither approach understands the structure of the content. Additionally: - URLs, emails, and numbers contain periods. Splitting at Nike.com.co or $1.000.000 or juan.perez@gmail.com produces broken fragments. - Lists should stay together. A numbered list of products or a bullet list of options is a single logical unit—splitting inside an item destroys readability. - Questions need context. A short trailing question like \"¿Te interesa?\" should stay attached to the preceding sentence, not become its own tiny message. This library handles all of this. One function call, zero configuration. Pass in the LLM's markdown output, get back an array of WhatsApp-ready message chunks. How It Works The library takes a markdown string and splits it into an array of smaller chunks optimized for chat readability. It applies a priority-ordered chain of processors: 1. Pre-processes text (normalizes inline lists, removes periods after URLs) 2. T","default_branch":null,"files":null,"tree":[],"storefront":"/r/daviddominguezh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/daviddominguezh/llm-markdown-whatsapp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}