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, tmux, Tailscale, Firefox, MCP, Ollama, Git

I write things that people use.
My preferred languages are C, C++ and Rust. JavaScript and Python are the ones I use most and know best. I am a university student.

I am open to collaboration and contributions.
I build and maintain everything below in my free time.


My Best Projects

Relaxy! Ecosystem

Everything for relaxy.xyz: the bot, the dashboard, the website and the support services.
A Raspberry Pi hosts all of it, isolated under Podman and bubblewrap.

relaxy.xyz dashboard uptime cdn | users lines of code

Relaxy! Discord Bot

A multipurpose Discord bot. It runs as a sharded fleet: one manager process supervises N cluster processes.

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
  • Scam detection on posted images with OCR and perceptual hashes
  • Cross-server role sync, ban appeals and synced moderation over a credential-less handshake
  • One shared implementation behind every moderation action: from commands, the dashboard and linked servers
  • Hot reload, rolling restarts and class patching
  • Shard, network and file watchdogs

source

Relaxy! Dashboard

Web dashboard for the bot. Login is through Discord OAuth, and three access tiers come from the permission bitfield of the OAuth guilds. Each user can customise a profile.

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

  • An authorisation check on every request, CSRF protection per session and a strict list of fields that can change
Relaxy! Website

The bot's showcase site and the public uptime page. I designed it from scratch 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 shows the health feeds from Relaxy! Additions (below)

source

Relaxy! Additions

The scripts and services that keep uptime as high as possible. Written for runit on Void.

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

  • Probes 25 services every ten seconds and publishes three JSON feeds: full, public and status
  • Bot failover: a MongoDB lease keeps exactly one bot running, on the Pi when it can, otherwise on my PC or laptop; a switch leaves about 30 s without a bot
  • Network monitor: checks every hop from the Ethernet link to Discord every 15 s and names who is at fault for an outage; it keeps 90 days of history
  • internet.mattfor.com: a simple view for my family (is the internet up, whose fault is it, what to do) and a full view for me; open at home, behind a WebAuthn passkey anywhere else
  • Home DNS fallback: a supervisor watches AdGuard; if AdGuard stops answering, LAN queries go to unbound within seconds
  • Isolation that keeps a break-in inside one service: a user ID per container, network fences, root-owned copies of the scripts that run as root
  • Hardware watchdog: pets /dev/watchdog and repairs the Ethernet link, so a deadlock reboots the Pi by itself; an fsck at boot repairs the disks unattended
  • Uptime ledger with day buckets, incident detection and cause inference, mirrored to a Discord outages channel
  • incident CLI to declare and annotate outages
  • sshd stays first in the CPU, IO and OOM priority lists; a self-contained nftables table puts SSH in band 0 at DSCP CS6, so the Pi stays reachable while it is dying
  • SSH status page in two halves: a root collector with no network input and an unprivileged web half
  • Error pages generated from the dashboard's own CSS, so a style change needs no new pages written by hand

The source is private now. Keeping it open was too much of a security risk.

Emoji Mixer

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

Library that turns two emojis into the URL of their Google Emoji Kitchen image. Packages 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
  • The compatibility data is 2.9MB (the original was 96MB)
  • Every package runs the same test cases, and one release workflow publishes them all

LogEye

PyPI Python CI source

Runtime introspection logger for Python. It reports variable assignments, mutations and function calls as they happen. It needs no debugger, and the only change to the target code is 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 the output as 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), Windows and macOS.
Hold a key combination and point at a word in any application to see its definitions. It reads dictionaries in the Yomitan format.

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
  • Offline translation of whole sentences into English, so the text never leaves the 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 and no 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 a path root per machine
  • doctor and fix merge projects that are tracked twice
  • Undoable edits, a 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 scans across Linux and Windows memory maps, file integrity hashes and INI-driven configuration. On Windows, a packet monitor injects a DLL that hooks send/recv and validates the traffic.
  • 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 each change can wait for approval. Standard library only.
  • agent-top (Python, X11) - TUI and Super+Z popup listing live coding agent and local model sessions on one or more machines. It shows their subagents, token use and plan limits, and Enter jumps to the session's tmux pane or terminal 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) - Desktop simulator of a simple accumulator machine: memory, registers, a CPU and the data bus between them.
  • xfce-tiler (Python, X11) - Quadrant, half and directional window tiling for XFCE and xfwm4.
  • 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) - Plays the microphone back on a mouse button, or records a clip and plays 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. Work in progress.
  • download-favourite-discord-gifs (Python) - Downloads the GIFs from a Discord favourites export, converts video sources to GIF and detects file types from magic bytes.
