Marrakesh, Moroccolocal --:--building @thexjs ↗

Searching for logic in a world of syntax errors.

This page is one Collatz orbit. n = 27 takes 111 steps to reach 1 and peaks at 9,232. Scroll to follow it.

8@thexjs packages
1client platform live
1kernel CVE written up
111steps from 27 to 1

01 / about27 × 3 + 1 = 82

Hello, stranger.

I'm a student in Marrakesh, and outside of coursework I design and ship software on my own.

Micro-SaaS, educational platforms, open-source tools, whatever I'm curious about that month.

I'm drawn to privacy and network-security tooling, and to math I can actually sit with and work through rather than skim. I'd rather build something from scratch and understand every layer of it than stitch frameworks together, which is basically why @thexjs exists. It's my own full-stack framework, and I run it in production on my own projects.

02 / building82 ÷ 2 = 41

@thexjs, from scratch.

A meta-fullstack framework, the kind you'd usually compare to Next.js or Remix rather than call a simple SSR wrapper. I built it myself on Bun and React SSR, shipped as a monorepo, and I run it in production on my own projects.

BunReact SSRmonorepoislands
01 / 08

@thexjs/core

Runtime: file-based routing, SSR/SSG, islands, server functions.

bun add @thexjs/core
02 / 08

@thexjs/cli

One CLI, three commands: dev, build, start.

x dev · x build · x start
03 / 08

@thexjs/auth

Credentials + OAuth2, sessions, CSRF. Passwords hashed with Argon2.

bun add @thexjs/auth
04 / 08

@thexjs/env

Type-safe environment validation. Server-only keys never reach the client bundle.

bun add @thexjs/env
05 / 08

@thexjs/hooks

SSR-safe React hooks: useDebounce, useMediaQuery, useServerAction and friends.

bun add @thexjs/hooks
06 / 08

@thexjs/adapter-vercel

Vercel Build Output API v3.

x build --adapter vercel
07 / 08

@thexjs/mcp

An MCP server that grounds AI coding agents in X's real conventions, not Next.js guesses.

bunx @thexjs/mcp
08 / 08

@thexjs/create-thexjs-app

Project scaffolder: tailwind, auth, content, hooks, shadcn.

bun create thexjs-app@latest

Recently shipped

  • X 1.3: islands to disk, server-mode islands, and an image proxy
  • Fixed a dual-module-instance bug that was breaking island hydration
  • Vercel Build Output API v3 adapter
  • Security hardening: CSRF, env isolation, security headers
  • A full technical audit and docs sprint: roadmap, contributing guide, changelog, deploy docs

03 / projects41 × 3 + 1 = 124

Things I've shipped.

01
SI-Loopcase study
Closed-loop kernel for recursive self-improvement in software agents: git-worktree isolation, AST sanitization, and a calibrated paired non-inferiority gate with a measured false-accept rate.git worktrees · AST validation · Shapley credit · A/A calibration
Python
02
xymathprepa.comclient project
Online math-training platform for CPGE students I built for a client: video lessons, corrected exercises, and progress tracking that syncs with WhatsApp.Next.js · Tailwind CSS · Supabase · shadcn/ui
TypeScript
03
xpinned
A full-stack React framework. Astro-style static-first frontend with islands, Next.js-style backend (file-based API/server routes, SSR), running on Bun. Bun.serve() and Bun's own bundler are the dev server and build tool, no separate bundler stack.#astro · #build-tool · #bun · #cli
TypeScript
04
LiveGafferpinned
Real-time AI soccer tactical analyst computing match momentum, team shapes, and live LLM insights.#ai-analyst · #data-science · #fastapi · #football-analytics
Python
05
NanoBrainAIpinned
A lightweight neural network built from scratch in Python. No libraries, just pure math (linear algebra & calculus).#ai · #machine-learning · #neural · #neural-network
Python
06
CVE-2026-31431 Analysis and Fix
Technical deep dive, root cause analysis, and LKML patch workflow for CVE-2026-31431 (Linux kernel local privilege escalation in algif_aead).#crypto-api-pci · #cve-2026-31431 · #kernel-exploitation · #linux-kernel
write-up
07
nth-roots-visualizer
Visualize n-th roots of unity and modular multiplication patterns on the unit circle. Built with Next.js & TypeScript. Math meets art!#katex · #mathematics · #nextjs · #nth-root
TypeScript
More on GitHub: every repository

04 / skills124 ÷ 2 = 62

What I build with.

Programming languages

PythonTypeScriptJavaScriptSQLHTML/CSS

Frontend development

ReactNext.jsThree.js / React Three FiberTailwind CSS

Backend development

BunNode.jsFastAPI@thexjs (own framework)

Database, CMS & cloud

SQLitePrismaDrizzleNeonVercelCloudinary

AI, tools & auth

GroqGeminiPydanticClerkGitSelenium

Linux & security

Shell scriptingsystemdServer hardeningNetwork securityPrivacy tooling

05 / math62 ÷ 2 = 31

Math I can sit with.

I spend time outside of coursework digging into the Collatz conjecture: ergodic theory, 2-adic dynamics, symbolic dynamics, analytic number theory. Also into exam-level math prep, LaTeX styling for problem sets, and Monte Carlo simulations for modeling how I'm tracking academically.

Even n becomes n ÷ 2. Odd n becomes 3n + 1. The conjecture says every positive start eventually reaches 1. Nobody has proved it. Pick a number and watch it fall (log scale).

27start
111steps to 1
9,232highest value
41↑ odd (3n+1)
70↓ even (÷2)

06 / security31 × 3 + 1 = 94

Break it to build it.

Comfortable on Linux day to day: shell scripting, systemd, basic server hardening, that kind of thing. I've also been getting into network security and privacy tooling. Understanding how systems get probed and broken helps me build ones that don't. Nothing formal yet, just hands-on curiosity that feeds back into how I write and secure my own projects.

[    0.000000] linux:    shell-scripting  systemd  basic-server-hardening
[    0.412093] security: network-security  privacy-tooling
[    0.877120] status:   ok — nothing formal yet, just hands-on curiosity
[    1.204511] open:     CVE-2026-31431 analysis and fix ↗
[    1.204512]