{"id":25990350,"url":"https://github.com/harshdoesdev/bottlecap","last_synced_at":"2025-10-16T11:56:44.524Z","repository":{"id":47752436,"uuid":"316543850","full_name":"harshdoesdev/bottlecap","owner":"harshdoesdev","description":"bottlecap - Lightweight JavaScript 2D Game Engine For Making Cross-Platform Hypercasual Games","archived":false,"fork":false,"pushed_at":"2024-01-13T21:56:03.000Z","size":1492,"stargazers_count":18,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T11:49:04.025Z","etag":null,"topics":["2d-game-engine","bottlecap","collision-detection","games","javascript-game-engine"],"latest_commit_sha":null,"homepage":"https://bottlecap.js.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harshdoesdev.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-11-27T15:58:10.000Z","updated_at":"2024-10-08T03:29:14.000Z","dependencies_parsed_at":"2024-01-13T19:13:04.258Z","dependency_job_id":"7c2b19b2-d36a-4759-9ae1-d89f33fa49ec","html_url":"https://github.com/harshdoesdev/bottlecap","commit_stats":null,"previous_names":["rare-earth/bottlecap","harshdoesdev/bottlecap","theharshsingh/bottlecap"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/harshdoesdev/bottlecap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshdoesdev%2Fbottlecap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshdoesdev%2Fbottlecap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshdoesdev%2Fbottlecap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshdoesdev%2Fbottlecap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harshdoesdev","download_url":"https://codeload.github.com/harshdoesdev/bottlecap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshdoesdev%2Fbottlecap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279187421,"owners_count":26122259,"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","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"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":["2d-game-engine","bottlecap","collision-detection","games","javascript-game-engine"],"created_at":"2025-03-05T13:54:27.037Z","updated_at":"2025-10-16T11:56:44.490Z","avatar_url":"https://github.com/harshdoesdev.png","language":"JavaScript","readme":"# bottlecap.js - 2D Game Framework\n\n![bottlecap.js](https://github.com/harshsinghdev/bottlecap/raw/main/banner_new.png)\n\n## Table of Contents\n- [About](#about)\n- [Installation and Setup](#installation-and-setup)\n  - [NPM](#npm)\n  - [CDN](#cdn)\n- [Docs](#docs)\n- [Example](#example)\n\n## About\n\n**bottlecap.js** is a lightweight 2D game framework written in ES6. It offers a set of modular components, referred to as **bottlecaps**, that can be easily combined to create engaging 2D games.\n\n## Installation and Setup\n\n### NPM\n\n```shell\nnpm create vite@latest my-bottlecap-game -- --template vanilla # vanilla-ts for TypeScript\ncd my-bottlecap-game\nnpm i bottlecap\n```\n\n**src/main.js:**\n\n```javascript\nimport * as Bottlecap from 'bottlecap';\n\n// your code\n```\n\n### CDN\n\n**src/main.js:**\n\n```javascript\nimport * as Bottlecap from 'https://unpkg.com/bottlecap@latest';\n\n// your code\n```\n\n## Docs\n\nExplore the comprehensive documentation in the [wiki](https://github.com/harshsinghdev/bottlecap/wiki) to get started with **bottlecap.js**.\n\n## Example\n\nCheck out the live [demo](https://harshdoesdev.github.io/bottlecap-demo/).\n\n[Source code](https://github.com/harshdoesdev/bottlecap-demo/)\n\n![Demo](https://github.com/harshsinghdev/bottlecap/raw/gh-pages/images/demo-screenshot.png)\n\n## Games made using bottlecap\n\n- [Hydrogen](https://hypervoid.itch.io/hydrogen)\n- [Play Or Die](https://hypervoid.itch.io/play-or-die)\n- [Sneaky Tails](https://hypervoid.itch.io/sneaky-tails)\n- [SlideToShoot](https://hypervoid.itch.io/slide-to-shoot)\n\nFeel inspired by these creations? Start your own journey with **bottlecap.js** and join the growing community of game developers. Share your masterpiece and let the world experience your unique vision! If you have a game developed using **bottlecap.js** that you'd like to showcase, consider adding it to the list by opening a pull request. Happy gaming!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshdoesdev%2Fbottlecap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharshdoesdev%2Fbottlecap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshdoesdev%2Fbottlecap/lists"}