{"id":18605554,"url":"https://github.com/bboydflo/tetris","last_synced_at":"2026-01-28T12:34:32.445Z","repository":{"id":41627787,"uuid":"223121717","full_name":"bboydflo/tetris","owner":"bboydflo","description":"learn stuff by implementing tetris","archived":false,"fork":false,"pushed_at":"2024-10-28T15:26:00.000Z","size":2361,"stargazers_count":1,"open_issues_count":19,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T02:36:03.996Z","etag":null,"topics":["react","react-hooks"],"latest_commit_sha":null,"homepage":"https://florin-cosmin-tetris.netlify.app","language":"JavaScript","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/bboydflo.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}},"created_at":"2019-11-21T08:10:49.000Z","updated_at":"2024-10-28T15:23:48.000Z","dependencies_parsed_at":"2023-02-06T12:16:47.532Z","dependency_job_id":null,"html_url":"https://github.com/bboydflo/tetris","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bboydflo/tetris","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bboydflo%2Ftetris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bboydflo%2Ftetris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bboydflo%2Ftetris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bboydflo%2Ftetris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bboydflo","download_url":"https://codeload.github.com/bboydflo/tetris/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bboydflo%2Ftetris/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28845279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T10:53:21.605Z","status":"ssl_error","status_checked_at":"2026-01-28T10:53:20.789Z","response_time":57,"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":["react","react-hooks"],"created_at":"2024-11-07T02:22:03.099Z","updated_at":"2026-01-28T12:34:32.429Z","avatar_url":"https://github.com/bboydflo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tetris\n\nThis is my own implementation of a tetris game with the sole purpose to learn new things. Game logic is implemented in a [custom hook](https://www.npmjs.com/package/use-tetris)\n\nThis has started as a React app but eventually switched to Preact for smaller bundle size (check webpack config).\n\n## Resources\n\n- [A tetris using HTML5 Canvas.](https://github.com/CharlieGreenman/Html5Tetris)\n- [Learn Modern javascript by implementing tetris game](https://medium.com/@michael.karen/learning-modern-javascript-with-tetris-92d532bcd057)\n\n## Run the app\n\n```sh\nnpm i \u0026\u0026 npm start\n```\n\nThen head on to [localhost:8080](localhost:8080)\n\n## Deployment\n\n```sh\ngit push\n```\n\nNetlify is setup to listen to changes on master. Whenever a change occurs in master, netlify will build the project (`npm run build`) and deploy the contents of the `dist` folder\n\n## Credits\n\n1. [how to use requestAnimationFrame with react hooks](https://css-tricks.com/using-requestanimationframe-with-react-hooks/)\n2. [use event listener hook](https://usehooks.com/useEventListener/)\n\n## Check more awesome hoooks\n\n1. [hooks guide](https://hooks-guide.netlify.app/)\n2. [use hooks](https://usehooks.com/)\n3. [use hooks ts](https://usehooks-typescript.com/)\n4. [awesome react hooks](https://github.com/rehooks/awesome-react-hooks)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbboydflo%2Ftetris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbboydflo%2Ftetris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbboydflo%2Ftetris/lists"}