{"id":14062783,"url":"https://github.com/johakr/html5-slot-machine","last_synced_at":"2026-03-10T18:08:26.977Z","repository":{"id":37664267,"uuid":"115862939","full_name":"johakr/html5-slot-machine","owner":"johakr","description":"Modern casino slot machine game using only plain JavaScript (Web Animations API)","archived":false,"fork":false,"pushed_at":"2025-07-17T21:24:52.000Z","size":3762,"stargazers_count":548,"open_issues_count":5,"forks_count":261,"subscribers_count":32,"default_branch":"main","last_synced_at":"2025-07-29T15:09:15.218Z","etag":null,"topics":["casino","es6","es7","gambling","slot","slot-machine","web-animations-api"],"latest_commit_sha":null,"homepage":"https://johakr.github.io/html5-slot-machine/","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/johakr.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":"2017-12-31T12:53:16.000Z","updated_at":"2025-07-28T14:12:28.000Z","dependencies_parsed_at":"2023-02-10T12:15:53.413Z","dependency_job_id":"187ae088-0859-4d39-ac77-d8be1dd718c6","html_url":"https://github.com/johakr/html5-slot-machine","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/johakr/html5-slot-machine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johakr%2Fhtml5-slot-machine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johakr%2Fhtml5-slot-machine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johakr%2Fhtml5-slot-machine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johakr%2Fhtml5-slot-machine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johakr","download_url":"https://codeload.github.com/johakr/html5-slot-machine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johakr%2Fhtml5-slot-machine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30346585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["casino","es6","es7","gambling","slot","slot-machine","web-animations-api"],"created_at":"2024-08-13T07:02:28.504Z","updated_at":"2026-03-10T18:08:26.930Z","avatar_url":"https://github.com/johakr.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# HTML5 Slot Machine\n\n![Build and Deploy Status](https://github.com/johakr/html5-slot-machine/actions/workflows/deploy.yml/badge.svg) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n\nThis is a modern proof of concept casino slot machine game, built using only vanilla HTML, CSS and JavaScript.\nNo Flash or Frameworks required. Allowing for an amazing low bundle size and blazing fast performance.\n\nBuilt using the _Web Animations API_.\n\n**[Live Demo](https://johakr.github.io/html5-slot-machine/)**\n\n## Features\n\n- Fully responsive for great UX on mobile, web \u0026 fullscreen mode.\n- Autoplay functionality, which keeps running even if the game window is in background.\n\n## Installation, Build \u0026 Deployment\n\n1. Clone repository\n2. Run `npm install`\n   - _Development_: run `npm start` and go to `http://localhost:8080`\n   - _Production_: run `npm run build` and serve from `/dist`\n\n## Configuration\n\nFor configuration options see `config` object in [index.js](https://github.com/johakr/html5-slot-machine/blob/master/src/js/index.js)\n\n| Property      | Description                                                                                                                            | Default   |\n| ------------- | -------------------------------------------------------------------------------------------------------------------------------------- | --------- |\n| `inverted`    | Controls visual spinning direction of reels. If false, reels will spin from bottom to top. If true, reels will spin from top to bottom | false     |\n| `onSpinStart` | Callback function invoked when spin starts with symbols pattern array `(symbols) =\u003e void`.                                             | undefined |\n| `onSpinEnd`   | Callback function invoked when spin ends with symbols pattern array `(symbols) =\u003e void`.                                               | undefined |\n\n## Credits\n\nIcons are created by [KPD Media](https://dribbble.com/shots/3517520-Star-Wars) and can be used for private and commercial purposes with no attribution required ([check license here](https://iconstore.co/icons/10-star-wars-icons/)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohakr%2Fhtml5-slot-machine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohakr%2Fhtml5-slot-machine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohakr%2Fhtml5-slot-machine/lists"}