{"id":22508516,"url":"https://github.com/bianchidotdev/opa_suite","last_synced_at":"2026-02-28T18:02:10.633Z","repository":{"id":255443017,"uuid":"851968281","full_name":"bianchidotdev/opa_suite","owner":"bianchidotdev","description":"Elixir library containing a suite of tools to work with OPA (Open Policy Agent) - mirrored from https://codeberg.org/bianchidotdev/opa_suite","archived":false,"fork":false,"pushed_at":"2025-05-07T00:33:35.000Z","size":61,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-28T07:23:46.608Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/bianchidotdev.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-04T01:56:27.000Z","updated_at":"2025-08-30T21:14:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"31a6512b-bb4a-441a-b883-df6c138eb559","html_url":"https://github.com/bianchidotdev/opa_suite","commit_stats":null,"previous_names":["bianchidotdev/opa_suite"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bianchidotdev/opa_suite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bianchidotdev%2Fopa_suite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bianchidotdev%2Fopa_suite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bianchidotdev%2Fopa_suite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bianchidotdev%2Fopa_suite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bianchidotdev","download_url":"https://codeload.github.com/bianchidotdev/opa_suite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bianchidotdev%2Fopa_suite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29946463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T17:57:52.716Z","status":"ssl_error","status_checked_at":"2026-02-28T17:57:31.974Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-12-07T01:21:07.706Z","updated_at":"2026-02-28T18:02:10.615Z","avatar_url":"https://github.com/bianchidotdev.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OPA\nOPA (Open Policy Agent) is an Elixir library that provides tools for integrating with OPA. It includes a Plug for easy integration with Phoenix applications, a simple client for making requests to an OPA server, and a server initializer helper to set up an OPA server instance.\n\n## Features\n\n- **Plug Integration**: Easily integrate OPA with your Phoenix applications using the provided Plug.\n- **Simple Client**: A straightforward client for making requests to an OPA server.\n- **Server Initializer**: Helper functions to set up and manage an OPA server instance. # TODO: replace port with MuonTrap\n\n## Usage\n\n### Plug Integration\n\nTo use the OPA Plug in your Phoenix application, add it to your endpoint:\n\n```elixir\nplug OPA.Plug.Authz, package: \"example_policy\", rule: \"allow\"\n```\n\n### Simple Client\n\nYou can use the OPA client to make requests to your OPA server:\n\n```elixir\nresponse = OPA.Client.query(\"example_policy\", \"allow\", input)\n```\n\n### Server Initializer\n\nTo start an OPA server instance, use the initializer helper:\n\n```elixir\n# Start an OPA server instance - does not error on already bound port since it\n# assumes the server is already running\n{:ok, _pid} = OPA.Server.HttpListener.start_link()\n```\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `opa` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:opa, \"~\u003e 0.0.1\"}\n  ]\nend\n```\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at \u003chttps://hexdocs.pm/opa\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbianchidotdev%2Fopa_suite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbianchidotdev%2Fopa_suite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbianchidotdev%2Fopa_suite/lists"}