Jetfuel
Jetfuel is Twitter's new server-driven UI framework which is used for the Creator hub, the new signup/login onboarding flow, the sports and live-events hub, Stories, and more.
emusks talks to the Jetfuel API and decodes the binary into plain JSON for you:
js
import Emusks from "emusks";
const client = new Emusks();
await client.login("your_auth_token");
// example: global top-posts leaderboard, as real tweets
const { tweets } = await client.jetfuel.topPosts({
engagement: "Likes",
period: "Daily",
country: "USA",
});
for (const t of tweets) console.log(t.text);What you can do
| Section | Methods |
|---|---|
| Top posts | topPosts, topPostsFeed, topPostsTimelineId, inspirationPage |
| Surfaces | stories, storiesRemote, newsArticle, sportHome, league, game, event, brackets, bracketView, creatorsStudio, onboardingTopics, health |
| Requests | client.jf(), page, remote, raw, ogImageUrl, mediaPreviewUrl |
| Wire format | decode, the binary decoder, and the Timeline: token format |
WARNING
Jetfuel is freshly reverse-engineered and X changes it without notice. The decoder is best-effort and structural: it recovers framing, strings, the node tree, atom references and reference lists, but it does not resolve the interned style atoms (their dictionary lives in a lazy client chunk). Treat decoded pages as inspectable structure, not a stable schema.