an improved minitox fork
  • C 99.8%
  • Makefile 0.2%
Find a file
2026-04-17 22:15:38 +00:00
.gitignore add gitignore 2018-06-25 16:09:16 +08:00
LICENSE Initial commit 2018-04-16 17:51:10 +08:00
Makefile add Makefile 2018-06-25 15:15:12 +08:00
minitox.c change default bootstrap nodes because they are 8 years old and no longer online 2026-04-17 22:03:37 +00:00
minitox.jpeg add pic 2018-04-16 18:14:07 +08:00
README.md change https://git.mosaiclinux.org/dd/minitox/src/branch/master/minitox.jpeg to https://git.mosaiclinux.org/dd/minitox/raw/branch/master/minitox.jpeg 2026-04-17 22:15:38 +00:00

MiniTox improved

TODO

  • refactor minitox.c following OpenBSD KNR style(9)

minitox

minitox is a minimal client written for toxcore. It's an example of tox client implementation and also a toy which new developers coming to tox can play and start with, therefore getting familiar with the project.

Features

  1. Single file and small codebase;
  2. Fully standalone (No 3rd library needed, only rely on toxcore and system C library);
  3. Covered most APIs of friend & group, and more to come;
  4. Fun to play with (colored text, async REPL, etc.).

Build

If toxcore has been installed into the system path, use

make

Or link it manually (assuming libtoxcore.so exists in TOX_LIB_DIR, and tox.h in TOX_H_DIR/tox):

$ gcc -o minitox minitox.c -I TOX_H_DIR -L TOX_LIB_DIR -Wl,-rpath TOX_LIB_DIR -ltoxcore

Config

To keep things simple, minitox does not provide command line options, except for -h and --help. To change its behaviour, you are encouraged to modify the source file and rebuild. The source file has been heavily commented.