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

Json2Go
Thumbnail of Json2Go

Try it here:
json2go.razzie.cloud

Source code:
github.com/razzie/json2go

Year: 2023 - 2024

Tags: docker go web

A webapp that helps you write Go client libraries for JSON web APIs. One of my experiments required building a database that included data from many third party JSON web APIs. The process of deserializing data into manually crafted Go structs quickly got exhausting, so I had to come up with a solution. Json2Go is by no means perfect (it only looks at the fields of the first item of a JSON array), but it gets the job done. You can input a JSON or a URL that returns a JSON. Field names are automatically converted into camel case, stripped of unsupported characters and correctly annotated with the original name. The resulting generated structure is formatted and uses syntax highlighting.

Personal website

  • 2015 version

    The site made use of user friendly URLs (thanks to Apache web server’s mod_rewrite) and loaded pages dynamically via jQuery’s AJAX API. A server side PHP script automatically parsed the static HTML pages for sections, which could then be accessed individually by the user. It wasn’t very CPU friendly, but made it easy for me to add new content to the page without using a database. Later my Twitter feed was integrated as a news feed, using OAuth and Twitter’s API.

  • 2018 version

    Implemented in C# using NancyFX and a brand new design. It used Github API to list my latest open-source interests and contributions. Project data was stored in XML.

  • 2019 version

    Everything completely rewritten in Go. Data was still stored in XML files initially, but later all the content (including resume) was moved to a single yaml file, which was periodically updated directly from the repository.

  • 2024 version

    Completely rewritten everythign again, using Go + PicoCSS + HTMX stack. It supports light and dark themes (based on user preferences reported by the browser) and features HTMX boosted page loads and loading spinner. Project data is stored in individual yaml files, everything else is in HTML templates. It does not rely on third party feeds anymore.

Raz-Stack
Thumbnail of Raz-Stack

Source code:
github.com/razzie/raz-stack

Year: 2022 - 2024

Tags: docker k8s web

A simple Kubernetes stack that hosted many of my own projects plus an email service (Dovecot + Postfix) and Nextcloud. The goal of this project was simplified deployment and cost saving, without horizontal autoscaling, though I picked K8s to be able to scale in the future. Many of the hosted webapps used a shared Redis (Kvrocks) instance with separate namespaces, thanks to k8s-db-operator. Deployment was done via Helmfile and Helm under the hood, but it was managed by a Makefile to make things even simpler.

0x40 Hues
Thumbnail of 0x40 Hues

Try it here:
hues.razzie.cloud

Source code:
github.com/razzie/0x40hues

Year: 2023

Tags: docker go javascript web

I’ve come across Kepstin’s amazing 0x40hues project and caught myself listening to it a lot. After finding community resource packs to try, it quickly became troublesome to configure and run them. This motivated me to fork the project and after a great deal of refactoring, it now supports loading many respacks and on-the-fly configuration.

RazChess
Thumbnail of RazChess

Try it here:
chess.gorzsony.com
chess.razzie.cloud

Source code:
github.com/razzie/razchess

Year: 2022 - 2023

Tags: docker game go javascript web

I’ve had a sudden spark of interest in chess as of late 2022 and decided to build my own web chess app with focus on simplicity and ease of use. Also I didn’t want to waste time convincing friends to register to [insert your favorite chess platform here]. With RazChess you just visit the website, copy the link of the session and pass it to the person you want to play with. As weeks passed I kept adding new features like chess puzzles (mate in two steps), Fischer random (chess960) game, included chess openings encyclopedia, custom games and the ability to download your matches as GIFs. There is also Redis support to restore active games after a restart.

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.

Razvhost
Thumbnail of Razvhost

Source code:
github.com/razzie/razvhost

Year: 2020 - 2022

Tags: docker go proxy web

Virtual hosting/reverse proxy with TLS termination and automatic certificate management. It supports proxying, file/directory serving, redirection, accessing SFTP or S3 buckets, hosting PHP projects or even tailing log files. The configuration is loaded from a single file that contains simple hostname -> target rules, where even templates are supported (check readme in repo). Changes to the config files are detected and applied during runtime. It can even watch Docker containers with VIRTUAL_HOST and VIRTUAL_PORT environment variables and direct traffic to them (though it would’ve been better to check labels instead, but it didn’t cross my mind at the time).

Razbox
Thumbnail of Razbox

Source code:
github.com/razzie/razbox

Year: 2020 - 2021

Tags: docker go web

Super simple cloud file storage with almost zero configuration - powered by Beepboop Razbox stores all configuration and metadata in JSON files on the local filesystem and doesn’t rely on a relational database (though it has opt-in support for Redis caching). Each folder can contain a .razbox file (which can be generated by included tools) and the content is ready to be served. Read and write access to these folders can rely on separate passwords, so you can share read access only if you want. Subfolders are also supported and they inherit the read/write passwords, unless a .razbox file is generated for them. Uploaded files can have an arbitrary number of tags that allow filtering. Thumbnails are generated for media files (using ffmpeg for videos!), which are visible in gallery view. Some archive formats are also supported for read-only browsing. Individual files can be shared publicly, this making them readable without any password.

Geoip server
Thumbnail of Geoip server

Try it here:
geoip.razzie.cloud

Source code:
github.com/razzie/geoip-server

Year: 2020

Tags: docker go web

A web service that serves IP address geolocations in JSON format. Instead of relying on a local database it collects data from a (configurable) series of 3rd party providers, converting the results to a commom format. It supports provider fallbacks and caching.

Mediaserver
Thumbnail of Mediaserver

Source code:
github.com/razzie/mediaserver

Year: 2020

Tags: docker go web

A web service that fetches thumbnails with title from URLs. Originally planned to use it in a chat service to prevent the tracking of users by letting them download images directly.

Razproxy
Thumbnail of Razproxy

Source code:
github.com/razzie/razproxy

Year: 2020

Tags: go proxy web

SOCKS5 tunneled through TLS connection. The project consists of a custom server and client, which enable encrypted traffic between them. The client opens a SOCKS5 port locally which can be used by multiple applications (like web browsers) running in parallel.

RazTalk

A simple lobby/channel based registration-free webchat. Implemented using NancyFX + Razor + SignalR stack and relies on RazTools to support dynamic loading of bot libraries during runtime. The repo contains (outdated) bot implementations for CleverBot, Giphy, Imgur and Reddit. There is also a standalone desktop client, which is just a wrapper around the web interface.

Flyff fansite
Thumbnail of Flyff fansite

Source code:
github.com/razzie/hobby-projects/2007/flyff

Year: 2007 - 2010

Tags: php web