Socket
Socket
Sign inDemoInstall

chattergun

Package Overview
Dependencies
899
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    chattergun

ChatterGun: Unleash the power of decentralized, real-time chat in any project. A plug-and-play chat solution that brings secure and scalable messaging to websites and applications alike, powered by GunDB.


Version published
Weekly downloads
107
increased by35.44%
Maintainers
1
Install size
8.58 MB
Created
Weekly downloads
 

Changelog

Source

0.0.10

Patch Changes

  • 83642c5: Package

Readme

Source

ChatterGun - Decentralized Real-time Chat Component

ChatterGun Logo

Introduction

ChatterGun is a cutting-edge web component that enables real-time, decentralized chat functionality in your web applications. Powered by GunDB, ChatterGun offers a robust, scalable solution for integrating chat systems that prioritize privacy and data sovereignty.

Key Features

  • Offline first: It doesnt matter if you have access to the internet. gun will save the chats locally(5mb) and sync up when you get back on the internet later. im even checking out if two peers can comunicate to each other without the network it the peers are connected.
  • Decentralized Architecture: Leveraging GunDB, ChatterGun operates without the need for central servers, reducing risks related to data breaches and server downtime.
  • Real-Time Communication: Messages are delivered instantly across the network, ensuring that users experience minimal delay.
  • Easy to Integrate: Designed as a web component, it can be seamlessly included in any HTML page or modern JavaScript framework.
  • No Backend Required: ChatterGun operates entirely client-side, with optional server-side integration for enhanced performance and reliability.
  • Fully Customizable: Style and behavior can be tailored to fit the look and feel of your application.
  • Privacy-Focused: With decentralized data storage, user messages are not stored on a central server, enhancing privacy.

Installation

ChatterGun can be included directly from a CDN or installed via npm:

CDN

Simply include the following <script> tag in your HTML to start using ChatterGun:

<script src="https://cdn.jsdelivr.net/npm/chattergun@0.0.19/index.js"></script>

or NPM (comming soon, not tested)

Install ChatterGun using npm or yarn:

npm install @valiantlynx/chattergun
# or
yarn add @valiantlynx/chattergun

After installation, you can import ChatterGun in your JavaScript project:

import '@valiantlynx/chattergun';

Usage

Once included in your project, you can add ChatterGun to your web page like any other HTML element:

<chat-app></chat-app>

Customization

You can customize ChatterGun using CSS variables for themes or directly manipulate the shadow DOM for more complex customizations.

Example: Setting Theme Colors

chat-app {
  --chat-background-color: #f0f0f0;
  --chat-text-color: #333;
  --chat-button-color: #007bff;
}

Configuring( coming soon and many more)

To configure ChatterGun, set properties directly on the element:

<chat-app peer-list="https://yourcustomrelay.com/gun"></chat-app>

Building From Source (maybe ill build it)

If you prefer to build ChatterGun from the source, clone the repository and run:

npm install
npm run build

This will compile the source files into a distributable format in the dist folder.

Contributing

Contributions are welcome! Please see our GitHub repository for submitting issues or pull requests.

License

ChatterGun is open-sourced software licensed under the MIT license.


For more details and documentation, please visit our official website or the GitHub repository.

Keywords

FAQs

Last updated on 12 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc