{"id":28467479,"url":"https://github.com/sashachabin/codeinthedark","last_synced_at":"2025-07-30T15:14:07.063Z","repository":{"id":296465517,"uuid":"993478688","full_name":"sashachabin/codeinthedark","owner":"sashachabin","description":"Code In The Dark game app for LAN parties! 👨‍💻👩‍💻","archived":false,"fork":false,"pushed_at":"2025-06-25T21:56:09.000Z","size":998,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-01T01:40:49.205Z","etag":null,"topics":["code-in-the-dark","codeinthedark","contest","lan","monaco-editor"],"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/sashachabin.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":"2025-05-30T21:34:51.000Z","updated_at":"2025-06-27T12:08:16.000Z","dependencies_parsed_at":"2025-05-31T08:55:02.608Z","dependency_job_id":"c7e081ae-443d-4af4-8677-192f2dd9ff0f","html_url":"https://github.com/sashachabin/codeinthedark","commit_stats":null,"previous_names":["sashachabin/code-in-the-dark","sashachabin/codeinthedark"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sashachabin/codeinthedark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashachabin%2Fcodeinthedark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashachabin%2Fcodeinthedark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashachabin%2Fcodeinthedark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashachabin%2Fcodeinthedark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sashachabin","download_url":"https://codeload.github.com/sashachabin/codeinthedark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sashachabin%2Fcodeinthedark/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263625624,"owners_count":23490588,"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":["code-in-the-dark","codeinthedark","contest","lan","monaco-editor"],"created_at":"2025-06-07T07:39:12.215Z","updated_at":"2025-07-04T21:41:07.335Z","avatar_url":"https://github.com/sashachabin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code In The Dark\n\n[![Inspired by codeinthedark/editor](https://img.shields.io/badge/inspired--by-codeinthedark/editor-blue)](https://github.com/codeinthedark/editor)\n\n\nA client–server application of the Code In The Dark front-end game. Based on the original [Tictail](https://tictail.com/) challenge: recreate a UI from a single screenshot using HTML \u0026 CSS and don’t see the result until time’s up!\n\n- 2-player coding in Monaco editor with Emmet\n- Live updates on a TV screen\n- Admin controls for rounds and timing\n\n\n\u003cbr /\u003e\n\n| Main `/` | TV `/tv` |\n| --  | -- |\n| ![image](https://github.com/user-attachments/assets/d131cfd2-5926-442b-a214-a64dfa346402) | ![image](https://github.com/user-attachments/assets/61b2df27-2a36-4d87-9ebc-a49637b7d46e) |\n\n\n\n| Player editor `/game?player=1\\|2` | Admin panel `/admin` |\n| --  | -- |\n| ![image](https://github.com/user-attachments/assets/66a1ef44-e9ee-4dbd-82ff-4a5fe8a727d5) | ![image](https://github.com/user-attachments/assets/3050bec3-0e05-48f5-bfde-b29c936e642e) |\n\n\n## Host Your Own Contest\n\n1. Make sure all computers are on the same LAN\n\n2. [Install Node.js](https://nodejs.org/en/download)\n\n3. Create `.env` file with `ADMIN_PASSWORD=yourpassword`. If you skip this, the default password is `pass`\n\n4. Run `npm i \u0026\u0026 npm start`\n\n5. On 2 laptops, open:\n\n```\nhttp://\u003cserver_ip\u003e/game/?player=1\nhttp://\u003cserver_ip\u003e/game/?player=2\n```\n\n6. On the TV screen, open:\n\n```\nhttp://\u003cserver_ip\u003e/tv/\n```\n\n\n## Custom tasks\n\nThere are 12 prepared tasks in [`/tasks`](https://github.com/sashachabin/code-in-the-dark/tree/master/tasks) folder:\n\n- chat.png\n- vote-checkbox.png\n- calendar.png\n- confirm.png\n- payments.png\n- …\n\nTo add a new task, put your own screenshot in [`/tasks`](https://github.com/sashachabin/code-in-the-dark/tree/master/tasks)\n\n\n## Roadmap\n\n- [x] Player editor with live preview\n- [x] [Monaco Editor](https://github.com/microsoft/monaco-editor)\n- [x] [Emmet](https://github.com/troy351/emmet-monaco-es)\n- [x] Admin panel for rounds\n- [x] Basic admin password\n- [x] Real-time updates on TV screen\n- [ ] Add Tailwind/Bootstrap options\n- [ ] Tasks with assets \u0026 variables\n- [ ] Switch code/preview on TV\n- [ ] Pulling → WebSockets\n- [ ] Add extra time to the round\n- [ ] End game \u0026 show confetti\n- [ ] Support 4 players\n- [ ] Prompt In The Dark — AI rounds with ChatGPT/Deepseek etc. 🤓\n\n## Development\n\n1. [Install Node.js](https://nodejs.org/en/download)\n\n2. Install dependencies\n\n```\nnpm i\n```\n\n3. Run client and server apps\n\n```\nnpm run dev\n```\n\n## See also\n\n- [codeinthedark.com](http://codeinthedark.com) — the Code In The Dark contest by [Tictail](https://tictail.com/)\n- [codeinthedark/editor](https://github.com/codeinthedark/editor) — the original editor  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsashachabin%2Fcodeinthedark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsashachabin%2Fcodeinthedark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsashachabin%2Fcodeinthedark/lists"}