<ik-comments> widget
A dependency-free Web Component (Shadow DOM, ~7 KB gzipped) served from
cdn.ikomment.com/v1/embed.js.
Attributes
| Attribute | Default | Meaning |
|---|---|---|
data-site-key | — | Your site key (required) |
data-url | canonical URL | Thread identity |
data-title | document.title | Thread title |
data-theme | auto | auto | light | dark |
data-category | — | Scope comments to a category |
Comment counter
<ik-comment-count data-site-key="ik_live_YOUR_KEY"></ik-comment-count>
Theming (CSS custom properties)
ik-comments {
--ik-accent: #0ea5e9;
--ik-accent-fg: #ffffff;
--ik-radius: 12px;
--ik-font-family: Georgia, serif;
--ik-font-size: 16px;
} Per-site defaults are set in the dashboard; page-level vars win.
What's inside
- Threaded replies, sorting (newest / oldest / top), load-more pagination
- Voting (members), emoji reactions, reports, permalinks (
#ik-comment-<id>) - Guest posting (site-gated), magic-link and OAuth sign-in
- Live updates over WebSocket, skeleton loaders, empty states, toasts
- Share to X / Facebook / WhatsApp / Telegram / LinkedIn / copy — zero third-party scripts
Permalinks
Every comment has a short link https://ikomment.com/c/<commentId> that 302s to the page and anchor.