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