safechunk 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # safechunk
2
2
 
3
- Intelligent text chunking for Telegram, Discord, and LLMs with Markdown, HTML, and Unicode grapheme safety. Zero runtime dependencies.
3
+ Intelligent text chunking for Telegram, Discord, LangChain.js, LlamaIndex.TS, and LLMs with Markdown, HTML, and Unicode grapheme safety. Zero runtime dependencies.
4
4
 
5
5
  ## Installation
6
6
 
@@ -25,6 +25,17 @@ const telegramParts = chunk(longMessage, {
25
25
  });
26
26
  ```
27
27
 
28
+ ## Built-in Zero-Dependency Adapters
29
+
30
+ ```ts
31
+ import {
32
+ SafeChunkTextSplitter, // LangChain.js compatible
33
+ SafeChunkNodeParser, // LlamaIndex.TS compatible
34
+ sendTelegramChunks, // grammY / Telegraf / node-telegram-bot-api
35
+ sendDiscordChunks, // discord.js
36
+ } from "safechunk/adapters";
37
+ ```
38
+
28
39
  ## Options
29
40
 
30
41
  | Option | Type | Default | Description |