Anonchat-v2 - Anonchat - A microprotocol for communication build on Dart using sockets

Overview

AnonChat

Originally made by Arslee on arslee07/anonchat.

What's this?

Anonchat is a microprotocol for communication build on Dart using sockets.

A server acts as a message distributor between the connected clients, while a client can send and recieve messages

A typical v2 message looks like this:

{"user": "calamity", "msg": "hey, how you doing today?"}

Building

If you want to build the client and the server, you need to get the Dart SDK (https://dart.dev/get-dart) and git

For running the server you need to port-forward the port you are going to choose to run the server.

Instructions:

# 1. Clone the repository
git clone https://github.com/anonchat-org/anonchat-v2.git
cd anonchat-v2

# 2. Build the executables
#    If you want to build for other platforms - see `dart compile`
#    A build script is provided - `./build.sh`
mkdir build
dart compile exe anonchat-server/bin/anonchat_server.dart -o build/server && chmod +x build/server # for server
dart compile exe anonchat-cli/bin/anonchat_cli.dart -o build/cli && chmod +x build/cli # for cli client

The built executables will be in the build folder.


Running

After you've downloaded the binaries from the releases, put them where you need to.

Let's say you need to connect to a server, which has an ip of example.com and port of 2345.

Example: ./cli example.com:2345

By default this is going to give you the nickname of Anon, but if you need to identify yourself - you can add a parameter of a nickname

Example: ./cli example.com:2345 bob


Feel free to open an issue/PR if you have anything to say/ask!

You might also like...

Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.

Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.

Official Flutter packages for Stream Chat Quick Links Register to get an API key for Stream Chat Flutter Chat SDK Tutorial Chat UI Kit Sample apps Thi

Dec 25, 2022

Learn to build a basic app layout using only Flutter & Dart

Learn to build a basic app layout using only Flutter & Dart

basic-flutter-layout Created by Thai Duong Do (Tad Wilson) for non-commercial pu

Oct 12, 2022

A clone of CRED application. Build using Flutter and Dart

A clone of CRED application. Build using Flutter and Dart

CRED Clone in Flutter This is a clone of CRED application. Build using Flutter a

Dec 2, 2022

A super effective dart library delivering performance & ensuring greater build speed.

A super effective dart library delivering performance & ensuring greater build speed.

A super effective Dart and Flutter library for delivering performante app šŸŒ & ensuring greater build speed šŸš€ . The package has some cook utilizes wh

Nov 22, 2021

A Dart Build Plugin that uploads debug symbols for Android, iOS/macOS and source maps for Web to Sentry via sentry-cli

Sentry Dart Plugin A Dart Build Plugin that uploads debug symbols for Android, iOS/macOS and source maps for Web to Sentry via sentry-cli. For doing i

Jan 4, 2023

Easily build and deploy your Dart web app to GitHub pages

Run flutter build web or dart pub run build_runner build and put the output in another branch. An easy way to update gh-pages. Install $ dart pub glob

Dec 20, 2022

A Dart micro-library for asserting at build time.

A micro-library for asserting at build time. It's a common practice to configure a Dart app using const (build-time) values. There are benefits to thi

Oct 14, 2022

Build with Dart, Flutter and GetX

InstalaĆ§Ć£o: como configurar o projeto; Design System: nosso design system; Boas PrĆ”ticas: controle de versƵes utilizando GitFlow; InstalaĆ§Ć£o git clone

Jan 20, 2022
Comments
  • server MOTD implementation

    server MOTD implementation

    • server can now display a MOTD
    • configured in variables of the anonchat_server.dart file
    • MOTD sent as a v2-style packet

    will implement a turn-off toggle in server settings if this looks good enough

    opened by Calamity34 3
  • server configuration file

    server configuration file

    • added pretty_json for nice json output
    • added config function
      • checks if file exists, if not - creates it with default params
      • if it exists - returns config as a Map
    • removed --motd flag, as it is now moved to the config
    • fixed a few comments
    • changed the dart sdk minimum version to 2.14.4

    closes #3

    opened by Calamity34 1
Releases(v2.4.2)
Dart package to which makes data communication easy among different modules of your application.

LiveStream - Dart LiveStream is a data holder class which can observe change of data in real-time and emit values too. Here's emitter subscriber patte

Shreyas Patil 75 Sep 28, 2022
Powerful, helpfull, extensible and highly customizable API's that wrap http client to make communication easier with Axelor server with boilerplate code free.

flutter_axelor_sdk Powerful, helpful, extensible and highly customizable API's that wrap http client to make communication easier with Axelor server w

Abd al-Rahman al-Ktefane 5 Dec 25, 2022
Allows communication between your bot and the Web App built in Flutter displayed inside Telegram.

tele_web_app It enables communication between your bot and the Flutter-embedded Web App displayed inside Telegram by making use of interoperability be

Yeikel Uriarte Arteaga 16 Dec 8, 2022
A Flutter plugin that allows communication with a Parse Server

Parse For Flutter! Hi, this is a Flutter plugin that allows communication with a Parse Server, (https://parseplatform.org) either hosted on your own s

Doğuş Dicle 0 Apr 14, 2022
This a library to simplify isolate thread communication.

This a library to simplify islate thread communication. It abstracts the data transfer between islate and the main thread into a simple channel, and t

å“ę„šč”” 3 Oct 31, 2022
An example of "reactive/streaming repository" as a solution for BLoC to BLoC communication

Reactive Repositories An example of listening to a Stream from repository layer (instead of explicitly using get/fetch) as a solution for BLoC to BLoC

Sandro Lovnički 11 Jan 3, 2023
Easily build your Widgets, Avoid parenthesis nesting, easy to build UI, A little like swift-ui.

tenon_mortise Easily build your Widgets, Avoid parenthesis nesting, easy to build UI, A little like swift-ui. Getting Started Usage To use this plugin

JieLiu 4 Dec 15, 2022
A build system for Dart written in Dart

These packages provide libraries for generating, compiling and serving Dart code. Getting started with build_runner General FAQ Windows FAQ FAQ for Bu

Dart 676 Dec 24, 2022
Simple Dart package with build-in code generation. It simplifies and speedup creation of cache mechanism for dart classes.

Simple Dart package with build-in code generation. It simplifies and speedup creation of cache mechanism for dart classes.

iteo 37 Jan 2, 2023
Intel Corporation 238 Dec 24, 2022