Skip to content

Repository files navigation

KleenChat

Free, open-source embeddable chat widget. One script tag — visitors see a floating widget with links to your WhatsApp, Slack, Telegram, LinkedIn, and more.

No backend. No accounts. No nonsense.

Quick Start

<scriptsrc="https://unpkg.com/kleenchat/widget.js"
data-whatsapp="https://wa.me/1234567890"
data-slack="https://join.slack.com/..."
data-linkedin="https://linkedin.com/in/you"
defer></script>

That's it. Widget auto-detects channels from data-* attributes.

Supported Channels

ChannelAttributeExample URL
WhatsAppdata-whatsapphttps://wa.me/1234567890
Slackdata-slackhttps://join.slack.com/...
LinkedIndata-linkedinhttps://linkedin.com/in/you
Telegramdata-telegramhttps://t.me/username
Emaildata-emailmailto:hello@example.com
Messengerdata-messengerhttps://m.me/pagename
Xdata-xhttps://x.com/handle
Discorddata-discordhttps://discord.gg/invite
Calendlydata-calendlyhttps://calendly.com/you

Customization

For custom headings, avatars, colors — set window.kleenchat before loading the script:

<script>window.kleenchat={heading: "Chat with us ✌️",subtitle: "Pick your platform",fabHeading: "Need help?",fabSubtitle: "Real person here 👋",avatars: ["avatar1.jpg","avatar2.jpg"],ctaLabel: "Book a demo",ctaUrl: "https://cal.com/you",theme: {primaryColor: "#6366f1"},};</script><scriptsrc="https://unpkg.com/kleenchat/widget.js" data-whatsapp="..." defer></script>

Config Options

OptionTypeDefault
headingstring"Chat with us"
subtitlestring"Pick your preferred channel"
fabHeadingstring"Need help?"
fabSubtitlestring"We typically reply in minutes"
avatarsstring[][]
ctaLabelstring
ctaUrlstring
theme.primaryColorstring"#6366f1"

Self-Hosting

npm install kleenchat
# Copy node_modules/kleenchat/dist/widget.js to your static files

Development

bun install
bun run build # builds dist/widget.js
bun run dev # vite dev server# Site (kleenchat.com)cd site
bun install
bun run dev

License

MIT

About

Embeddable chat widget with links to your support channels

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages