{"id":50938689,"url":"https://github.com/corychainsman/twitter-bookmarks","last_synced_at":"2026-06-17T11:38:01.159Z","repository":{"id":352148560,"uuid":"1214044948","full_name":"corychainsman/twitter-bookmarks","owner":"corychainsman","description":"Twitter bookmarks media browser","archived":false,"fork":false,"pushed_at":"2026-06-12T22:46:52.000Z","size":50763,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-12T23:22:14.417Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://corychainsman.github.io/twitter-bookmarks/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/corychainsman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-18T03:51:40.000Z","updated_at":"2026-06-12T21:55:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/corychainsman/twitter-bookmarks","commit_stats":null,"previous_names":["corychainsman/twitter-bookmarks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/corychainsman/twitter-bookmarks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corychainsman%2Ftwitter-bookmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corychainsman%2Ftwitter-bookmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corychainsman%2Ftwitter-bookmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corychainsman%2Ftwitter-bookmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/corychainsman","download_url":"https://codeload.github.com/corychainsman/twitter-bookmarks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corychainsman%2Ftwitter-bookmarks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34447266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-17T11:38:00.492Z","updated_at":"2026-06-17T11:38:01.152Z","avatar_url":"https://github.com/corychainsman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twitter Bookmarks\n\nMedia-first browser for X bookmarks exported through Field Theory.\n\nLive demo: [corychainsman.github.io/twitter-bookmarks](https://corychainsman.github.io/twitter-bookmarks/)\n\n## What It Ships\n\n- Real exported bookmark media data committed into `public/data`\n- Self-hosted media: all tweet photos/videos are archived and served from\n  Cloudflare R2 at `tbmedia.corychainsman.com` (no twimg.com dependency),\n  with pre-generated AVIF tiers and ThumbHash placeholders\n- Fast client-side search, folder filtering, sort controls, and URL-backed state\n- Static CLIP embedding index for concept search across tweet text, images, and video poster frames\n- Text search, image search, and “Similar” browsing with no backend\n- `One` / `All` media modes\n- `Immersive` media-only mode\n- Theme Studio at [`/themes`](https://corychainsman.github.io/twitter-bookmarks/themes) with live cross-tab updates and theme import/export\n- Static deployment to GitHub Pages\n\n## Stack\n\n- React 19\n- TypeScript\n- Vite\n- Bun\n- shadcn/ui primitives\n- Lucide icons\n- `@virtuoso.dev/masonry` for the media grid\n\n## Local Development\n\n```bash\nbun install\nbun run dev\n```\n\nApp:\n\n- Main app: [http://localhost:5173/](http://localhost:5173/)\n- Theme Studio: [http://localhost:5173/themes](http://localhost:5173/themes)\n\n## Data Flow\n\nThe app is built to consume static JSON artifacts under `public/data`.\n\nTypical refresh flow:\n\n```bash\nbun run sync:ft\nbun run data:mirror    # download new media + AVIF variants + thumbhashes\nbun run mirror:sync    # upload archive to R2 + Google Drive backup\nbun run data:export\nbun run data:embeddings\nbun run data:validate\nbun run build\n```\n\nConvenience commands:\n\n```bash\nbun run refresh\nbun run refresh:resume\nbun run refresh:full\nbun run refresh:embeddings\n```\n\nNotes:\n\n- `sync:ft` depends on a real local Field Theory/X session.\n- `data:mirror` archives originals to `.data/media/assets/` (gitignored) and\n  tracks status in `.data/media/mirror-manifest.json`; `data:export` rewrites\n  media URLs to the mirror for confirmed assets. See\n  [docs/runbooks/media-mirror.md](./docs/runbooks/media-mirror.md).\n- `mirror:sync` pulls R2 credentials from 1Password (`op environment read`),\n  so the 1Password app's CLI integration must be unlocked.\n- The exported app dataset is media-only; non-media bookmarks are not included in the shipped browsing surface.\n- `data:embeddings` precomputes a compact static CLIP vector index into `public/data/embeddings/index.json`.\n- Semantic search runs entirely in the browser: GitHub Pages serves the vector index, and Transformers.js loads the same CLIP model client-side to embed typed text or uploaded query images.\n- Video and animated GIF entries are embedded from their exported poster/preview image, so similarity captures the representative visual frame rather than temporal motion.\n\n## Scripts\n\n- `bun run dev`: start the local app\n- `bun run test`: run Vitest\n- `bun run lint`: run ESLint\n- `bun run typecheck`: run TypeScript project checks\n- `bun run build`: build the static app\n- `bun run preview`: preview the production build locally\n- `bun run sync:ft`: sync bookmark data from Field Theory\n- `bun run data:mirror`: download/mirror tweet media into the local archive\n- `bun run mirror:sync`: sync the media archive to Cloudflare R2 + Google Drive\n- `bun run data:export`: build static artifacts into `public/data`\n- `bun run data:embeddings`: build static semantic embedding artifacts into `public/data`\n- `bun run data:validate`: validate exported artifacts\n\n## GitHub Pages\n\nDeployments are handled by [`.github/workflows/deploy.yml`](./.github/workflows/deploy.yml).\n\n- Push to `main`\n- GitHub Actions builds with `GITHUB_PAGES=true`\n- The site is published at [corychainsman.github.io/twitter-bookmarks](https://corychainsman.github.io/twitter-bookmarks/)\n\n## Repository Structure\n\n```text\nsrc/app/                  App shell, router, theme studio\nsrc/components/           Toolbar, grid, lightbox, media, UI primitives\nsrc/features/bookmarks/   Query state, loaders, export contracts, caching\nsrc/features/theme/       Theme model, runtime variables, persistence\nsrc/workers/              Query worker\nscripts/                  Field Theory sync, media mirror, and export pipeline\npublic/data/              Shipped static bookmark artifacts\n.data/media/              Local media archive + mirror manifest (gitignored)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorychainsman%2Ftwitter-bookmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorychainsman%2Ftwitter-bookmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorychainsman%2Ftwitter-bookmarks/lists"}