{"id":22787362,"url":"https://github.com/aserto-dev/runtime","last_synced_at":"2025-04-15T23:39:06.094Z","repository":{"id":40482461,"uuid":"410078466","full_name":"aserto-dev/runtime","owner":"aserto-dev","description":"an abstraction library on top of OPA","archived":false,"fork":false,"pushed_at":"2025-04-09T21:32:02.000Z","size":4555,"stargazers_count":27,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-09T22:28:30.446Z","etag":null,"topics":["golang","opa"],"latest_commit_sha":null,"homepage":"","language":"Go","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/aserto-dev.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":"2021-09-24T19:22:23.000Z","updated_at":"2025-04-09T21:32:04.000Z","dependencies_parsed_at":"2023-02-09T02:45:33.062Z","dependency_job_id":"fa778c52-2354-4790-bb44-102a7241ddbc","html_url":"https://github.com/aserto-dev/runtime","commit_stats":null,"previous_names":[],"tags_count":73,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fruntime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fruntime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fruntime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fruntime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aserto-dev","download_url":"https://codeload.github.com/aserto-dev/runtime/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173059,"owners_count":21224481,"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":["golang","opa"],"created_at":"2024-12-12T00:54:43.029Z","updated_at":"2025-04-15T23:39:06.067Z","avatar_url":"https://github.com/aserto-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# runtime - an abstraction library on top of the Open Policy Agent (OPA)\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/aserto-dev/runtime.svg)](https://pkg.go.dev/github.com/aserto-dev/runtime)\n[![Go Report Card](https://goreportcard.com/badge/github.com/aserto-dev/runtime)](https://goreportcard.com/report/github.com/aserto-dev/runtime)\n\n## Introduction\n\nThe \"runtime\" project is a library that sits on top of [OPA](https://github.com/open-policy-agent/opa).\n\nThe goal of the project is to allow you to quickly write code that builds, runs or tests OPA policies.\n\nIt uses the options pattern to facilitate construction of `Runtime` instances specific to your needs. You can start super simple, using it just to build some rego into a bundle, or you can get more complex, using it to start a runtime with plugins, built-ins and other features.\n\n## Install\n\n```shell\ngo get -u github.com/aserto-dev/runtime\n```\n\n## Usage\n\n```go\n// Create a runtime\nr, cleanup, err := runtime.NewRuntime(ctx, \u0026logger, \u0026runtime.Config{})\nif err != nil {\n  return errors.Wrap(err, \"failed to create runtime\")\n}\ndefer cleanup()\n\n// Use the runtime to build a bundle from the current directory\nreturn r.Build(runtime.BuildParams{\n  OutputFile: \"my-bundle.tar.gz\",\n}, \".\")\n```\n\nYou can find a more complete example in the [example](./example/) directory.\n\n## Credits\n\nBased on the awesome [Open Policy Agent](https://github.com/open-policy-agent/opa).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faserto-dev%2Fruntime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faserto-dev%2Fruntime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faserto-dev%2Fruntime/lists"}