Skip to content
View MattFor's full-sized avatar
📚
"Let's delve in promptly." - Big Hat Logan
📚
"Let's delve in promptly." - Big Hat Logan

Highlights

  • Pro

Organizations

@EscapeTheBackroomsCommunity

Block or report MattFor

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
MattFor/README.md

Website

Email Codeberg Ko-fi Profile views

C, C++, Rust, JavaScript, Python, TypeScript, Node.js, discord.js, MongoDB, Fastify, HTML, CSS, OpenGL, SDL, Bash, Linux, Void Linux, Raspberry Pi, Podman, Git

I write things that people use.
C, C++ and Rust are my preferred languages; JavaScript and Python are the ones I use most and know best. Currently studying in university.

I'm open to collaboration and contributions.
Everything below is built and maintained in my free time.


My Best Projects

Relaxy! Ecosystem

Everything relaxy.xyz related: the bot, the dashboard, the website and the supplementary services.
A RaspberryPi hosts everything isolated under Podman and bubblewrap.

relaxy.xyz dashboard uptime cdn | users lines of code

Relaxy! Discord Bot

A multipurpose Discord bot running as a sharded fleet with one supervising manager process and N cluster processes. Backend uses MongoDB.

Uses: Node.js v24+, discord.js v14, MongoDB (Mongoose), discord-hybrid-sharding, discord-player (custom fork), node-canvas, ffmpeg, tesseract-ocr.

  • 210,000+ users
  • 192 commands, 58 event handlers
  • Diff-based document storage, multi-process DB workers, local caching
  • OCR-backed and perceptual-hash scam detection on posted images
  • Cross-server role sync, ban appeals and synced moderation over a credential-less handshake
  • One shared implementation behind every moderation action, for the usual moderation, dashboard as well as linked servers
  • Hot reload, rolling restarts and class patching
  • Shard, network and file watchdogs

source

Relaxy! Dashboard

Web dashboard for the bot. Discord OAuth login, three access tiers computed from the OAuth guilds permission bitfield. Has per-user profile customisation as well.

Uses: Fastify, the native MongoDB driver, JavaScript, esbuild.

  • Discord OAuth-based access control with three permission tiers, per-request authorisation checks, per-session CSRF protection and a strict list of modifiable fields
Relaxy! Website

The bot's showcase site, plus the public uptime page. I've designed it from the ground up to be as fast as possible.

Uses: HTML, CSS, JavaScript.

  • 12 pages, ~4,600 lines of JS, ~5,850 lines of CSS
  • Changelog, devlog, technical writeup, CDN, Matrix and Minecraft pages
  • The uptime page is driven by the health feeds published below

source

Relaxy! Additions

The scripts and services that ensure maximum possible uptime. Written for runit on Void.

Uses: Node.js, Python, POSIX shell scripts, nftables, runit, unbound, AdGuard Home, Podman, bubblewrap.

  • Probes 25 services on a ten-second loop and publishes three JSON feeds (one full, one public, one status)
  • Bot failover: a MongoDB lease keeps exactly one bot running, on the Pi when it can, otherwise on my PC or laptop; about 30 s without a bot per switch
  • Network monitor that checks every hop from the Ethernet link to Discord every 15 s and names whose fault an outage is, with 90 days of history
  • internet.mattfor.com: an easy view for my family (is the internet working, whose fault is it, what to do) and a full one for me, open at home and behind a WebAuthn passkey anywhere else
  • Home DNS fallback: AdGuard is supervised, and if it goes silent LAN queries are redirected to unbound within seconds
  • Isolation so a break-in to one service stays in that service: per-container user IDs, network fences, root-owned root code
  • Hardware watchdog that pets /dev/watchdog and heals the Ethernet link, so the Pi reboots automatically on a deadlock; boot-time fsck repairs the disks unattended
  • An uptime ledger with day buckets, incident detection and cause inference, mirrored into a Discord outages channel
  • incident CLI tool for declaring and annotating outages
  • Scripts to keep sshd at the top of the CPU, IO and OOM priority lists, with a self-contained nftables table putting SSH in band 0 at DSCP CS6 to ensure the Pi stays reachable while it is dying
  • SSH status page split into a root collector with no network input and an unprivileged web half
  • error pages generated from the dashboard's own CSS, so I don't have to write new ones by hand every time I change something

