Click the sample buttons to inject rich content. Features marked with * load their renderer from CDN on first use.

Usage

One script tag — everything else loads on demand:

<script src="https://unpkg.com/quikchat/dist/quikchat-md-full.umd.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/quikchat/dist/quikchat.css">

<div id="chat" style="height: 400px;"></div>
<script>
const chat = new quikchat('#chat', (chat, msg) => {
  chat.messageAddNew(msg, 'me', 'right');
});
</script>

Same API as the base build. When the formatter encounters a fenced code block with a language tag, highlight.js is loaded from CDN automatically. Same for math expressions, diagrams, etc.

Three Build Tiers

BuildFileGzippedWhat you get
Basequikchat.umd.min.js~5 KBChat widget, zero deps
Markdownquikchat-md.umd.min.js~9 KB+ basic markdown formatting
Fullquikchat-md-full.umd.min.js~14 KB+ syntax highlighting, math, maps, SVG (loaded on demand)