npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

chattergun

v0.0.10

Published

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.

Downloads

628

Readme

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/[email protected]/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.