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

reactjs-chatapp

v1.0.22

Published

Most popular chat component for react!

Downloads

40

Readme

Simple Chat based on ReactJs using SocketIO

screenshot of sample

English Instructions:

Warning My time is becoming limited. If you want improvements, please help me make that happen and donate some of your time to this project.

This project aims to be a plug&play server that all you'll need to do is import the component. and use it. Let me know if you struggle to install it. Unlike the other Reactjs chat apps this will stand alone and you don't really have to combine with the nodejs back end. In reality you just have to have a javascript socket listening on port 9000.

If you want to help or file a bug report , please check github

####Demo and make test code, git clone this from

https://github.com/ApertureSecurity/Reactjs-Chat-Component

and make your changes in the Reactjs-Chat-Component/Frontend/demo/chatapp.js file. and run

npm install
npm start

The server is located in Reactjs-Chat-Component/index.js you can just cd to the directory and run

node_modules/nodemon/bin/nodemon.js  index

###INSTALL To install Frontend, go to the Frontend folder and run

npm install

This will pull down all the node packages needed.

Then simply just import the component.

import  Chatapp    from "reactjs-chatapp";

for the back end, you can install the back end using npm install. Afterwards, you can run the server using nodemon. to run it.

node_modules/nodemon/bin/nodemon.js  index

I have added a link to my index.html in my reactjs project to reference the stylesheet. You can of course change this to your liking.

<link rel="stylesheet" type="text/css" href="./chat-style.css">

If you don't want to use our back end here is a simple nodejs server code snippet that will work with this. You should be able to simply copy this and paste it into your server app. It listens on port 9000 by default.

(github server link)[https://github.com/ApertureSecurity/Reactjs-Chat-Component/blob/master/index.js]

<Chatapp authenticated="true" MainRoom="Global Chat"  servername="SlaBot" welcomemessage="Welcome to ChatApp (^=^)" uri="http://localhost:9000"  hardpath="/socket.io" reconnect="true" resource="/" secure="false" />

###Known issues: warnings upon install: This is normal

+-- [email protected]
| +-- UNMET PEER DEPENDENCY react@^16
| `-- UNMET PEER DEPENDENCY react-dom@^16
`-- UNMET PEER DEPENDENCY socket.io-client@^1.4.5

Things to add:

  • [x] 1. Emoji use.
  • [x] 2. Private chat.
  • [x] 3. User selection in chat.
  • [x] 4. More styling.
  • [x] 5. Make this an NPM module.
  • [ ] 6. Check for duplicate user names.
  • [ ] 7. Use Cookie based authentication.