Nepa Chat
Self-hosted team chat for internal users. Drop one script tag on any page and the chat bubble appears in the corner. Try it now: click the bubble at the bottom right.
Embed on any website
<script src="/widget.js" defer></script>
That's it. The widget loads its own styles inside a shadow DOM, so it won't clash with your page, and it talks back to this server for everything.
Options
<script src="…/widget.js" defer
data-position="left" <!-- right (default) or left -->
data-color="#0d7a5f" <!-- accent colour -->
data-theme="auto" <!-- light (default), dark, or auto -->
data-open="true" <!-- start with the panel open -->
data-title-badge="false" <!-- don't prefix the tab title with (n) unread -->
></script>
JavaScript API
NepaChat.open(); NepaChat.close(); NepaChat.toggle();
NepaChat.on('message', m => console.log(m)); // 'login', 'logout', 'open', 'close', 'unread'
NepaChat.user // the signed-in user, or null
NepaChat.unread // total unread count
NepaChat.setToken(token) // sign in with a token issued by POST /api/login (for SSO)
Only for your team
- There is no sign-up and there are no chat passwords. People sign in with the account they already have on your main site.
- Visitors of the website never see anything unless they sign in with a team account.
- Channels for everyone, private groups, and one-to-one direct messages.
- A Teams-style layout with Activity (your mentions), Chat and Channels, scaling from a phone to a big screen.
- Everyone can set a profile photo and display name (the avatar at the bottom of the rail).
- Send files, photos and voice notes: attach, paste a screenshot, or drag & drop. Replies, reactions, polls, announcements, reminders, scheduled messages.
- Read receipts, typing, presence (Available / Away / Do not disturb), an offline outbox, and push notifications when installed as an app.
- Drag the bubble anywhere on the page, or pop the chat out into its own window (also at /app).