2d 3d bot chat cpp csharp demo docker game go gui java javascript k8s lib minecraft mod php proxy video web

Botkit
Thumbnail of Botkit

Source code:
github.com/razzie/botkit

Year: 2023 - 2024

Tags: bot go lib

A Telegram bot library designed to handle commands and dialogs. Both of these support replying with sticker, photo, video, audio, album or file (even files not directly uploaded by the bot). Dialogs are composed of one or more queries, which can be single choice, multi choice or file queries. In theory you could run multiple instances to help balance the load, as long as they share the same Redis database.

Broadcaster
Thumbnail of Broadcaster

Source code:
github.com/razzie/broadcaster

Year: 2023 - 2024

Tags: go lib

Broadcast messages from one channel to many, with timeouts, server sent events and much more. Zero external dependencies. Designed for scenarios when it’s unpractical to connect to the same event source using many parallel connections.

Commander
Thumbnail of Commander

Source code:
github.com/razzie/commander

Year: 2023 - 2024

Tags: bot go lib

Execute Go functions from CLI or from a chatbot. Register any function as a command, then supply a context variable and a string slice as input arguments. If the original function has Context parameter(s), the context variable will be passed, otherwise the arguments from the string slice will be converted using Sscanf. The function’s return values are converted into a []any slice and if any of these values is an error, it will be extracted into a separate error return value.

RazCache
Thumbnail of RazCache

Source code:
github.com/razzie/razcache

Year: 2023 - 2024

Tags: go lib

A minimalist abstraction layer above Redis, Badger and a custom in-memory cache. As many of my self-hosted services rely on Redis for caching or data storage, I often had to fire up a local instance for manual testing. This process was too cumbersone for me, so I figured I could come up with a wrapper around Redis supporting the functionaly only I use the most, and during development it should mimic this functionality in-process. Supporting key expirations was a mandatory requirement, so the in-memory cache implements a “janitor” goroutine that cleans up these keys exactly when they expire, one at a time.

Beepboop
Thumbnail of Beepboop

Source code:
github.com/razzie/beepboop

Year: 2020 - 2022

Tags: go lib web

A lightweight webapp framework that powers Razbox. Most of the original code was taken from Razlink, but it has heavily evolved since. The core mechanic consists of registering pages (which are mostly a template + handler bundle) and returning view objects from inside the handlers. There are some utilities for session handling, access management and logging too, but this library is not suitable for production use.

RazTools
Thumbnail of RazTools

Source code:
github.com/razzie/raztools

Year: 2018-2020

Tags: csharp lib

A collection of reusable helper classes:

  • ArchiveReader and ArchiveWriter, based on Doboz.NET
  • 2 alternative versions of CommandParser
  • FileSystem class that seamlessly integrates local OS filesystem + ArchiveReader
  • ObjectDeserializer to construct objects from a custom text format
  • PluginManager & RemoteLoader simplify interaction with plugins using remoting
  • Timeout class with Expired event
  • XmlReader static class which returns dynamic objects

LibRazzie
Thumbnail of LibRazzie

Source code:
github.com/razzie/librazzie

Year: 2016 - 2018

Tags: cpp lib

A header-only multi-purpose library designed to help me get started with my projects. It includes helpers for logging, events, input, memory, thread and network+serialization and has some additional stuff like: a bitset class with iterators for true and false position, stream manipulators and parsers and an easy to use random number generator. Examples are provided for each of them.

GGlib & GGlib2
Thumbnail of GGlib & GGlib2

Source code:
github.com/razzie/gglib
github.com/razzie/gglib2

Year: 2013 - 2017

Tags: cpp lib