尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證X (Twitter) profile and post cards for your GitHub README. Free, no sign-up.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗X (Twitter) profile and post cards for your GitHub README. Free, no sign-up, no API key — just paste a URL.
| Aurora | Terminal |
|---|---|
| Paper | Brutal |
|---|---|
| Receipt | Sunset |
|---|---|
Try it: https://readme-x-cards.vercel.app/ — type your username, pick a theme, copy the snippet.
[](https://x.com/Seuthoot)
[](https://x.com/Seuthoot)
[](https://x.com/Seuthoot)
One image with your count latest posts (1–5). For separate cards instead, use /api/post with index=1, index=2, …
[](https://x.com/jack/status/20)
Want to show your pinned post? Use this with the pinned post's ID (paste its link on the landing page). The data sources don't say which post is pinned, so if you pin a different one later, update the ID.
GitHub picks the <source> that matches each viewer's theme. Here Aurora shows in dark mode and Paper in light mode:
<a href="https://x.com/Seuthoot">
<picture>
<source media="(prefers-color-scheme: light)" srcset="https://readme-x-cards.vercel.app/api/profile?user=Seuthoot&theme=paper">
<img src="https://readme-x-cards.vercel.app/api/profile?user=Seuthoot&theme=aurora" alt="X profile" width="450">
</picture>
</a>
The landing page builds this snippet for you.
| Endpoint | Parameter | Values | Default |
|---|---|---|---|
/api/profile | user | X username (letters, digits, _, max 15) | required |
/api/post | id | Post ID (the number in the post URL) | — |
/api/post | user | X username — shows their latest post | — |
/api/post | index | 1–10, n-th latest post (with user) | 1 |
/api/feed | user | X username | required |
/api/feed | count | 1–5, how many latest posts | 3 |
| all | theme | aurora, terminal, paper, brutal, receipt, sunset | aurora |
| all | hide | comma-separated: bio, metrics, views, media, date, border | — |
| all | locale | date language, e.g. ko, ja, de, pt-BR | en-US |
/api/post needs either id or user; id wins if both are given.
hide=border applies to the themes with an outline (aurora, terminal, paper). The terminal theme always prints ISO dates, so locale does not change it.
t.co links appear as their real destination (vercel.com/blog/…).hide=media leaves it out. The receipt theme prints no images.Multi-post cards keep to text, with the same highlighting.
Cards are cached: profiles for 6 hours, latest posts (and feeds) for 1 hour, specific posts for 24 hours. GitHub also caches README images, so changes can take a little longer to show up.
No environment variables needed. Running your own instance keeps your cards working even if the public one is rate-limited.
Optional: connect an Upstash Redis database to the project (it sets KV_REST_API_URL / KV_REST_API_TOKEN or UPSTASH_REDIS_REST_URL / UPSTASH_REDIS_REST_TOKEN). Each card then remembers its last successful data for 7 days, and when X data is briefly unavailable it shows that instead of an error card.
src/themes/<name>.ts exporting an object that implements Theme (src/themes/types.ts): renderProfile, renderPost, renderFeed, renderError, each returning a complete SVG string.src/themes/index.ts.describe.each lists in tests/theme-contract.test.ts and tests/theme-feed.test.ts (plus any theme-specific checks) and run npm test, then npm run smoke to render previews.Rules: card width 450px, escape every external string with escapeXml, never reference external URLs (GitHub blocks them inside SVG images — avatars and previews arrive as data URIs). Post text goes through richText from src/themes/shared.ts for highlighting.
npm install
npm test # unit tests, no network
npm run typecheck
npm run smoke # renders real cards into docs/previews (uses the network)
npx vercel dev # local server at http://localhost:3000
This project does not use the official X API. Data comes from unofficial public endpoints (X's embed syndication service and FxEmbed/fxtwitter), which may change or stop working at any time. Not affiliated with or endorsed by X Corp.
MIT