{"id":16950689,"url":"https://github.com/rajatjindal/wasm-console","last_synced_at":"2025-03-17T08:37:18.562Z","repository":{"id":247110390,"uuid":"825023017","full_name":"rajatjindal/wasm-console","owner":"rajatjindal","description":"a very (x 10) basic wasm console","archived":false,"fork":false,"pushed_at":"2024-07-16T06:18:57.000Z","size":14109,"stargazers_count":21,"open_issues_count":6,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-09T08:48:04.537Z","etag":null,"topics":["console","debug","golang","shell","tinygo","wasi","wasip2","webassembly"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rajatjindal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-07-06T14:50:06.000Z","updated_at":"2025-03-06T07:32:45.000Z","dependencies_parsed_at":"2024-10-27T12:40:08.584Z","dependency_job_id":"5986737d-9e52-4a76-9f74-5b856c55679f","html_url":"https://github.com/rajatjindal/wasm-console","commit_stats":null,"previous_names":["rajatjindal/wasmshell","rajatjindal/wasm-console"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajatjindal%2Fwasm-console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajatjindal%2Fwasm-console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajatjindal%2Fwasm-console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajatjindal%2Fwasm-console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rajatjindal","download_url":"https://codeload.github.com/rajatjindal/wasm-console/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243852486,"owners_count":20358271,"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":["console","debug","golang","shell","tinygo","wasi","wasip2","webassembly"],"created_at":"2024-10-13T21:58:18.534Z","updated_at":"2025-03-17T08:37:17.650Z","avatar_url":"https://github.com/rajatjindal.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Experimental wasm-console, because why not?\n\n### Show me aleady\n\n```\n$ /usr/local/bin/wasmtime run --dir testme --dir pkg -Shttp --env ABC=XYZ  main.wasm \nstarting wasm-console. Enter 'exit' to quit the shell.\nwasm-console \u003e printenv\nABC=XYZ\nwasm-console \u003e pwd\n/\nwasm-console \u003e ls\ntestme\npkg\nwasm-console \u003e cd testme\nwasm-console testme\u003e ls\nsome-dir\nsome-file\nwasm-console testme\u003e cd some-dir\nwasm-console testme/some-dir\u003e ls\nsome-other-file\nwasm-console testme/some-dir\u003e cat some-other-file\ncontents of some-other-file\nwasm-console testme/some-dir\u003e cd ../ \nwasm-console testme\u003e ls\nsome-dir\nsome-file\nwasm-console testme\u003e cat some-file\nsome - content\nwasm-console testme\u003e curl https://google.com\nHTTP/0.0 301 Moved Permanently\n\n\u003cHTML\u003e\u003cHEAD\u003e\u003cmeta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\"\u003e\n\u003cTITLE\u003e301 Moved\u003c/TITLE\u003e\u003c/HEAD\u003e\u003cBODY\u003e\n\u003cH1\u003e301 Moved\u003c/H1\u003e\nThe document has moved\n\u003cA HREF=\"https://www.google.com/\"\u003ehere\u003c/A\u003e.\n\u003c/BODY\u003e\u003c/HTML\u003e\n\nwasm-console testme\u003e history\n1* printenv\n2* pwd\n3* ls\n4* cd testme\n5* ls\n6* cd some-dir\n7* ls\n8* cat some-other-file\n9* cd ../\n10* ls\n11* cat some-file\n12* curl https://google.com\n13* history\nwasm-console \u003e ^D\ngoodbye !\n```\n## As a gif\n![using wasm-console](demo/usage.gif)\n\n## Building\n```\n$ ls\nREADME.md build.sh  go.mod    go.sum    internal  main.go   pkg       testme    wit\n\n## build wasm component\n$ ./build.sh\n\n## ls, notice main.wasm file is created\n$ ls\nREADME.md build.sh  go.mod    go.sum    internal  main.go   main.wasm pkg       testme    wit\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajatjindal%2Fwasm-console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajatjindal%2Fwasm-console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajatjindal%2Fwasm-console/lists"}