Forks - Changes to other people's projects
  • flameshot (C++) - Fork of Flameshot. On X11 the selection overlay spans every monitor again, as before Flameshot 14, so one selection can cross monitors.
  • sidebery (TypeScript) - Fork of Sidebery with a fold door: other extensions can read and set the folded branches of a window. Pinned tabs can be tree parents and fold like any other branch. It also installs updates at once, where Sidebery waits for a browser restart. Made for tab-mirror.
  • xfce4-notes-plugin (Vala) - Fork of the Xfce notes plugin. It opens any folder of notes as it is, with one window per folder, and works well with git and Syncthing. It also reads legacy encodings, scrolls between notes and shows or hides all notes on a shortcut.
  • libstrangle-dlsym-fix (C) - Fork of libstrangle, a frame rate limiter for Linux. It fixes the __libc_dlsym lookup error, so OpenGL games work again on the latest glibc.
Unreleased - Projects I will probably never release
  • Local AI Studio (Rust, ratatui) - Super+R popup for quick questions to local models, with timing per reply and approval modes. The model can look at the screen, read selected text, search files and search the web.
  • shared-compute (Rust) - Mesh daemon and CLI for coding agents on several machines. The agents send messages to each other, and jobs run on the machine with the GPU, OS or disk they need.
  • nspire-desktop, nspire-driver and nspire-mcp (Rust) - TI-Nspire calculator support for Linux: desktop software, a USB driver with file manager mounts and OS updates, and an MCP server.
  • plan (Python, JavaScript) - Student timetable built on FK Planer data.
  • risk-miner (Python) - Case base of public water and sewage investments, built from public sources, for risk analysis of a planned investment.
Personal - Configs, themes and tools for my own setup
  • g-mang-hud-mattfor-edition (TF2 HUD) - My modification of a TF2 HUD that is more than 16 years old.
  • .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.
  • agent-tools (Python) - Shell tools for coding agents: multi-file edits, waits, session search, remote commands, TUI, GUI and web page tests. Plain-text output and exit codes.
  • agent-skills - Agent skills: UI checks, releases, dependency updates, disk cleanup, logo design, agent orchestration and a CLI project tracker.
  • mood (Rust, ratatui) - Log 0-10 mood scores with reasons from the terminal, then review them as terminal charts or PNG graphs.
  • tab-mirror (JavaScript) - Real-time tab sync between two Firefox-based browsers through self-hosted relays.
  • mattfor-app (JavaScript, Python) - My one-stop app at hw.mattfor.com: homework, timetable, todo list, mood and the open steps of my projects.
  • bitdeck (Python) - Firmware for two BBC micro:bit V1 boards used as a control panel for coding agents.
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) - Multithreaded feedforward neural network written from scratch, with a test suite. Also my final project for the algorithms and data structures class.
  • visual-sorter-v2 (C++20, OpenGL [GLFW], SDL3 and ImGui) - Twelve sorting algorithms drawn one comparison at a time, with performance metrics and graphs.
  • emergency-department (C++20, POSIX IPC) - Simulation of a hospital emergency department. Every role is a separate process, and the processes coordinate only through message queues, shared memory, semaphores and signals. Final project for the 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 on codeberg.org/MattFor.

Contact

Community

I am a community manager at Fancy Games and have overseen 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, for versions 5.0+. It starts the timer, splits on level transitions and cutscenes, and removes loads. The timer pauses in cutscenes, in 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 Watcher", the speedrunning bot behind the leaderboards and run verification, first written 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