Docs
Chat layouts
<script src="https://live2d.noiselimited.com/v1/nikoori.js"
data-key="pk_live_your_key"
data-layout="duet"
async></script>Default: stage. An unknown value logs a warning and falls back to it. Layouts apply to data-mode="chat" only — avatar mode has no panel to lay out.
Stage — the visual noveldefault
The character fills the panel and her reply sits in a bordered dialogue box over her, the way a visual novel reads. Earlier turns are behind an “Earlier messages” button.
Use it when: The default, and the right choice when the character is part of your brand — games, anime, creators, anything where people came for her as much as for the answer.
data-layout="stage" · newest line in its own live area · transcript in a drawer
Companion — face plus history
The character takes the top 58% of the panel, the last few turns sit below her, and the whole panel takes a tint from what she is feeling.
Use it when: Support conversations where people scroll back — order numbers, troubleshooting steps — but you still want the face large.
data-layout="companion" · newest line in its own live area · transcript always visible
Duet — the caption
One column, no boxes. The visitor’s line floats above her shoulder, her reply is a caption under her chin, and the emotion becomes a soft light behind her head.
Use it when: Quiet, premium sites where a chat box would look like an advertisement. It reads as one picture rather than a conversation log.
data-layout="duet" · newest line in its own live area · transcript in a drawer
Classic — the transcript
A small avatar strip above an ordinary chat log. No live line, no drawer.
Use it when: When the widget replaces an existing chat tool and you need it to feel familiar to people who used the old one. Also the safest with long, technical answers.
data-layout="classic" · newest line at the end of the transcript · transcript always visible
Try them
The playground switches layout on a live widget, so you can see all four with your own accent colour before you commit to one.
What every layout shares
- The same DOM. Only CSS and two behaviour flags change, so no layout is slower or less accessible than another. The reply is announced to screen readers the same way in all four.
- Emotion as colour. The panel carries a colour for the current feeling — yellow happy, blue sad, red angry, orange surprised, green relaxed, your accent for neutral. Never colour alone: the face says it too.
- Speaking pace. The reply is revealed at about the speed she can say it, feeding the same characters to the mouth, so words and lips are one performance. Clicking her line skips to the end.
- Under 480px the panel fills the screen with an 8px margin, in every layout.
data-accent colours the launcher, the visitor's bubbles and the send button in all four layouts; the emotion colours sit on top of it and are ours.