├── .editorconfig ├── .github ├── funding.yml ├── issue_template.md ├── pull_request_template.md └── workflows │ └── test.yml ├── .gitignore ├── .npmignore ├── .prettierignore ├── .prettierrc ├── example ├── .env.example ├── .gitignore ├── .vscode │ └── settings.json ├── app │ ├── layout.tsx │ └── page.tsx ├── components │ ├── GitHubShareButton.tsx │ ├── RandomTweet.tsx │ ├── TweetPage.tsx │ ├── anchor.tsx │ └── styles.module.css ├── demo.jpg ├── next-env.d.ts ├── next.config.js ├── package.json ├── pages │ ├── [tweetId].tsx │ ├── _app.tsx │ ├── _document.tsx │ ├── api │ │ ├── get-tweet-ast │ │ │ └── [tweetId].ts │ │ └── tweets.ts │ └── dynamic │ │ └── [tweetId].tsx ├── public │ ├── favicon.png │ └── robots.txt ├── readme.md ├── styles │ └── globals.css ├── tsconfig.json └── yarn.lock ├── lerna.json ├── license ├── package.json ├── packages ├── react-static-tweets │ ├── package.json │ ├── readme.md │ ├── src │ │ ├── client.ts │ │ ├── format-number.ts │ │ ├── html │ │ │ ├── handlers.tsx │ │ │ └── node.tsx │ │ ├── index.ts │ │ ├── tweet-client.tsx │ │ ├── tweet.tsx │ │ ├── twitter-layout │ │ │ ├── components │ │ │ │ ├── anchor.tsx │ │ │ │ ├── code.tsx │ │ │ │ ├── containers.tsx │ │ │ │ ├── embedded-tweet.tsx │ │ │ │ ├── headings.tsx │ │ │ │ ├── index.ts │ │ │ │ ├── lists.tsx │ │ │ │ ├── media.tsx │ │ │ │ ├── table.tsx │ │ │ │ ├── text.tsx │ │ │ │ ├── tweet │ │ │ │ │ ├── tweet-header.module.css │ │ │ │ │ ├── tweet-header.tsx │ │ │ │ │ ├── tweet-info.tsx │ │ │ │ │ └── tweet.tsx │ │ │ │ └── twitter.tsx │ │ │ ├── skeleton.tsx │ │ │ └── tweet-skeleton.tsx │ │ └── twitter.tsx │ ├── styles.css │ └── tsconfig.json └── static-tweets │ ├── package.json │ ├── readme.md │ ├── src │ ├── fetchTweetAst.ts │ ├── index.ts │ ├── markdown │ │ ├── htmlToAst.ts │ │ ├── markdownToAst.ts │ │ ├── rehype-minify.ts │ │ ├── rehype-tweet.ts │ │ └── schema.ts │ └── twitter │ │ ├── api.ts │ │ ├── embed │ │ └── tweet-html.ts │ │ ├── getTweetHtml.ts │ │ └── tweet-html.ts │ └── tsconfig.json ├── readme.md ├── tsconfig.base.json ├── tsconfig.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/funding.yml: -------------------------------------------------------------------------------- 1 | github: [transitive-bullshit] 2 | -------------------------------------------------------------------------------- /.github/issue_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/.github/issue_template.md -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | docs/ -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/.prettierrc -------------------------------------------------------------------------------- /example/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/.env.example -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | .vercel 2 | -------------------------------------------------------------------------------- /example/.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/.vscode/settings.json -------------------------------------------------------------------------------- /example/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/app/layout.tsx -------------------------------------------------------------------------------- /example/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/app/page.tsx -------------------------------------------------------------------------------- /example/components/GitHubShareButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/components/GitHubShareButton.tsx -------------------------------------------------------------------------------- /example/components/RandomTweet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/components/RandomTweet.tsx -------------------------------------------------------------------------------- /example/components/TweetPage.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/components/TweetPage.tsx -------------------------------------------------------------------------------- /example/components/anchor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/components/anchor.tsx -------------------------------------------------------------------------------- /example/components/styles.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/components/styles.module.css -------------------------------------------------------------------------------- /example/demo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/demo.jpg -------------------------------------------------------------------------------- /example/next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/next-env.d.ts -------------------------------------------------------------------------------- /example/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/next.config.js -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/package.json -------------------------------------------------------------------------------- /example/pages/[tweetId].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/pages/[tweetId].tsx -------------------------------------------------------------------------------- /example/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/pages/_app.tsx -------------------------------------------------------------------------------- /example/pages/_document.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/pages/_document.tsx -------------------------------------------------------------------------------- /example/pages/api/get-tweet-ast/[tweetId].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/pages/api/get-tweet-ast/[tweetId].ts -------------------------------------------------------------------------------- /example/pages/api/tweets.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/pages/api/tweets.ts -------------------------------------------------------------------------------- /example/pages/dynamic/[tweetId].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/pages/dynamic/[tweetId].tsx -------------------------------------------------------------------------------- /example/public/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/public/favicon.png -------------------------------------------------------------------------------- /example/public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Allow: / -------------------------------------------------------------------------------- /example/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/readme.md -------------------------------------------------------------------------------- /example/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/styles/globals.css -------------------------------------------------------------------------------- /example/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/tsconfig.json -------------------------------------------------------------------------------- /example/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/example/yarn.lock -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/lerna.json -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/license -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/package.json -------------------------------------------------------------------------------- /packages/react-static-tweets/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/package.json -------------------------------------------------------------------------------- /packages/react-static-tweets/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/readme.md -------------------------------------------------------------------------------- /packages/react-static-tweets/src/client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/client.ts -------------------------------------------------------------------------------- /packages/react-static-tweets/src/format-number.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/format-number.ts -------------------------------------------------------------------------------- /packages/react-static-tweets/src/html/handlers.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/html/handlers.tsx -------------------------------------------------------------------------------- /packages/react-static-tweets/src/html/node.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/html/node.tsx -------------------------------------------------------------------------------- /packages/react-static-tweets/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './tweet' 2 | -------------------------------------------------------------------------------- /packages/react-static-tweets/src/tweet-client.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/tweet-client.tsx -------------------------------------------------------------------------------- /packages/react-static-tweets/src/tweet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/tweet.tsx -------------------------------------------------------------------------------- /packages/react-static-tweets/src/twitter-layout/components/anchor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/twitter-layout/components/anchor.tsx -------------------------------------------------------------------------------- /packages/react-static-tweets/src/twitter-layout/components/code.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/twitter-layout/components/code.tsx -------------------------------------------------------------------------------- /packages/react-static-tweets/src/twitter-layout/components/containers.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/twitter-layout/components/containers.tsx -------------------------------------------------------------------------------- /packages/react-static-tweets/src/twitter-layout/components/embedded-tweet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/twitter-layout/components/embedded-tweet.tsx -------------------------------------------------------------------------------- /packages/react-static-tweets/src/twitter-layout/components/headings.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/twitter-layout/components/headings.tsx -------------------------------------------------------------------------------- /packages/react-static-tweets/src/twitter-layout/components/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/twitter-layout/components/index.ts -------------------------------------------------------------------------------- /packages/react-static-tweets/src/twitter-layout/components/lists.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/twitter-layout/components/lists.tsx -------------------------------------------------------------------------------- /packages/react-static-tweets/src/twitter-layout/components/media.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/twitter-layout/components/media.tsx -------------------------------------------------------------------------------- /packages/react-static-tweets/src/twitter-layout/components/table.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/twitter-layout/components/table.tsx -------------------------------------------------------------------------------- /packages/react-static-tweets/src/twitter-layout/components/text.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/twitter-layout/components/text.tsx -------------------------------------------------------------------------------- /packages/react-static-tweets/src/twitter-layout/components/tweet/tweet-header.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/twitter-layout/components/tweet/tweet-header.module.css -------------------------------------------------------------------------------- /packages/react-static-tweets/src/twitter-layout/components/tweet/tweet-header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/twitter-layout/components/tweet/tweet-header.tsx -------------------------------------------------------------------------------- /packages/react-static-tweets/src/twitter-layout/components/tweet/tweet-info.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/twitter-layout/components/tweet/tweet-info.tsx -------------------------------------------------------------------------------- /packages/react-static-tweets/src/twitter-layout/components/tweet/tweet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/twitter-layout/components/tweet/tweet.tsx -------------------------------------------------------------------------------- /packages/react-static-tweets/src/twitter-layout/components/twitter.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/twitter-layout/components/twitter.tsx -------------------------------------------------------------------------------- /packages/react-static-tweets/src/twitter-layout/skeleton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/twitter-layout/skeleton.tsx -------------------------------------------------------------------------------- /packages/react-static-tweets/src/twitter-layout/tweet-skeleton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/twitter-layout/tweet-skeleton.tsx -------------------------------------------------------------------------------- /packages/react-static-tweets/src/twitter.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/src/twitter.tsx -------------------------------------------------------------------------------- /packages/react-static-tweets/styles.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/styles.css -------------------------------------------------------------------------------- /packages/react-static-tweets/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/react-static-tweets/tsconfig.json -------------------------------------------------------------------------------- /packages/static-tweets/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/static-tweets/package.json -------------------------------------------------------------------------------- /packages/static-tweets/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/static-tweets/readme.md -------------------------------------------------------------------------------- /packages/static-tweets/src/fetchTweetAst.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/static-tweets/src/fetchTweetAst.ts -------------------------------------------------------------------------------- /packages/static-tweets/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './fetchTweetAst' 2 | -------------------------------------------------------------------------------- /packages/static-tweets/src/markdown/htmlToAst.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/static-tweets/src/markdown/htmlToAst.ts -------------------------------------------------------------------------------- /packages/static-tweets/src/markdown/markdownToAst.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/static-tweets/src/markdown/markdownToAst.ts -------------------------------------------------------------------------------- /packages/static-tweets/src/markdown/rehype-minify.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/static-tweets/src/markdown/rehype-minify.ts -------------------------------------------------------------------------------- /packages/static-tweets/src/markdown/rehype-tweet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/static-tweets/src/markdown/rehype-tweet.ts -------------------------------------------------------------------------------- /packages/static-tweets/src/markdown/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/static-tweets/src/markdown/schema.ts -------------------------------------------------------------------------------- /packages/static-tweets/src/twitter/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/static-tweets/src/twitter/api.ts -------------------------------------------------------------------------------- /packages/static-tweets/src/twitter/embed/tweet-html.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/static-tweets/src/twitter/embed/tweet-html.ts -------------------------------------------------------------------------------- /packages/static-tweets/src/twitter/getTweetHtml.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/static-tweets/src/twitter/getTweetHtml.ts -------------------------------------------------------------------------------- /packages/static-tweets/src/twitter/tweet-html.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/static-tweets/src/twitter/tweet-html.ts -------------------------------------------------------------------------------- /packages/static-tweets/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/packages/static-tweets/tsconfig.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/readme.md -------------------------------------------------------------------------------- /tsconfig.base.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/tsconfig.base.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/transitive-bullshit/react-static-tweets/HEAD/yarn.lock --------------------------------------------------------------------------------