{"id":13528607,"url":"https://github.com/SquidDev-CC/copy-cat","last_synced_at":"2025-04-01T14:32:40.092Z","repository":{"id":44722031,"uuid":"183762161","full_name":"SquidDev-CC/copy-cat","owner":"SquidDev-CC","description":"A ComputerCraft emulator for the web","archived":false,"fork":false,"pushed_at":"2025-02-21T21:39:23.000Z","size":1576,"stargazers_count":43,"open_issues_count":6,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T18:22:22.262Z","etag":null,"topics":["computercraft","emulator"],"latest_commit_sha":null,"homepage":"https://copy-cat.squiddev.cc/","language":"TypeScript","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/SquidDev-CC.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}},"created_at":"2019-04-27T11:04:32.000Z","updated_at":"2025-02-21T21:39:27.000Z","dependencies_parsed_at":"2023-09-22T18:50:46.610Z","dependency_job_id":"67f0d474-4a8c-4143-8184-122ed1c3e249","html_url":"https://github.com/SquidDev-CC/copy-cat","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/SquidDev-CC%2Fcopy-cat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SquidDev-CC%2Fcopy-cat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SquidDev-CC%2Fcopy-cat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SquidDev-CC%2Fcopy-cat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SquidDev-CC","download_url":"https://codeload.github.com/SquidDev-CC/copy-cat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246655186,"owners_count":20812594,"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":["computercraft","emulator"],"created_at":"2024-08-01T07:00:21.741Z","updated_at":"2025-04-01T14:32:39.760Z","avatar_url":"https://github.com/SquidDev-CC.png","language":"TypeScript","funding_links":[],"categories":["Uncategorized","Non-Lua programs"],"sub_categories":["Uncategorized","Emulators"],"readme":"# Copy Cat\n\n[Copy Cat][copycat] is a ComputerCraft emulator for the web, heavily inspired by\nthe a similar project [Mimic][mimic]. However, unlike Mimic, it's built from the\nmod's source code - ensuring that it's always \u003csup\u003e1\u003c/sup\u003e as accurate as\npossible.\n\nThe interface is essentially the same as [Cloud Catcher][cloud], but with the\ncomputer running right in your browser rather than a server!\n\n---\n\n\u003csup\u003e1.\u003c/sup\u003e While we try to keep as close as we can, there are some elements\nwhich are impossible to emulate due to the restricted environment of a browser.\n\nFor instance, the `http` API has been entirely recreated, and some functionality\n(such as setting specific headers or requesting some sites) is not possible. As\nwith any emulator, there will be subtle differences in how input events (key\npresses, mouse clicks, etc...) are handled, so do not rely on our behaviour.\n\nAnd yes, this disclaimer was longer than the actual description.\n\n## Screenshots\n![The emulator in action](img/startup-url.png \"The emulator in action\")\n\n![Editing a file](img/editor.png \"Editing a file\")\n\n## Embedding\nIt's possible to embed copy-cat within another website. This may be useful if\nyou want to show off your programs on their own site.\n\n```html\n\u003c!-- The div to embed your computer. Can be placed anywhere within the page. --\u003e\n\u003cdiv id=\"embed-computer\"\u003e\u003c/div\u003e\n\n\u003c!-- Any requirejs-compatible loader (https://requirejs.org/) will work. --\u003e\n\u003cscript type=\"text/javascript\" src=\"https://copy-cat.squiddev.cc/require.js\"\u003e\u003c/script\u003e\n\n\u003cscript\u003e\n  // Tell requirejs to load copycat/* from the website.\n  require.config({ paths: { copycat: \"https://copy-cat.squiddev.cc/\" } });\n  // Find our #embed-computer element and inject a computer terminal into it.\n  require([\"copycat/embed\"], setup =\u003e setup(document.getElementById(\"embed-computer\")));\n\u003c/script\u003e\n```\n\nThe setup function also accepts several arguments, which are demonstrated in\n[this example](src/web/example/index.html).\n\n## Build it yourself\nDue to the nature of this project, Copy Cat has a rather strange build setup. We\ntake sources of [[CC: Tweaked][cct], modify them to work in a Javascript\nenvironment, and then compile them to JS. Thankfully, this is all automated by\nGradle. However, it does require a bit of setup:\n\nBefore getting started, you will need the JDK (Java Development Kit), and NodeJS\ninstalled and on the path.\n\n - Clone Copy Cat with submodules: `git clone --recursive https://github.com/SquidDev-CC/copy-cat`\n - Install NodeJS packages: `npm install`\n - Build: `./gradlew assemble`. You can also automatically build everything when\n   a file changes using `./gradlew assemble --continuous`.\n\nThe resulting website should be in `build/web`.\n\nUse `git submodule foreach git pull` in order to update all source repositories.\nYou will probably need to apply and then regenerate patches after doing so.\n\n[copycat]: https://copy-cat.squiddev.cc \"Try Copy Cat online\"\n[mimic]: https://gravlann.github.io/ \"The Mimic ComputerCraft emulator\"\n[cloud]: https://github.com/SquidDev-CC/cloud-catcher \"The Cloud Catcher repository\"\n[cct]: https://github.com/cc-tweaked/CC-Tweaked \"The CC: Tweaked repository\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSquidDev-CC%2Fcopy-cat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSquidDev-CC%2Fcopy-cat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSquidDev-CC%2Fcopy-cat/lists"}