{"id":15380839,"url":"https://github.com/skullzarmy/fibonacci-bun-example","last_synced_at":"2026-04-14T23:31:17.176Z","repository":{"id":197873805,"uuid":"694501089","full_name":"skullzarmy/fibonacci-bun-example","owner":"skullzarmy","description":"This example project demonstrates how to build a simple API and a web page that fetches data from this API. The project is built using the Bun runtime, a fast and efficient JavaScript/TypeScript runtime designed for high-performance applications.","archived":false,"fork":false,"pushed_at":"2023-10-02T21:26:03.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T22:36:11.388Z","etag":null,"topics":["api","bun","fibonacci-sequence","js"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skullzarmy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-21T06:03:08.000Z","updated_at":"2023-09-30T11:30:12.000Z","dependencies_parsed_at":"2023-10-03T05:46:33.090Z","dependency_job_id":"873b0e15-8947-4a3a-a896-13b2f1c60084","html_url":"https://github.com/skullzarmy/fibonacci-bun-example","commit_stats":null,"previous_names":["skullzarmy/fibonacci-bun-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/skullzarmy/fibonacci-bun-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skullzarmy%2Ffibonacci-bun-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skullzarmy%2Ffibonacci-bun-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skullzarmy%2Ffibonacci-bun-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skullzarmy%2Ffibonacci-bun-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skullzarmy","download_url":"https://codeload.github.com/skullzarmy/fibonacci-bun-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skullzarmy%2Ffibonacci-bun-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31819715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","bun","fibonacci-sequence","js"],"created_at":"2024-10-01T14:24:46.515Z","updated_at":"2026-04-14T23:31:17.159Z","avatar_url":"https://github.com/skullzarmy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fibonacci Sequence with Bun Runtime\n\n[![Run Bun Tests](https://github.com/skullzarmy/fibonacci-bun-example/actions/workflows/bun-tests.yml/badge.svg)](https://github.com/skullzarmy/fibonacci-bun-example/actions/workflows/bun-tests.yml)\n\n## Overview\n\nThis example project demonstrates how to build a simple Fibonacci API and a web page that fetches the Fibonacci sequence from this API. The project is built using the Bun runtime, a fast and efficient JavaScript/TypeScript runtime designed for high-performance applications.\n\n### Revolutionary Simplicity\n\nOne of the standout features of this project is its zero-dependency architecture. There are no external dependencies or initialization steps required to run the entire project. This is made possible by the Bun runtime, which provides native support for server-side operations, file handling, and more, right out of the box.\n\n## Features\n\n-   Fibonacci API built with TypeScript\n-   Web page that fetches and displays the Fibonacci sequence\n-   Server and client code optimized for performance and efficiency\n-   Utilizes Bun's native file handlers and server capabilities\n-   Zero external dependencies\n-   Integrated Bun tests via [GitHub Actions workflow](.github/workflows/bun-tests.yml)\n\n## Prerequisites\n\n[Bun runtime](https://bun.sh/) installed on your machine\n\n```bash\ncurl -fsSL https://bun.sh/install | bash\n```\n\n## Getting Started\n\nClone the Repository\n\n```bash\ngit clone https://github.com/skullzarmy/fibonacci-bun-example.git\ncd fibonacci-bun-example\n```\n\n## Run the Server\n\n```bash\nbun fib-server.ts\n```\n\nOr if you feel like typing more:\n\n```bash\nbun run fib-server.ts\n```\n\nThis will start the server, and it should be listening for incoming HTTP requests.\n\n## Access the Web Page\n\nOnce the server is running, you can navigate to http://localhost:3000 (or whatever port you've configured) in your web browser to see the Fibonacci sequence being printed on the page.\n\n![Web page in action](./fib-example.webp)\n\n## Watch Mode (Optional)\n\nIf you want to run your server in watch mode, so that it restarts automatically whenever you make changes to your code, you can use the --watch flag:\n\n```bash\nbun --watch fib-server.ts\n```\n\n## Accompanying Blog Post\n\nFor a detailed explanation of this project, its architecture, and its features, check out the accompanying blog post on [So Cal Tech Lab](https://socaltechlab.com/): [Peeling Back the Layers: A Comprehensive Look at Bun, the New JavaScript Runtime](https://socaltechlab.com/posts/peeling-back-the-layers-a-comprehensive-look-at-bun-the-new-javascript-runtime/)\n\n## Contribution\n\nWhile the code is free to use and I'd be thrilled to hear if you find it useful for any projects or learning, please note that this is not a maintained project. Contributions, other than pointing out mistakes or issues, would likely not be integrated and could be a waste of effort.\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0 (GPL-3.0). For more information, please see the [LICENSE](./LICENSE) file in the repository or consult the [official GPL-3.0 documentation](https://www.gnu.org/licenses/gpl-3.0.en.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskullzarmy%2Ffibonacci-bun-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskullzarmy%2Ffibonacci-bun-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskullzarmy%2Ffibonacci-bun-example/lists"}