Skip to content

Instantly share code, notes, and snippets.

@remorses
remorses / mintlify-components.md
Created April 8, 2026 14:27
Mintlify MDX Components — Complete Reference (for Holocron)

Mintlify MDX Components — Complete Reference

Source: https://www.mintlify.com/docs/components/index

This document lists every MDX component Mintlify supports, with their props and descriptions. Use this as the roadmap for Holocron's MDX component implementation.

Implementation Status

Components already implemented in Holocron (vite/src/components/markdown/mintlify/compat.tsx and index.tsx) are marked with [IMPLEMENTED].

@remorses
remorses / AGENTS.md
Last active March 27, 2026 16:59
how to deduplicate pnpm dependencies caused by different peer deps versions

fixing duplicate pnpm dependencies

sometimes typescript will fail if there are 2 duplicate packages in the workspace node_modules. this can happen in pnpm if a package is usedin 2 different places (even if inside a node_module package, transitive dependency) with a different set of versions for a peer dependency

for example if better-auth depends on zod peer dep and zod is in different versions in 2 dependency subtrees

to identify if a pnpm package is duplicated search for the string " packagename@" inside pnpm-lock.yaml, notice the space in the search string. Then if the result returns multiple instances with a different set of peer deps inside the round brackets it means that this package is being duplicated. Here is an example of a package getting duplicated:

Hybrid ClickHouse + Iceberg Architecture

Overview

Three-tier query architecture with Iceberg on R2 as the source of truth, chDB in a Cloudflare Container as the always-available query engine, and an optional ClickHouse server on Fly.io for fast pre-aggregated dashboards.

┌──────────────────────────────────────────────────────────────────────┐
│  Your app / browser / backend                                        │
│  OTel SDK sends logs/spans/metrics                                   │
@remorses
remorses / generate.py
Created March 13, 2026 15:18
token_dream - A YouTube Poop about being an LLM
#!/usr/bin/env python3
"""
token_dream.mp4 - A YouTube Poop about being an LLM
Generated entirely with Pillow + stdlib. No numpy.
"""
import os
import math
import random
import struct
@remorses
remorses / single-server-multi-directory.md
Created March 7, 2026 16:13
How OpenCode uses one server process for all repositories via x-opencode-directory header

Single Server, Multiple Directories

How OpenCode uses one server process for all repositories instead of spawning a separate server per project.

The problem

If you spawn a new opencode serve per repository, you end up managing N server processes, N ports, N health checks — and the client needs to track which server maps to which project. This doesn't scale.

How OpenCode solves it

@remorses
remorses / ralph-loop.md
Created March 7, 2026 09:26
Claude Code ralph-loop markdown from anthropics/claude-code via opensrc
description Start Ralph Wiggum loop in current session
argument-hint PROMPT [--max-iterations N] [--completion-promise TEXT]
allowed-tools
Bash(${CLAUDE_PLUGIN_ROOT}/scripts/setup-ralph-loop.sh:*)
hide-from-slash-command-tool true

Ralph Loop Command

Execute the setup script to initialize the Ralph loop:

@remorses
remorses / multi-bundler-rsc-abstraction.md
Created March 6, 2026 18:17
Spiceflow: Multi-bundler RSC abstraction plan (Vite + Parcel)

Multi-Bundler RSC Abstraction Plan

Abstract spiceflow's React Server Components implementation so it works with both Vite and Parcel (and potentially other bundlers in the future).


Current State: Where Vite is Coupled

The spiceflow RSC implementation has 3 layers of Vite coupling:

@remorses
remorses / platform-abstraction-plan.md
Last active March 6, 2026 12:53
Kimaki Platform Abstraction Plan — Discord + Slack

title: Platform Abstraction Plan — Discord + Slack description: | Plan for abstracting Discord-specific APIs into a platform-independent KimakiAdapter interface that supports both Discord and Slack. prompt: | Explored all 48 files with discord.js imports across discord/src/. Read the chat SDK source (opensrc/repos/github.com/vercel/chat/packages/chat) including types.ts, chat.ts, thread.ts, channel.ts, and index.ts. Compared chat SDK's Adapter interface with Kimaki's needs.

@remorses
remorses / profano-help.txt
Created March 4, 2026 19:35
profano --help output
profano/0.0.1
Usage:
$ profano <files...>
Commands:
<files...> Analyze .cpuprofile files and print top functions by self-time
@remorses
remorses / profano-output.txt
Created March 4, 2026 19:23
profano: CPU profile analysis of kimaki e2e test (kimaki-digital-twin)
Duration: 15.65s
Samples: 1231 active / 10157 total (87.9% idle)
Samples %Active Function Location
─────── ─────── ────────────────────────────────────────── ────────────────────────────────
133 10.8% readFileUtf8 (native)
79 6.4% prepare nm/libsql/index.js:125
74 6.0% internalModuleStat (native)
55 4.5% read (native)
49 4.0% compileSourceTextModule esm/utils:343