{"id":21934794,"url":"https://github.com/mhdcodes/bun-react-ssr","last_synced_at":"2026-04-04T08:41:07.057Z","repository":{"id":257245594,"uuid":"857719374","full_name":"mhdcodes/bun-react-ssr","owner":"mhdcodes","description":"Bun serving a React application that displays 10k tweets from an SQLite database","archived":false,"fork":false,"pushed_at":"2024-09-15T12:33:49.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T13:12:32.400Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mhdcodes.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}},"created_at":"2024-09-15T12:33:27.000Z","updated_at":"2024-09-15T12:33:52.000Z","dependencies_parsed_at":"2024-09-15T14:09:17.392Z","dependency_job_id":"3971be1c-c97f-48e4-97f4-547e5bd02609","html_url":"https://github.com/mhdcodes/bun-react-ssr","commit_stats":null,"previous_names":["the-dijkstra/bun-react-ssr","mhdcodes/bun-react-ssr"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhdcodes%2Fbun-react-ssr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhdcodes%2Fbun-react-ssr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhdcodes%2Fbun-react-ssr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhdcodes%2Fbun-react-ssr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhdcodes","download_url":"https://codeload.github.com/mhdcodes/bun-react-ssr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244966458,"owners_count":20539794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-11-29T00:17:07.037Z","updated_at":"2025-12-30T20:06:34.720Z","avatar_url":"https://github.com/mhdcodes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bun 10K Tweets\n\nThis project sets up a server that utilizes clustering for multi-core processing, serving a React application that displays tweets from an SQLite database.\n\n## Setup and Installation\n\n### Setting up Bun\n\nTo run the Bun server, you need to have Bun installed on your system. You can download and install Bun from the official Bun website: https://bun.sh/docs/installation\n\nAlternatively, you can run the following script to install Bun:\n\n```bash\ncurl -fsSL https://bun.sh/install | bash\n```\n\n### Installing Project Dependencies\n\nBefore running any script, ensure you have installed the project dependencies using the following command:\n\n```bash\nbun install\n```\n\n## Usage\n\n### Create Database\n\nBefore running the Bun server, ensure you have created the database file using the following command:\n\n```bash\nbun db\n```\n\nThis command will create an SQLite database file `database.sqlite` and seed it with 10,000 tweets.\n\n### Run Server\n\nTo run a server, navigate to the project directory in your terminal and execute:\n\n```bash\nbun start\n```\n\n### Workload Test\n\nTo perform a workload test using wrk, run the following command: `wrk -t12 -c400 -d15s http://localhost:3000`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhdcodes%2Fbun-react-ssr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhdcodes%2Fbun-react-ssr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhdcodes%2Fbun-react-ssr/lists"}