Skip to content

Instantly share code, notes, and snippets.

View creationix's full-sized avatar
💚
<3

Tim Caswell creationix

💚
<3
View GitHub Profile
@creationix
creationix / proposed-git-websocket-protocol.md
Last active April 3, 2026 19:03
Proposed Git WebSocket Protocol

WebSocket Object Sync Protocol for Git

Note

An experimental alternative to the Git Smart HTTP protocol, not a replacement. Both protocols can coexist, sharing the same backing object store.

Instead of packfiles, clients sync individual git objects over WebSocket. The server becomes a thin proxy over any content-addressable object store — no git library needed server-side.

Rex Edge Server (rex-serve)

Context

Rex has a working Rust compiler and interpreter (rex-core) with a HostObject trait, refs system, opcodes, and gas-bounded execution -- all the primitives needed to run untrusted Rex programs as HTTP handlers. The existing samples/http-domain/ already demonstrates HTTP routing patterns in Rex. This plan designs the server that makes those patterns real: a filesystem-routed HTTP server where .rex files are edge functions.

Architecture

New crate: crates/rex-serve/

RXB Binary Format — Implementation Plan

Context

RX is a right-to-left text encoding for JSON-shaped data. We want a binary variant (RXB) that is smaller and faster by:

  • Replacing ASCII tag characters with integer tags packed into LEB128 varints
  • Using base-128 varints instead of base-64 encoded numbers
  • Adding a hexstring type for lowercase hex data (hashes, UUIDs)

Format Design

You are a coding assistant with access to tools.

Tool Calls

To use a tool, write a line starting with > then STOP and wait:

> tool arg1 arg2 ...
@creationix
creationix / gods-light-plan-perfect-justice.md
Last active August 16, 2025 18:25
God's Light, God's Plan, God's Perfect Justice

"God's Light, God's Plan, God's Perfect Justice"

Good morning church family! You know those deep questions people ask me after service? "What about my grandmother who never really heard the gospel? What about good people who aren't Christians? What really happens in the end times?" I think God wants us to understand His plan more clearly than we sometimes do.

Let me start with this beautiful truth that's revolutionized my understanding - Jesus Christ is literally "the light which is in all things, which giveth life to all things, which is the law by which all things are governed." When you see the sunrise, you're witnessing Christ's power. The stars, the moon - that's His glory manifest. He's not just our personal Savior; He's the sustaining force behind all creation. No wonder Paul said "in him we live, and move, and have our being."

And here's something that should liberate every student and parent - God doesn't want us choosing between intellectual growth and spiritual growth. "Seek learning, even

@creationix
creationix / what-really-happens-next.md
Created August 16, 2025 14:31
What Really Happens Next? A Deeper Look at God's End-Time Plan

"What Really Happens Next? A Deeper Look at God's End-Time Plan"


Good morning, church family. You know, I've been thinking a lot lately about those conversations we have after service - the ones where someone pulls me aside and asks, "Pastor, what about my grandmother who never heard the gospel clearly? What about that neighbor who's a good person but not a Christian? What really happens in the end times - because honestly, Revelation is pretty confusing?"

Those are great questions. And I think God wants us to understand His plan more clearly than we sometimes do.


@creationix
creationix / the-light-that-fills-all-things.md
Last active August 16, 2025 14:25
"The Light That Fills All Things" A Sermon on God's Universal Presence and Our Response

"The Light That Fills All Things"

A Sermon on God's Universal Presence and Our Response


Opening Prayer & Scripture

"In him was life; and the life was the light of men. And the light shineth in darkness; and the darkness comprehended it not." - John 1:4-5


//////////////////////////////////////
// //
// JS domBuilder Library //
// //
// Tim Caswell <tim@creationix.com> //
// //
//////////////////////////////////////
// Modern version using TypeScript and ES6 features
@creationix
creationix / etching-thin.svg
Last active October 9, 2024 03:50
Hexy Compute Shell
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
const start = 0x2800; // Braille pattern blank
for (let i = 0; i < 16; i++) {
let line = "";
for (let j = 0; j < 16; j++) {
line += String.fromCodePoint(start + i * 16 + j);
}
console.log(line);
}