{"id":17966261,"url":"https://github.com/dbosst/gameclock","last_synced_at":"2025-04-03T20:40:30.611Z","repository":{"id":57106470,"uuid":"173640560","full_name":"dbosst/gameclock","owner":"dbosst","description":"a game clock timer module for go, chess, etc. using preact","archived":false,"fork":false,"pushed_at":"2019-03-19T01:02:13.000Z","size":381,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T09:43:04.528Z","etag":null,"topics":["baduk","chess","chess-clock","clock","game","game-clock","game-timer","go","go-clock","npm-module","preact-component","timer","weiqi","wordgame"],"latest_commit_sha":null,"homepage":"","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/dbosst.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}},"created_at":"2019-03-03T23:03:05.000Z","updated_at":"2019-03-19T01:02:14.000Z","dependencies_parsed_at":"2022-08-20T23:20:45.893Z","dependency_job_id":null,"html_url":"https://github.com/dbosst/gameclock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbosst%2Fgameclock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbosst%2Fgameclock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbosst%2Fgameclock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbosst%2Fgameclock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbosst","download_url":"https://codeload.github.com/dbosst/gameclock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247078756,"owners_count":20879948,"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":["baduk","chess","chess-clock","clock","game","game-clock","game-timer","go","go-clock","npm-module","preact-component","timer","weiqi","wordgame"],"created_at":"2024-10-29T13:08:44.896Z","updated_at":"2025-04-03T20:40:30.583Z","avatar_url":"https://github.com/dbosst.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gameclock\n\nA preact module for a game clock, supporting an arbitrary number of players.\n\n## Demo\n\n[View the live demo by clicking here.](https://dbosst.github.io/gameclock-demo/demo/index.html)\n\nNote: the interface options for the clock are only part of the demo, not the module itself. Also, the images inside each player's clock are part of the demo css, not a module option.\n\nYou can also just use the demo for your personal needs (if you aren't attaching the module to a program), and save your own timing presets to a text file by copy/pasting the state with the demo's import/export feature.\n\n## Features\n\nSupport for various timing modes:\n* Go's byo-yomi / (Canadian) overtime\n* Chess' Delay (Bronstein) Timing\n* Chess' Increment (Fischer) Timing (before \u0026 after)\n* Hourglass\n* Word game timing (negative time counting)\n* Absolute (egg-timer)\n\nCustomizable display:\n* Display elapsed or remaining time/periods/phase/moves\n* Customizable display text \u0026 information (player name, time expired text, periods, etc.)\n* Fractional seconds customization (0-4 decimal places, update interval)\n\nAdjustable clock:\n* Pause the clock first, and then adjust the current player clock.\n* Also, change the active player by pausing and making a move.\n\nCallback events, including:\n* On last 10 seconds (of current period/phase)\n* Time Expired\n* Made move\n* Pause, Resume, Reset, Init\n\nCSS classes:\n* Style the game clock or each individual player clock\n* Style each player clock according to the clock state: expired, running, paused, init.\n\n## Documentation\n[Please read the docs by clicking here.](docs/README.md)\n\n## Build the demo\nPre-requisites: You need Node.js, npm, and preact installed to build the demo.\n\nThen download this demo with `git` and use `npm` to install the dependencies:\n\n~~~\n$ git clone https://github.com/dbosst/gameclock\n$ cd gameclock\n$ npm install\n~~~\n\nThen to create the bundle, you can either build the development demo once:\n\n~~~\n$ npm run build-demo\n~~~\n\nOr use the `watch-demo` script for development:\n\n~~~\n$ npm run watch-demo\n~~~\n\nTo view the built demo, open the local `gameclock/demo/index.html` file in your web browser.  If you have a javascript blocking plug-in, such as No-Script, make sure to allow for it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbosst%2Fgameclock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbosst%2Fgameclock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbosst%2Fgameclock/lists"}