u/aintLifeaBTC

ByteRent early stage CKB leasing protocol

ByteRent early stage CKB leasing protocol

A couple weeks ago I began working on a protocol that enables the Onchain leasing/renting of CKB. This is an initial attempt at implementing the long theorised concept of byte leasing on Nervos.

Each CKB on Nervos is literally one byte of on-chain storage. ByteRent turns that fungibility into a market: anyone holding unused CKB can publish a listing, and anyone needing short-term on-chain storage can lease it in discrete amounts. Settlement is upfront; the lessor is paid in full at FillLease; the principal returns to them at ExpireReturn once the lock script's absolute-epoch sincegate fires.

This release is a POC while not yet fully usable as a genuine leasing mechanism it establishes a pathway towards this. This on chain leasing service will create an avenue for agentic/autonomous acquisition of CKB for a range of purposes.

https://byterent.xyz

https://github.com/toastmanAu/byterent

https://github.com/toastmanAu/byterent-ui

u/aintLifeaBTC — 7 days ago

Welcome to the Common Knowledge Library. Building off methods established during the building of cellswap.xyz, I present an interactive library which houses all current RFC’s from GitHub. All markdown documents and accompanying images were pulled from GitHub and stored on testnet via CKBFS, all rendered real time, from chain, into the browser.

cklibrary.xyz

The world

-React Three finer +drei on top of three.js

-Procedural shell (a 14m × 30m gabled room with perimeter bays, counter, lights), coffee station, working door

- Avatar + animations from UBC's open character pack

-gl tf-transform pipeline for compressing / optimizing GLBs

The chain side

-@ckb-ccc/ccc + @ckbfs/api for reading CKBFS V3 cells

-Each book is its own on-chain cell; the manifest is just a list of type-IDs the world points at

No backend

-deploys static to Cloudflare, all reads happen client-side against a CKB node

The reader

-react-markdown + remark-gfm + remark-math + KaTeX + rehype-highlight

-Fuse.js for fuzzy search across the manifest

Stackglue

-Vite + TypeScript + Tailwind

-Biome / Vitest/ Playwright

MobileWebGL was the painful bit—had to widen CSP for

wasm-unsafe-eval + blob: in img-src/connect-src because

three.js loads embedded GLB textures as blob URLs. Took a few rounds.

u/aintLifeaBTC — 16 days ago