/gun-c

A gun.js port to C using libwebsockets

Primary LanguageCMIT LicenseMIT

gun-c

A gun.js port to C using libwebsockets, ideal for running on small and embedded devices.

Currently the software is imcomplete, and the first milestone is to understand the Gun protocol and implement an in-memory client capable of serving nodes to a distributed Gun network.

The eventual goal for this project is a full port.

Building

Requirements:

  • gcc
  • cmake
  • libwebsockets or libwebsockets-dev on Ubuntu
  • gdb for debugging and valgrind for leak checking
$ git clone git@github.com:tylerjwatson/gun-c.git
$ cd gun-c
$ mkdir build
$ ./build.sh

Running

build/gun

Credits

This software has integrated code from the following libraries:

Many thanks to the authors and contributors of this code.