xeet

Social posts rendered to PNG without a browser, from WebAssembly, a Rust crate or the CLI.

Created by Guillermo Rauch. All credit for the original Xeet goes to him. This fork extends his interface and Rust engine to five platforms.

Examples #

Post ID 20 (March 21, 2006) — The root post of X: twenty-year timestamp formatting across web and iOS, plus the Square affiliate badge.

24 / 280

Downloading WebAssembly core…

Use it #

One Rust renderer, five platforms. Pass post JSON to the WebAssembly SDK to produce a PNG offline. Public links are resolved separately through research; videos become still images.

Download TypeScript / Node package · Download source · Original Xeet

Install

npm install https://xeet.sharenow.today/asyncfuncai-xeet-0.2.1.tgz
# In a new TypeScript project:
npm pkg set type=module
npm install --save-dev typescript @types/node

This fork ships as a directly installable package, with TypeScript declarations and Node WASM bindings. It is not published to the npm registry. Node 20 or later.

Render a post

import { writeFileSync } from 'node:fs';
import { loadXeet, type Post } from '@asyncfuncai/xeet/node';

const xeet = await loadXeet();
const post: Post = {
  platform: 'threads',
  text: 'One engine, five platforms.',
  author: { name: 'You', handle: 'you' },
};
const { png, report } = xeet.render(post, { width: 600, theme: 'dark', dpr: 2 });
writeFileSync('post.png', png);
console.log(report.size);
npx tsc render.ts --module nodenext --target es2022 --types node
node render.js

Load once; render synchronously. The package keeps Xeet’s render, explain, renderRgba, renderMany and sheet APIs. Set platform to x, threads, facebook, instagram or tiktok.

Resolve any public post link

import { resolvePublicPost } from '@asyncfuncai/xeet/node';
const { post, warnings } = await resolvePublicPost(
  'https://www.threads.com/@sharenow_today/post/Dfyjw3KjZAe'
);
const { png } = xeet.render(post, { width: 600, theme: 'dark' });

Public-link lookup uses the hosted research service and its rate limits. Rendering supplied JSON is offline. The upstream xeet.resolve method remains X-specific.

API #

Rendering

await render(post, options)       // { png, report }
await explain(post, options)      // layout report
await renderRgba(post, options)   // { width, height, rgba, report }
await renderBatch(post, options)  // one rendered result per options object
await resolve(publicPostUrl)      // { post, warnings, source }; hosted API

Options and limits

Choose light or dark, width, device-pixel ratio, font scale and surface. X retains Xeet's timeline/detail behavior. The other platforms use their own single-post layouts; TikTok uses a portrait video still. Instagram and Facebook show the first carousel image. The example snapshots are public posts fetched on November 16, 2026.

Live lookup is cached for one hour and limited to 12 requests per address per hour and 150 new posts daily. It depends on the studio computer's research service. Drafts, examples and JSON rendering remain available if that service is offline.