{"id":23276724,"url":"https://github.com/shoriwe/plasma","last_synced_at":"2026-03-17T11:34:57.309Z","repository":{"id":45020949,"uuid":"354593698","full_name":"shoriwe/plasma","owner":"shoriwe","description":"Thread safe Go embeddable ruby like scripting language","archived":false,"fork":false,"pushed_at":"2022-11-30T19:20:51.000Z","size":2316,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-15T07:27:56.151Z","etag":null,"topics":["dynamic-type","embeddable-scripting-language","go","golang","ruby","scripting-language"],"latest_commit_sha":null,"homepage":"https://shoriwe.github.io/plasma/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shoriwe.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-04T16:35:18.000Z","updated_at":"2024-03-17T19:24:46.000Z","dependencies_parsed_at":"2022-07-18T08:49:10.034Z","dependency_job_id":null,"html_url":"https://github.com/shoriwe/plasma","commit_stats":null,"previous_names":["shoriwe/gplasma","shoriwe/gruby"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/shoriwe/plasma","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoriwe%2Fplasma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoriwe%2Fplasma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoriwe%2Fplasma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoriwe%2Fplasma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shoriwe","download_url":"https://codeload.github.com/shoriwe/plasma/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoriwe%2Fplasma/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30622770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T11:26:08.186Z","status":"ssl_error","status_checked_at":"2026-03-17T11:24:37.311Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["dynamic-type","embeddable-scripting-language","go","golang","ruby","scripting-language"],"created_at":"2024-12-19T21:36:24.104Z","updated_at":"2026-03-17T11:34:57.295Z","avatar_url":"https://github.com/shoriwe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# plasma\n\n[![Build](https://github.com/shoriwe/plasma/actions/workflows/build.yml/badge.svg)](https://github.com/shoriwe/plasma/actions/workflows/build.yml)\n[![codecov](https://codecov.io/github/shoriwe/plasma/branch/main/graph/badge.svg?token=6XUX3TJC2N)](https://codecov.io/github/shoriwe/plasma)\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/shoriwe/plasma)\n[![Go Report Card](https://goreportcard.com/badge/github.com/shoriwe/plasma)](https://goreportcard.com/report/github.com/shoriwe/plasma)\n\nPlasma is an embeddable scripting ruby like language.\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"https://github.com/shoriwe/plasma/raw/main/logos/plasma-logos.jpeg\" alt=\"logo\" style=\"zoom:50%;\" /\u003e\n\u003c/p\u003e\n\n## Features\n\n- Simple extensibility: Easy to add new go bindings\n- Zero dependency: The language used as a library doesn't depend on any external project.\n- Thread safe: the virtual machine and all the objects created during runtime are thread safe\n- Rich syntax: Generators, defer, special boolean operators and more (check documentation for more details)\n- Bytecode VM backend: the language compiles to a custom bytecode that can then stored and preloaded in the machine\n  without recompiling scripts.\n- Stop vm execution: Plasma let you stop at any the time the execution of the VM.\n\n## Documentation\n\nYou can find documentation in:\n\n- [Official documentation](https://shoriwe.github.io/plasma/index.html)\n- [pkg.go.dev](https://pkg.go.dev/github.com/shoriwe/plasma)\n\n## Install interpreter\n\n```shell\ngo install github.com/shoriwe/plasma/cmd/plasma@latest\n```\n\n## Preview\n\n### REPL\n\nYou can start a REPL with:\n\n```shell\nplasma\n```\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"https://github.com/shoriwe/plasma/raw/main/demos/repl-demo.gif\" alt=\"logo\" style=\"zoom:50%;\" /\u003e\n\u003c/p\u003e\n\n### Embedding and creating Go bindings\n\n```shell\ngo get -u github.com/shoriwe/plasma@v1\n```\n\n```go\npackage main\n\nimport (\n\t\"github.com/shoriwe/plasma/pkg/vm\"\n\t\"os\"\n)\n\nconst myScript = `\nargs = get_args()\nif args.__len__() \u003e 1\n    println(args.__string__())\nelse\n    println(\"No\")\nend\n`\n\nfunc main() {\n\tplasma := vm.NewVM(os.Stdin, os.Stdout, os.Stderr)\n\tplasma.Load(\"get_args\", func(plasma *vm.Plasma) *vm.Value {\n\t\treturn plasma.NewBuiltInFunction(plasma.RootSymbols(),\n\t\t\tfunc(argument ...*vm.Value) (*vm.Value, error) {\n\t\t\t\ttupleValues := make([]*vm.Value, 0, len(os.Args))\n\t\t\t\tfor _, cmdArg := range os.Args {\n\t\t\t\t\ttupleValues = append(tupleValues, plasma.NewString([]byte(cmdArg)))\n\t\t\t\t}\n\t\t\t\treturn plasma.NewTuple(tupleValues), nil\n\t\t\t})\n\t})\n\t_, errorChannel, _ := plasma.ExecuteString(myScript)\n\terr := \u003c-errorChannel\n\tif err != nil {\n\t\tpanic(err)\n\t}\n}\n```\n\n## Contributing\n\nTo contribute to this project please follow the [contribution guidelines](CONTRIBUTING.md) and\nthe [code of conduct](CODE_OF_CONDUCT.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshoriwe%2Fplasma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshoriwe%2Fplasma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshoriwe%2Fplasma/lists"}