{"id":16986124,"url":"https://github.com/gheja/experiments","last_synced_at":"2026-04-13T16:03:44.843Z","repository":{"id":147079434,"uuid":"281261623","full_name":"gheja/experiments","owner":"gheja","description":"Various experiments, mainly related to my js13kGames entries.","archived":false,"fork":false,"pushed_at":"2021-09-03T23:49:57.000Z","size":886,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-02T01:32:09.609Z","etag":null,"topics":["game","game-development","javascript","library"],"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/gheja.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":"2020-07-21T01:10:56.000Z","updated_at":"2021-09-03T23:50:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"b58360ba-cf13-4f47-a90a-448a3f422fa4","html_url":"https://github.com/gheja/experiments","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gheja/experiments","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gheja%2Fexperiments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gheja%2Fexperiments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gheja%2Fexperiments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gheja%2Fexperiments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gheja","download_url":"https://codeload.github.com/gheja/experiments/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gheja%2Fexperiments/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31759544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: 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":["game","game-development","javascript","library"],"created_at":"2024-10-14T02:44:52.892Z","updated_at":"2026-04-13T16:03:44.813Z","avatar_url":"https://github.com/gheja.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# experiments\n\nVarious experiments, mostly related to my js13kGames entries.\n\nFeel free to use any parts if you find it useful.\n\nGames and gamejam entries:\n  * https://github.com/gheja/bokosan\n  * https://github.com/gheja/lost13k\n  * https://github.com/gheja/glitch13k\n  * https://github.com/gheja/jamcraft2018\n  * https://github.com/gheja/js13k2020\n  * https://github.com/gheja/offline13k\n  * https://github.com/gheja/untitled13\n\nMore projects:\n  * https://github.com/gheja/jseffects\n  * https://github.com/gheja/fbtest\n  * https://github.com/gheja/jsstuffs\n  * https://github.com/gheja/trilateration.js\n\n\n## Compiling TypeScript to JavaScript\n\nThere are many ways to compile TypeScript but I prefer using Node.js and the\n[typescript-compiler](https://www.npmjs.com/package/typescript-compiler)\npackage, called from a build script.\n\nSo my preferred method is:\n  * install Node.js (using the system's package manager or from https://nodejs.org/ )\n  * install [typescript-compiler](https://www.npmjs.com/package/typescript-compiler)\n  * compile the files using tsc\n\nOn Linux after installing Node.js:\n\n```\nnpm install typescript-compiler\n$HOME/node_modules/.bin/tsc *.ts\n```\n\n\n## TypeScript and Google Closure Compiler\n\nAs I'm mostly using these scripts in js13kGames gamejam entreis I also use\n[Google Closure Compiler](https://developers.google.com/closure/compiler)\nto minimize my javascript files. TypeScript is not directly supported but fortunately\n[typescript-closure-compiler](https://www.npmjs.com/package/typescript-closure-compiler)\ncreates javascript files with the proper annotations for Closure Compiler,\nand both are in the npm registry.\n\nSo my preferred method is:\n  * install Node.js (using the system's package manager or from https://nodejs.org/ )\n  * install [typescript-closure-compiler](https://www.npmjs.com/package/typescript-closure-compiler) and\n  [google-closure-compiler](https://www.npmjs.com/package/google-closure-compiler)\n  * compile the files using tscc\n\nOn Linux after installing Node.js:\n\n```\nnpm install typescript-closure-compiler google-closure-compiler\n$HOME/node_modules/.bin/tscc *.ts\n$HOME/node_modules/.bin/google-closure-compiler --compilation_level ADVANCED --js_output_file out.min.js *.js\n```\n\nNote: tscc requires a file name, without one it fails to run.\n\nNote 2: on the last line the *.js matches the output but the compiler ignores that.\n\nNote 3: Google Closure Compiler has a lot of options, you might want to check them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgheja%2Fexperiments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgheja%2Fexperiments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgheja%2Fexperiments/lists"}