{"id":15985948,"url":"https://github.com/aminya/assemblyscript-template","last_synced_at":"2025-12-16T07:37:43.204Z","repository":{"id":48061564,"uuid":"394197765","full_name":"aminya/assemblyscript-template","owner":"aminya","description":"An AssemblyScript template with support for many environments","archived":false,"fork":false,"pushed_at":"2024-05-18T00:10:21.000Z","size":427,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-18T18:46:49.340Z","etag":null,"topics":["assemblyscript","package","project","starter","template","template-repository","wasm","webassembly"],"latest_commit_sha":null,"homepage":"","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/aminya.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2021-08-09T07:43:14.000Z","updated_at":"2024-05-29T21:58:00.408Z","dependencies_parsed_at":"2024-01-16T18:59:15.833Z","dependency_job_id":"b38e3aad-7c72-4327-9ed6-bb56512fd66d","html_url":"https://github.com/aminya/assemblyscript-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminya%2Fassemblyscript-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminya%2Fassemblyscript-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminya%2Fassemblyscript-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminya%2Fassemblyscript-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aminya","download_url":"https://codeload.github.com/aminya/assemblyscript-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243154374,"owners_count":20244927,"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":["assemblyscript","package","project","starter","template","template-repository","wasm","webassembly"],"created_at":"2024-10-08T02:41:17.801Z","updated_at":"2025-12-16T07:37:38.128Z","avatar_url":"https://github.com/aminya.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AssemblyScript-template\n\n[![CI](https://github.com/aminya/assemblyscript-template/actions/workflows/CI.yml/badge.svg)](https://github.com/aminya/assemblyscript-template/actions/workflows/CI.yml)\n\nAn AssemblyScript template with support for many environments\n\nThis template is all you need to get started in AssemblyScript.\nIt allows you to write a library in AssemblyScript, and use it in various environments.\n\n- The **wasm** library is in `./src/wasm/`.\n  This is the AssemblyScript file that exports the functions for your library.\n- The **browser** app is in `./src/browser/`. It sets up a simple form to get input from the user and passes it to the wasm.\n- The **node** wrappers are in `./src/node`.\n  The `lib.ts` file is a library file, and the `cli.ts` file is meant to be used as a Node bin.\n- The **wasi** wrappers are in `./src/wasi` folder.\n\nNote: The AssemblyScript files have a `.as.ts` or `.as` extension, and the TypeScript files have a `.ts` extension.\n\n### Wasm Lib\n\n```ps1\nnpm install\nnpm run build.wasm\n```\n\n`./dist/index.wasm`\n\n```ts\nexport function doSomething(input: string): string\n```\n\n### Browser App\n\nBuild:\n\n```\nnpm install\nnpm run build.browser\n```\n\nRun:\n\n```\nnpm run start.browser\n```\n\n### Browser Lib\n\nBuild:\n\n```\nnpm install\nnpm run build.browser\n```\n\n```ts\nimport { doSomething } from \"./dist/browser/lib.js\"\n\nawait doSomething(\"input\")\n```\n\n### Node CLI\n\nBuild:\n\n```ps1\nnpm install\nnpm run build.node\n```\n\nRun:\n\n```ps1\nnode ./dist/node/cli.js 'input'\n```\n\n### Node Lib\n\n```ts\nimport { doSomething } from \"./dist/node/lib.js\"\n\nconst output = await doSomething(\"input\")\n```\n\n### Wasi CLI\n\nBuild:\n\n```ps1\nnpm install\nnpm run build.wasi\n```\n\nRun:\n\n```ps1\nwasmtime ./dist/wasi.wasm 'input'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faminya%2Fassemblyscript-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faminya%2Fassemblyscript-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faminya%2Fassemblyscript-template/lists"}