Xeet — originally by Guillermo Rauch
https://xeet.sharenow.today — xeet (X), teet (Threads), feet (Facebook), igeet (Instagram), tikeet (TikTok).
All credit for the original Xeet goes to Guillermo Rauch. This is an independent extension, not an official release or endorsement by him.
This fork reuses rauchg/xeet's actual interface, composer and Rust/WASM renderer, pinned at 8ddaea31d4ab16c3b14296da851b1fedda843412. Apache-2.0; see LICENSE and NOTICE. It adds platform-specific Rust layouts, real public-post resolution and open Noto fonts. No headless browser is involved in PNG rendering. This fork is not pixel-parity certified.
TypeScript / Node
npm install https://xeet.sharenow.today/asyncfuncai-xeet-0.2.1.tgz
import { loadXeet, resolvePublicPost, type Post } from '@asyncfuncai/xeet/node';
import { writeFileSync } from 'node:fs';
const xeet = await loadXeet();
const post: Post = { platform: 'threads', text: 'Hello.' };
const { png } = xeet.render(post, { width: 600, theme: 'dark', dpr: 2 });
writeFileSync('post.png', png);
This is an installable package tarball, not an npm-registry release. It carries upstream's typed render, explain, renderRgba, renderMany, sheet and sync/async loaders. Rendering is synchronous after initialization. Use resolvePublicPost(url) for all five platforms; the original xeet.resolve remains X-specific.
CLI
After installing the package:
npx xeet render post.json --out post.png --width 600 --theme dark
npx xeet explain post.json
npx xeet sheet post.json --out sheet.png --widths 390,600 --themes light,dark
npx xeet resolve 'https://www.threads.com/@sharenow_today/post/Dfyjw3KjZAe' --out post.json
The npm CLI uses the same WASM core. For the native Rust CLI, build the source below, then run cargo install --path .vendor/xeet/crates/xeet-cli --bin xeet --locked. Its render/explain/sheet commands consume the same JSON; use the npm resolver to fetch non-X URLs first.
Rust
Clone this repo and run bash scripts/prepare.sh to prepare the pinned upstream workspace with this fork's overrides. Use xeet-core = { path = "/absolute/path/to/xeet/.vendor/xeet/crates/xeet-core" } in your app's Cargo.toml. The native example is runnable with:
cargo run --manifest-path .vendor/xeet/Cargo.toml -p xeet-core --example multiplatform --profile fast
Build
On macOS or Linux, install Rust, Python 3, Node and git. Run bash scripts/build.sh. The script fetches pinned upstream source, applies overrides/, downloads the checksummed open Noto font packages and builds WASM. It copies the upstream example images and Geist fonts and packages the installable TypeScript/Node SDK and source downloads. Generated binaries, images and credentials are not committed.
node scripts/render.mjs post.json post.png dark 600 renders offline. post.platform is x, threads, facebook, instagram or tiktok. Omitted platform preserves upstream X behavior. Browser SDK methods are async; serve deploy/web/xeet.js alongside wasm/. The source build generates both.
Live links
deploy/worker.js is a Cloudflare Worker backed by D1. It queues public-post lookups, caches for one hour and rate limits new requests. bridge/run.mjs runs on the connected studio computer and uses its authenticated research CLI. Account credentials stay on that computer. Only a separate, random shared queue key is deployed as RESOLVER_KEY.
Install image support with python3 -m pip install --target .python-deps pillow pillow-heif. Start the bridge with node bridge/run.mjs /path/to/private-config.json, where the mode-600 file has url (deployed origin) and key (matching RESOLVER_KEY). Supervise with systemd. Never commit the configuration. The service must remain running for uncached public-link lookups. Examples, text and JSON rendering do not depend on it.
Deploy deploy/ with sharenow Fullstack, providing RESOLVER_KEY in a mode-600 JSON secrets file. The contract persists its app_id after first deployment; subsequent up updates that app.
What is and is not supported
- Actual X renderer and original example carousel, composer, size/theme variants, download and code view.
- Threads detail layout with full-width text/media, public profile picture and native-style actions.
- Facebook and Instagram post layouts; TikTok portrait video still with profile and engagement overlay.
- Real captions, names, avatars, media, timestamps and counts when the public provider returns them. Missing data is omitted; deleted/private/restricted posts may fail.
- Videos render as still images, never downloadable video. Facebook and Instagram show the first carousel item. Threads shows up to four media items. Non-X layouts do not reproduce X-specific polls, quote cards or link-card behavior.
- Open Noto fonts replace upstream platform-specific font files. UI uses upstream open Geist fonts. Upstream example photos are retained as demonstration references, not invented posts.
- Live link resolution is limited to 12 requests per IP/hour and 150 new jobs/day, cached one hour; it is not a public unlimited scraping API.
Verification was manual: actual public post resolution, browser interaction, PNG export and release build. No unit-test suite was added or run.