Skip to content

Projects

This is a selection of personal projects I've made.
You can find more on my GitHub.

Filter by type: All, Library, Web, Miscellaneous

Or by language: All, Javascript, HTML, C

RSFormat

View on Github

Library that offers powerful alternative string formatting and printing for Javascript, building on modern template literals. It's inspired by Rust's formatting helpers, hence the name.

let n = 15,
s = rs`${n} in hex: ${n}:#X`;
// s == "15 in hex: 0xF"

println(rs`${'a'}:>7`);
// prints "      a"

Web Televideo

Link - View on Github

A web-based browser for Televideo, RAI's Italian Teletext service. This project was (admittedly coincidentally) published on Televideo's 40th anniversary.

Project thumbnail for Web Televideo

Xenon

View on Github

A lightweight component system for static HTML, using less than 650 bytes of Javascript. I used it to display my projects on the old version of my website.




PGImg

Link - View on Github

Webtoy that generates unique 19x9 images from text seeds using their SHA-512 hash. It was a small gift to my girlfriend over a summer break from university; I wanted to create something that could be beautiful and unique to her despite the fact that i'm not very artsy.

Project thumbnail for PGImg

rstypes

View on Github

Type-safe implementation of extremely lightweight option and result types for Typescript and Javascript.

function divide(a,b) {
    if (b == 0) return None;
    return Some(a / b);
}

let x = divide(1, 2);
console.log(x.match(
    n => n.toString(),
    () => "Division by 0"
));

unique-enum

View on Github

Runtime-safe alternative to Typescript enums that maintains type safety and ergonomics. Each variant is stored as a unique object rather than a number at runtime which allows for more resiliency and some extra features, while intellisense still works as normal.

const Direction = Enum(
    'North',
    'East',
    'South',
    'West'
);

cpk

View on Github

Modern TOML-based dependency manager and project runner for C, designed around unity (one-file) builds. Inspired by Rust's cargo.

Verbena

View on Github

Javascript library that transcompiles mathematical function definitions to native JS functions, in an end-user-safe way. This was my first parser/compiler-related project.

Shaditor

Link - View on Github

Older project from 2022, a client-side browser GLSL shader editor with flexible controls.