Giter Site home page Giter Site logo

fossabot / riddlet-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from afroraydude/riddlet-server

0.0 0.0 0.0 9.52 MB

The server library for Riddlet, the anonymous chat app. A simple, upgradable wrapper for Socket.IO.

Home Page: https://www.npmjs.com/package/riddlet-server

License: Apache License 2.0

JavaScript 100.00%

riddlet-server's Introduction

logo FOSSA Status

riddlet-server

The server library for Riddlet, the anonymous chat app. A simple, upgradable wrapper for Socket.IO.

NPM

docs version Coverage Status Build Status

Go to docs

Installation

Setup is very simple just npm install --save riddlet-server.

Note: nsure you have a C++11 compiler available (available in GCC 4.9+). This allows for node-gyp to build the hashtable dependency that fast-ratelimit and riddlet depends on. (Windows: you may have to install build tools globally using: npm install -g windows-build-tools to be able to compile)

Usage

Here are two simple examples of how you can run Riddlet.

Example #1 - Under an existing HTTP(S) server

var http = require('http');

app = http.createServer();

var riddlet = require("riddlet-server").Riddlet(app)

const port = process.env.port || 8080;
app.listen(port);
console.log("http listening on port ", port);

process.on("uncaughtException", function(err) {
  console.log("Caught exception: ", err);
});

Example #2 - Standalone

var riddlet = require("riddlet-server").Riddlet() // runs on either process.env.port or 8000

process.on("uncaughtException", function(err) {
  console.log("Caught exception: ", err);
});

Connecting

Connecting to your server is simple. Just open up the Riddlet web client located here and enter the URL for for your Riddlet server, including the port if necessary. (ie. http://123.456.78.90:8080) then press "Connect to Server"

Issues

Report issues to the issues tab on GitHub (go here)

Planned

  • OTR (Off the record messaging)
    • Implement crypto library inside the web app and server
    • Allow for usage of sending all messages through an encrypted medium - diffrent keys for different clients
    • Client key changes each use of server (Removed due to redundancy)
  • Small features
    • Allow for more customization of the Riddlet platform with adapters/plugins
      • Allow for overriding of the message handler through adapters
      • Allow for overriding of the authentication system through adapters
    • Allow for async usage of adapter methods
  • Nicknames
  • Custom avatars
  • Private messaging
  • Notifications

License

FOSSA Status

riddlet-server's People

Contributors

afroraydude avatar fossabot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.