{"id":13603088,"url":"https://github.com/loopholelabs/scale","last_synced_at":"2025-05-15T11:05:43.347Z","repository":{"id":61517935,"uuid":"551610189","full_name":"loopholelabs/scale","owner":"loopholelabs","description":"A framework for building high-performance plugin systems into any application, powered by WebAssembly.","archived":false,"fork":false,"pushed_at":"2024-11-18T02:55:02.000Z","size":221494,"stargazers_count":523,"open_issues_count":11,"forks_count":17,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-10T06:33:20.783Z","etag":null,"topics":["browser","functions","go","javascript","js","node","plugin","runtime","rust","scale","sdk","typescript","wasm","webassembly"],"latest_commit_sha":null,"homepage":"https://scale.sh","language":"C","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/loopholelabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-10-14T18:31:34.000Z","updated_at":"2025-04-08T16:58:51.000Z","dependencies_parsed_at":"2024-06-21T12:55:35.117Z","dependency_job_id":"00f2e192-84d7-498d-8c44-dbe8919efbc3","html_url":"https://github.com/loopholelabs/scale","commit_stats":null,"previous_names":["loopholelabs/scale-go"],"tags_count":101,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopholelabs%2Fscale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopholelabs%2Fscale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopholelabs%2Fscale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopholelabs%2Fscale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loopholelabs","download_url":"https://codeload.github.com/loopholelabs/scale/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254328385,"owners_count":22052632,"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":["browser","functions","go","javascript","js","node","plugin","runtime","rust","scale","sdk","typescript","wasm","webassembly"],"created_at":"2024-08-01T18:01:49.453Z","updated_at":"2025-05-15T11:05:43.314Z","avatar_url":"https://github.com/loopholelabs.png","language":"C","readme":"\u003cbr/\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://scale.sh\"\u003e\n    \u003cimg src=\"docs/logo/dark.svg\" alt=\"Logo\" height=\"90\"\u003e\n  \u003c/a\u003e\n  \u003ch3 align=\"center\"\u003e\n    A framework for building high-performance plugin systems into any application, all powered by WebAssembly.\n  \u003c/h3\u003e\n\n[![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-brightgreen.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![Discord](https://dcbadge.vercel.app/api/server/JYmFhtdPeu?style=flat)](https://loopholelabs.io/discord)\n\u003c/div\u003e\n\nWith [Scale Functions](https://scale.sh) your users can write fully typed plugins in any language they choose, and your application can easily and safely\nrun those plugins with the Scale Runtime, which provides state-of-the-art sandboxing, low startup times, and extremely high performance.\n\nCurrently, guest plugins can be written in [Golang](https://golang.org), [Rust](https://www.rust-lang.org/), and [Typescript](https://www.typescriptlang.org/), with the Runtime supporting [Golang](https://golang.org) and [Typescript](https://www.typescriptlang.org/) host applications.\n\n## Getting Started\n\nFirst, install the [CLI](https://scale.sh/docs/getting-started/quick-start#install-the-scale-cli).\n\nCreate a new function, passing `\u003cname\u003e:\u003ctag\u003e` to the `new` command:\n\n```bash\nscale new hello:1.0\n```\n\nThe following files will be generated:\n\n```yaml\nversion: v1alpha\nname: hello\ntag: 1.0\nsignature: http@v0.3.4\nlanguage: go\ndependencies:\n- name: github.com/loopholelabs/scale-signature\nversion: v0.2.9\n- name: github.com/loopholelabs/scale-signature-http\nversion: v0.3.4\nsource: scale.go\n```\n\n```Go\n//go:build tinygo || js || wasm\npackage scale\n\nimport (\n    signature \"github.com/loopholelabs/scale-signature-http\"\n)\n\nfunc Scale(ctx *signature.Context) (*signature.Context, error) {\n    ctx.Response().SetBody(\"Hello, World!\")\n    return ctx.Next()\n}\n```\n\n```Go\nmodule scale\n\ngo 1.18\n\nrequire github.com/loopholelabs/scale-signature v0.2.9\nrequire github.com/loopholelabs/scale-signature-http v0.3.4\n```\n\nFor more information on these files, see the full [Quick Start Guide](https://scale.sh/docs/getting-started/quick-start#create-a-new-function).\n\nBuild the above function:\n\n```bash\nscale function build\n```\nAnd run:\n\n```bash\nscale run local/hello:1.0\n```\n\nThis will start a local HTTP server on port `8080` and will run the function whenever you make a request to it.\n\nEt Voilà! Your first Scale Function! 🎉\n\n----\n\nFunctions be [chained together](https://scale.sh/docs/languages/golang/overview#guest-support), [embedded in other language's apps](https://scale.sh/docs/languages/javascript-typescript/overview#embedding-scale-functions), and used independently. For more information, as well as usage with other supported\nlanguage, including Rust and TypeScript/JavaScript, see the [documentation](https://scale.sh/docs).\n\n## Documentation\n\nFull instructions and documentation for Scale is available at [https://scale.sh/docs](https://scale.sh/docs).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at [https://github.com/loopholelabs/scale][gitrepo]. For more\ncontribution information check\nout [the contribution guide](https://github.com/loopholelabs/scale/blob/main/CONTRIBUTING.md).\n\n## License\n\nThe Scale project is available as open source under the terms of\nthe [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n\n## Code of Conduct\n\nEveryone interacting in the Scale project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md).\n\n## Project Managed By:\n\n[![https://loopholelabs.io][loopholelabs]](https://loopholelabs.io)\n\n[gitrepo]: https://github.com/loopholelabs/scale\n[loopholelabs]: https://cdn.loopholelabs.io/loopholelabs/LoopholeLabsLogo.svg\n[loophomepage]: https://loopholelabs.io\n\n","funding_links":[],"categories":["C","browser"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floopholelabs%2Fscale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floopholelabs%2Fscale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floopholelabs%2Fscale/lists"}