Loading...
Loading...
Add X (Twitter) testimonials to the bklit homepage. Fetches username, avatar, and tweet text from a status URL and appends an entry to apps/web/lib/testimonials.ts. Use when the user shares an x.com/twitter.com tweet URL to add or replace a testimonial.
npx skill4agent add bklit/bklit-ui add-x-tweethttps://x.com/.../status/...node .agents/skills/add-x-tweet/scripts/fetch-tweet.mjs "https://x.com/user/status/123..."{
"id": "123...",
"url": "https://x.com/user/status/123...",
"author": { "name": "...", "handle": "@user", "avatar": "https://pbs.twimg.com/...", "verified": true },
"content": "tweet text without @uixmat prefix"
}curl -sL "https://publish.twitter.com/oembed?url=TWEET_URL&omit_script=1"author_name<p>apps/web/lib/testimonials.tsidurltwitterAvatarUrl()_200x200_400x400@uixmatlgauthor.verifiedauthor.verification.verifiedtestimonialCollapsedCountcd apps/web && npx tsc --noEmit -p tsconfig.jsonhttps://api.fxtwitter.com/{user}/status/{id}{
id: "2056717453816729751",
url: "https://x.com/jordienr/status/2056717453816729751",
author: {
name: "jordi",
handle: "@jordienr",
avatar: twitterAvatarUrl(
"https://pbs.twimg.com/profile_images/2053541405121769475/TUDez6zL_200x200.jpg"
),
verified: true,
},
content: "bklit saved my marriage",
},