Introducing Kirari ✨
A tiny, DOM-free syntax highlighter for the web.
• 2.9 kB gzipped core
• 48 languages
• custom theme
• Streaming support
• Zero runtime dependencies
Built to be lightweight and customizable.
https://t.co/IrZfpd2QIy
This weekend I built Sendoff - an open source email tool for newsletters and announcements, run from your AI agent. Saves me $852/year.
Ask chat to draft an issue from your notes, shorten the intro or add a button. Your agent writes Markdown; Sendoff turns it into a branded email with a live preview for desktop, mobile, light and dark mode.
Send yourself a test, review the summary, then say “send it.”
→ Import your mailing list, preserving unsubscribes
→ Bring your past issues over with their original HTML
→ Ask your agent for deliveries, clicks, unsubscribes and comparisons
→ Track clicks on your own domain, with likely scanners filtered out
→ Preflight checks for your domain, quota, tests, etc.
It runs in your own Cloudflare and AWS accounts: one Worker, D1 and Queues, with Amazon SES sending from your domain.
Deploy your own instance with 𝚋𝚞𝚗 𝚌𝚛𝚎𝚊𝚝𝚎 𝚜𝚎𝚗𝚍𝚘𝚏𝚏
https://t.co/H829D11LEG
Introducing Kirari ✨
A tiny, DOM-free syntax highlighter for the web.
• 2.9 kB gzipped core
• 48 languages
• custom theme
• Streaming support
• Zero runtime dependencies
Built to be lightweight and customizable.
https://t.co/IrZfpd2QIy
@Hiljaa True, it's nice for streaming. But it can't reach inside a textarea, and it can't do bold or italic. Kirari's tokens already have offsets, though, so a small Highlight API adapter would be easy.
Introducing Kirari ✨
A tiny, DOM-free syntax highlighter for the web.
• 2.9 kB gzipped core
• 48 languages
• custom theme
• Streaming support
• Zero runtime dependencies
Built to be lightweight and customizable.
https://t.co/IrZfpd2QIy
@Hiljaa Kirari renders HTML on the server and at build time, where there's no DOM. The Highlight API needs JavaScript running in the browser, so code would show unstyled until it loads.
@songlairui Agreed. Future editors can stay minimal. Syntax highlighting for humans. Semantic tools and navigation for AI. Kirari already leans that way.
@alspinu Cool, Sourceshot looks nice. Kirari should work pretty well for that. It’s DOM-free so the CLI side is straightforward, and it’s tiny.
Which languages are you mostly using?
Kind of in between. Kirari saves checkpoints at line breaks where nothing is open (strings, comments or JSX). New chunks only rescan from the last checkpoint. If a chunk ends inside a string or comment, rescanning starts where it opened.
This makes streaming much faster: 8 KB of TSX streamed character by character dropped from ~13s to 0.2s, with identical results to full tokenization.
Currently supports JS, TS, JSX, TSX, JSON, JSONC and Python. Other languages still retokenize fully, but checkpoint support can be added if there's demand.
Today we're open sourcing the new Chat SDK, a unified TypeScript SDK for building chat bots across Slack, Microsoft Teams, Google Chat, Discord, and more. Now in public beta.
▲ ~/ 𝚗𝚙𝚖 𝚒 𝚌𝚑𝚊𝚝
Let's see how it works ↓
Important clarification 👇
`satisfies` does NOT affect runtime behavior
It:
• Does NOT merge objects
• Does NOT override values
• Is purely a type-checking feature
Been working on a Design System and ran into a great TypeScript nuance that’s easy to miss 👀
The difference between : ThemeSchema vs satisfies ThemeSchema 🧵⬇️