{"id":26378531,"url":"https://github.com/redttgmoss/moos-sdk","last_synced_at":"2026-01-02T18:55:02.036Z","repository":{"id":281473437,"uuid":"945046426","full_name":"RedTTGMoss/moos-sdk","owner":"RedTTGMoss","description":"A moos sdk for developing plugins with moonbit","archived":false,"fork":false,"pushed_at":"2025-03-09T12:52:13.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-09T13:18:57.133Z","etag":null,"topics":["extism","moonbit","moonbit-lang","moss"],"latest_commit_sha":null,"homepage":"","language":"MoonBit","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedTTGMoss.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":"2025-03-08T14:35:34.000Z","updated_at":"2025-03-09T12:52:17.000Z","dependencies_parsed_at":"2025-03-09T13:18:57.845Z","dependency_job_id":null,"html_url":"https://github.com/RedTTGMoss/moos-sdk","commit_stats":null,"previous_names":["furesoft/moos-sdk","redttgmoss/moos-sdk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTTGMoss%2Fmoos-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTTGMoss%2Fmoos-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTTGMoss%2Fmoos-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTTGMoss%2Fmoos-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedTTGMoss","download_url":"https://codeload.github.com/RedTTGMoss/moos-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243976496,"owners_count":20377691,"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":["extism","moonbit","moonbit-lang","moss"],"created_at":"2025-03-17T04:52:10.968Z","updated_at":"2026-01-02T18:55:01.995Z","avatar_url":"https://github.com/RedTTGMoss.png","language":"MoonBit","funding_links":[],"categories":[],"sub_categories":[],"readme":"# moos-sdk\n[![runs_on](https://img.shields.io/badge/runs_on-Extism-4c30fc.svg?subject=runs_on\u0026status=Extism\u0026color=4c30fc)](https://modsurfer.dylibso.com/module?hash=fa39db232381e9de32a6e5b863edf5dc1552dc0e63682ad655cc72c2e042f9fa)\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n\nA sdk to build moss extensions easily with moonbit\n\n# Getting Started\n\n1. Create a new project with `moon new`\n2. Add moos as dependency `moon add furesoft/moos-sdk`\n3. Create those functions\n```moonbit\npub fn moss_extension_register() -\u003e Int {\n  let extensionInfo: @moss.ExtensionInfo = {\n    files: []\n  }\n\n  @host.output_json_value(extensionInfo.to_json())\n  0\n}\n\npub fn moss_extension_loop() -\u003e Int {\n  0\n}\n\npub fn moss_extension_unregister() -\u003e Int {\n  0\n}\n   ```\n4. import the moos-sdk and export those functions in the moon.pkg.json\n```json\n{\n  \"import\": [\n    \"gmlewis/moonbit-pdk/pdk\",\n    \"gmlewis/moonbit-pdk/pdk/host\",\n    {\"path\": \"furesoft/moos-sdk/lib\", \"alias\": \"moss\"}\n  ],\n  \"link\": {\n    \"wasm\": {\n      \"exports\": [\n        \"moss_extension_register\",\n        \"moss_extension_unregister\",\n        \"moss_extension_loop\"\n      ],\n      \"export-memory-name\": \"memory\"\n    }\n  }\n}\n```\n5. Build it with `moon build --target wasm`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredttgmoss%2Fmoos-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredttgmoss%2Fmoos-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredttgmoss%2Fmoos-sdk/lists"}