Create your widget
Three choices, then copy the code.
The preview is real: it shows the channel's numbers right now.
Live preview
Where do I paste it?
- Open the page file.
- Paste the
<div>where you want the widget and the<script>just once, before</body>. - For the bubble, the spot doesn't matter: it always appears in the corner.
- In the page editor add a Custom HTML block.
- Paste all the code and update the page.
- For the bubble across the whole site: Appearance → Widgets, a Custom HTML block in the footer.
- For the bubble: Settings → Custom Code → Add Code, “All pages”, placement “Body - end”.
- For the others: Add → Embed Code → Embed HTML, then “Code”.
- Wix puts the HTML in a frame: give it enough room.
- Add a Code block to the page and paste the code.
- For the bubble across the whole site: Settings → Advanced → Code Injection → Footer.
- Online Store → Customize, add a Custom Liquid section.
- Paste the code and save.
- For the bubble on every page: Edit code, file
theme.liquid, before</body>.
- Layout → Add a Gadget → HTML/JavaScript.
- Paste the code and save.
- Joomla, Ghost, Webflow, Framer, static sites: anywhere you can paste HTML.
- On React, Vue or Svelte you can also use
OrixonChat.mount(el, {...}): you'll find it below, in the developer section.
Five formats
A widget for every corner of your site.
All live, all with the same script. You can use more than one on the same page: the data is downloaded only once.
Card
Your channel on display: people online, today's messages, topic and a button to join.
Best for: Sidebar, "Community" pageThe bubble stays in the corner.
Tap it.
Bubble
A bubble fixed in the corner, on every page. It opens with the channel card.
Best for: The whole site, like support chatsButton
A “Join the chat” button with the number of people online.
Best for: Inside an article, a landing pageBadge
A compact pill: “42 online · #canale”.
Best for: Menu, header, footerThere are — people in the chat.
Count
Just the number of people online, inside your own text.
Best for: “There are 42 people in the chat”No code
Just need a link?
Put it in a post, an email, your bio or behind one of your buttons. It opens the chat straight into your channel.
Each ? becomes a random digit: “Ospite_??” could become Ospite_47. Leave it empty and whoever joins picks their own nick.
Want a short address, like chat.orixon.org/c/dillo? It comes with Level 3 of Orixon Boost.
Try itWhy in its own tab
The chat is at its best full screen.
The widget brings people into the chat, but the chat opens in its own tab. Inside a frame (iframe), sign-in, notifications, microphone and installation don't work well, and on a phone space is tight. If the chat is embedded in an iframe anyway, it shows the “Open the chat” button.
- Sign-in and accountLogin, protected nick and Orixon Plus work with no limits.
- Notifications and appAnyone who wants can install the chat as an app and get notifications.
- Stories, Jam, Watch PartyEvery Orixon 4.0 feature, with the room it deserves.
- Your site stays openIn the other tab, one tap away.
For developers
Everything under the hood.
Attributes, JavaScript, the JSON API and the IRC server. The script is https://orixon.org/cdn/orixon.js: vanilla JS, no dependencies, Shadow DOM.
data-* attributes
| Attribute | Values |
|---|---|
| data-orixon | card · launcher · button · badge · count |
| data-channel | Required. The channel, with or without # |
| data-theme | auto (default, follows the system) · dark · light |
| data-accent | Accent color, e.g. #ec4899 |
| data-lang | it · en (default: the page's language) |
| data-nick | ask asks for the nickname · a pattern like Ospite_?? |
| data-label | Button text, e.g. “Come chat” |
| data-position | right · left (launcher only) |
| data-open | tab (default, new tab) · same |
JavaScript
// React, Vue, Svelte… monta un widget su un elemento OrixonChat.mount(el, { type: 'button', channel: 'dillo', nick: 'ask' }); // aggiorna subito i numeri OrixonChat.refresh(); // prima di aprire la chat (annullabile) el.addEventListener('orixon:join', e => { console.log(e.detail.channel, e.detail.nick, e.detail.url); }); // il link della chat, già pronto OrixonChat.joinUrl('dillo', 'Ospite_??');
Widgets added after the page loads activate on their own.
JSON API
https://orixon.org/widget-api.php?channel=dillo
| Field | Meaning |
|---|---|
| channel | Channel name, e.g. #dillo |
| users_now | People connected now |
| topic | Channel topic |
| messages_24h | Messages in the last 24 hours (null if the data isn't available) |
| messages_7d | Messages in the last 7 days |
| messages_total | Total messages |
| peak_users | Recent peak of people |
| join_url | Direct link to the chat |
| last_updated | Date of the last update (ISO 8601) |
Open CORS, 30-second cache, at most 120 requests per minute per address.
The IRC server
Orixon is an IRC network: your channel can also be reached from traditional clients and bots.
| Server | irc.orixon.org |
| TLS port | 6697 (recommended) |
| Plaintext port | 6667 |
The previous widget
If you use widget-1.js you don't need to do anything: it keeps working. To switch to the new one, just replace the code with the one generated above.
Need something tailor-made?
Sign-in with your own login, multiple channels, an official channel with the badge: the Orixon team works with partners on dedicated integrations.
Frequently asked questions
About the integration
Is the widget free?
Yes, all the widgets and the direct link are free, for any website. You don't need an account and there's no limit on the number of visitors.
Will it slow down my website?
No. The script weighs a few kilobytes, loads asynchronously and doesn't block the page. It fetches the channel data once a minute, only while the tab is open.
Can it break my website's design?
No. Each widget lives in isolation (Shadow DOM): your site's styles don't touch it and its styles don't touch yours. You can choose a light, dark or automatic theme and the accent color.
Why does the chat open in a new tab instead of inside the page?
Inside a frame (iframe), sign-in, notifications, microphone and app installation don't work well, and on a phone space is tight. In its own tab the chat works at its best, and your site stays open in the other one.
Can visitors choose their own nickname?
Yes: with the “Ask for nickname” option the widget shows a field before joining. Alternatively you can assign an automatic nick, like Ospite_??, where each ? becomes a random digit.
Does the channel have to exist already?
No: a channel is created when the first person joins. To manage it, with moderators and settings, register it from the chat. With Orixon Boost it can also have an icon, emotes and a public page.
Will the old widget stop working?
No. Code using widget-1.js keeps working as before. We do recommend the new one, though: it's lighter, has more formats and doesn't need a separate stylesheet.
Does it work on WordPress, Wix and Shopify?
Yes, on any platform where you can paste HTML. Above you'll find step-by-step instructions for the most popular ones.