Source has been privated... Too many security risks keeping it open - sorry!

Emoji Mixer

npm PyPI crates.io JSR Go Packagist RubyGems NuGet CI source

Library that generates Google Emoji Kitchen combination image URLs from two emojis, for JavaScript/TypeScript (npm and JSR), Python, Rust, Go, PHP, Ruby and C#.

Uses: TypeScript, Python, Rust, Go, PHP, Ruby, C#, GitHub Actions.

  • 130,000+ total downloads
  • 1,225 dependent repositories on GitHub
  • 619 base emojis, 330,640 valid combinations
  • Compact compatibility data is 2.9MB (OG was 96MB!)
  • Every package is tested against the same cases and published from one release workflow

LogEye

PyPI Python CI source

Runtime introspection logger for Python. Reports variable assignments, mutations and function calls as they happen, with no debugger and no instrumentation of the target code beyond a decorator.

Uses: Python 3.8+, sys.settrace introspection.

  • 11,000+ PyPI downloads
  • ~5,600 lines across 12 modules, with 21 test modules and 10 demos, tested on Python 3.8 to 3.14 on Linux, macOS and Windows
  • Educational mode rewrites output into plain sentences for teaching
  • Tracks locals, attribute writes, container mutations, arguments and return values

Lexiglance

AppImageHub Release License CI source

System-wide pop-up dictionary for Linux (X11) and Windows.
Hold a key combination and point at a word in any application to see its definitions. Same dict format as Yomitan.

Uses: C++26, Qt, AT-SPI / UI Automation, PaddleOCR, Tesseract, ONNX Runtime and OPUS-MT.

  • Japanese, Russian, Ukrainian, Korean and Greek, with deinflection (食べさせられなかった finds 食べる)
  • Reads text through accessibility interfaces, or with OCR in games, images and videos
  • Whole sentences translated into English offline, so nothing you read leaves your computer
  • Dictionaries compiled into memory-mapped indexes
  • Pronunciation audio, Anki cards through AnkiConnect, and configurable popup themes
  • Updates itself, has a health check with one-click fixes, and keeps lookup statistics locally
  • No input injection or access to other processes, so it is safe to use alongside anti-cheats
  • Listed in the official AppImageHub catalogue

Simple Project Tracker

Python License CI source

CLI project tracker with Git repo discovery, search/filtering, bulk editing, configurable output, and a background update daemon.

Uses: Python 3.11+.

  • ~11,600 lines across 46 modules, with 23 test modules
  • 19 commands, with aliases and fused short forms (t 12 es blocked)
  • Frecency-based name resolution
  • A separate todo list whose notes can point at projects with @name
  • The database can live in a Syncthing, Dropbox or git folder, with per-machine path roots, and doctor/fix merge projects tracked twice
  • Undoable edits, tui, a background daemon, shell completion for bash, zsh and fish, and a man page
  • Selected for the XERJ Corpus Hub of reference code solutions for coding agents

Other projects

Smaller projects - Tools, libraries and utilities
  • abba (C++26) - Arbitrary Binary Behavioural Anticheat. Memory scanning across Linux and Windows memory maps, a Windows packet monitor that injects a DLL to hook send/recv and validate the traffic, file integrity hashing and INI-driven configuration.
  • moodle-mcp (Python) - MCP server that lets AI agents use a Moodle account: courses, deadlines, grades, files and homework submissions. Reading and changing are separate tools, so every change can wait for your approval. Standard library only.
  • agent-top (Python, X11) - Super+Z popup listing the Claude Code, Codex, Copilot, Cursor and local model sessions open right now, with their subagents, token use and plan limits. Enter jumps to the session's tmux pane or window.
  • hprint (C++23) - Header-only utility for centred terminal headers. Unicode 16 aware widths (emoji sequences, combining marks, escape codes), UTF-8 borders, any output stream, usable at compile time.
  • von-neumann-machine-simulator (Rust, egui/eframe) - Von Neumann architecture simulator with a native GUI.
  • xfce-tiler (Python, X11) - Quadrant, half and directional window tiling for XFCE and xfwm4.
  • mood (Rust, ratatui) - Log 0-10 mood scores with reasons from the terminal, then review them as terminal charts or PNG graphs.
  • ibus-mozc-system (Python, Shell, X11) - Scripts and config that make Japanese input under IBus and Mozc work on a keyboard without dedicated JP keys.
  • x11-mic-monitor (Python, X11, PipeWire) - Hear your own microphone on a mouse button, or record yourself and hear it straight back.
  • path-variable-editor (Python) - Windows PATH editor that works past the 2047-character limit, with backups and a check against other programs' changes before saving.
  • raytracer (C++) - Ray tracer following Ray Tracing in One Weekend.
  • discord-profile-studio (Python, Tkinter) - Designer for Discord Rich Presence and profile widgets with a live preview. Still work in progress!
  • libstrangle-dlsym-fix (C) - Fork of milaq's libstrangle with the __libc_dlsym lookup error corrected making OpenGL work again on latest glibc.
  • download-favourite-discord-gifs (Python) - Downloads exported Discord favourite GIFs, converts to correct formats with magic byte detection.
