{"id":15924963,"url":"https://github.com/pedrouid/assemblyscript-demo","last_synced_at":"2025-04-03T13:20:23.482Z","repository":{"id":57201354,"uuid":"154258370","full_name":"pedrouid/assemblyscript-demo","owner":"pedrouid","description":"Assemblyscript Demo","archived":false,"fork":false,"pushed_at":"2018-10-23T04:49:07.000Z","size":26,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T02:17:48.769Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://assemblyscript-demo.netlify.com/","language":"TypeScript","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/pedrouid.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}},"created_at":"2018-10-23T03:46:46.000Z","updated_at":"2021-05-17T20:42:51.000Z","dependencies_parsed_at":"2022-08-30T12:30:17.793Z","dependency_job_id":null,"html_url":"https://github.com/pedrouid/assemblyscript-demo","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/pedrouid%2Fassemblyscript-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrouid%2Fassemblyscript-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrouid%2Fassemblyscript-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrouid%2Fassemblyscript-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedrouid","download_url":"https://codeload.github.com/pedrouid/assemblyscript-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247006667,"owners_count":20868033,"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":[],"created_at":"2024-10-06T21:41:26.091Z","updated_at":"2025-04-03T13:20:23.454Z","avatar_url":"https://github.com/pedrouid.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Assemblyscript Demo\n\nThis demo was built from following this [article](https://medium.com/@BenedekGagyi/the-simplest-way-to-get-started-with-webassembly-1f92f6f90d24), which shows how easy it is to use WebAssembly on a browser.\n\nUsing Assemblyscript we compile Typescript to WebAssembly, which can then be used on the browser.\n\nIn this example, we write a function that returns us a Fibonacci number for an integer. Check out [fib.ts](/src/fib.ts)\n\nThen we run the command from our package.json to compile it\n\n```bash\nnpm run compile\n\n# OR\n\nasc src/fib.ts -o dist/fib.wasm\n```\n\nWe get a WebAssembly file, [fib.wasm](/dist/fib.wasm), that we can later load in our browser and use it with Javascript, [index.html](/dist/index.html).\n\nCheck out the live demo at [https://assemblyscript-demo.netlify.com](https://assemblyscript-demo.netlify.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrouid%2Fassemblyscript-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedrouid%2Fassemblyscript-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrouid%2Fassemblyscript-demo/lists"}