Integrate Orixon · Widget 2

Your community,
on your website.

Show how many people are in your channel and bring them into the chat with one tap. One line of code, no account, free. Works on WordPress, Wix, Shopify and anywhere you can paste HTML.

<div data-orixon="card" data-channel="dillo"></div>

Create your widget

Three choices, then copy the code.

The preview is real: it shows the channel's numbers right now.

2 · The format

3 · The style
Theme
Language
Color
Nickname

Live preview

Paste into your website

        

Where do I paste it?

  1. Open the page file.
  2. Paste the <div> where you want the widget and the <script> just once, before </body>.
  3. For the bubble, the spot doesn't matter: it always appears in the corner.

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" page

The 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 chats

Button

A “Join the chat” button with the number of people online.

Best for: Inside an article, a landing page

Badge

A compact pill: “42 online · #canale”.

Best for: Menu, header, footer

There 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”

Why 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

AttributeValues
data-orixoncard · launcher · button · badge · count
data-channelRequired. The channel, with or without #
data-themeauto (default, follows the system) · dark · light
data-accentAccent color, e.g. #ec4899
data-langit · en (default: the page's language)
data-nickask asks for the nickname · a pattern like Ospite_??
data-labelButton text, e.g. “Come chat”
data-positionright · left (launcher only)
data-opentab (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

GET
https://orixon.org/widget-api.php?channel=dillo
FieldMeaning
channelChannel name, e.g. #dillo
users_nowPeople connected now
topicChannel topic
messages_24hMessages in the last 24 hours (null if the data isn't available)
messages_7dMessages in the last 7 days
messages_totalTotal messages
peak_usersRecent peak of people
join_urlDirect link to the chat
last_updatedDate 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.

Serverirc.orixon.org
TLS port6697 (recommended)
Plaintext port6667

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.

Talk to us

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.