Unreleased - Projects which will probably never see the light of day
  • Local AI Studio (Rust, ratatui) - Super+R popup for quick questions to local models. Shows timing per reply, has approval modes, and the model can look at the screen, read selected text, search files and search the web.
Personal - Random configs and themes that I use
  • g-mang-hud-mattfor-edition (TF2 HUD) - My modification of a 16+ year old TF2 HUD written in ReScript.
  • .bashrc (Shell) - My .bashrc. System, packaging, media and programming utilities, each documented with what it needs installed.
  • gtk-config (CSS) - My GTK 3 and 4 theme for Void.
  • xfce4-notes-plugin (Vala) - Fork of the Xfce notes plugin: opens any folder of notes (every folder a window), works well with git and Syncthing, reads legacy encodings, scrolls between notes and shows/hides on a shortcut.
Archive - University work and older projects

University

  • university-coursework (C, C++, Python, Jupyter) - Everything from my Computer Science degree, organised by semester.
  • neural-network (C++26) - Feedforward multithreaded neural network written from scratch, with a test suite. (also submitted as the final project for algorithms & data structures)
  • visual-sorter-v2 (C++20, OpenGL [GLFW], SDL3 and ImGui) - Twelve sorting algorithms drawn one comparison at a time. Performance metrics, graphs and more.
  • emergency-department (C++20, POSIX IPC) - A hospital emergency department where every role is a separate process, coordinating purely through message queues, shared memory, semaphores and signals. Final project for operating systems class.
  • numerical-methods-labs (C++) - Numerical methods lab programs.
  • university-dotnet (C#) - Every exercise from the .NET class.

Older projects

Mirrors of my repositories are also available on codeberg.org/MattFor.

Contact

Community

I'm a community manager for Fancy Games, overseeing Escape The Backrooms since 2023. Join our Discord server!
I also own and run the Escape the Backrooms Community organisation GitHub | Codeberg.

Organisation repositories
  • autosplitter (ASL) - The LiveSplit autosplitter for the game, covering versions 5.0+. Auto start, splits on level transitions and cutscenes, load removal, and a paused timer in cutscenes, the main menu and on crashes. Based on uhara by ru-mii.
  • UE4SS (C++) - Our fork of RE-UE4SS.
  • community-wiki - The community wiki: confirmed features, suggestion guidelines, templates for level, item and entity suggestions, and a guide to running the game on Linux.
  • etb-speedrun-bot-v2 (Python) - The speedrunning bot behind the leaderboards and run verification, "The Watcher", originally by @Reokin. Members link their speedrun.com profile and the bot keeps their roles up to date.

Pinned Loading

  1. logeye logeye Public

    Understand exactly what your code is doing in real time, no debugger needed.

    Python 13 1

  2. emoji-mixer emoji-mixer Public

    Get the URL of a Google Emoji Kitchen image for two emojis.

    Go 13

  3. lexiglance lexiglance Public

    System-wide pop-up dictionary for Linux (X11), Windows and macOS.

    C++ 5

  4. relaxy-public-v2 relaxy-public-v2 Public

    A partially redacted, read-only mirror of the Relaxy! Discord bot, published as a showcase that cannot run.

    JavaScript

  5. simple-project-tracker simple-project-tracker Public

    A simple, but very customisable tracker to keep track of your projects, their states and your notes on them.

    Python 1

  6. path-variable-editor path-variable-editor Public

    A simple Python-based GUI tool for managing your Windows PATH environment variable with a friendly way to view, add, edit, delete, and reorder individual entries in both the User and System PATH va…

    Python 1