{"id":45139053,"url":"https://github.com/plausible/prima","last_synced_at":"2026-02-20T00:31:59.076Z","repository":{"id":321435255,"uuid":"1057304942","full_name":"plausible/prima","owner":"plausible","description":"Headless UI component library for Phoenix Liveview","archived":false,"fork":false,"pushed_at":"2026-02-11T14:57:30.000Z","size":1698,"stargazers_count":7,"open_issues_count":2,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-11T22:42:04.216Z","etag":null,"topics":["elixir","liveview","phoenix","phoenix-liveview"],"latest_commit_sha":null,"homepage":"https://prima-lingering-feather-539.fly.dev/","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plausible.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2025-09-15T14:47:43.000Z","updated_at":"2026-02-11T14:57:34.000Z","dependencies_parsed_at":"2025-10-30T20:15:24.702Z","dependency_job_id":null,"html_url":"https://github.com/plausible/prima","commit_stats":null,"previous_names":["plausible/prima"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/plausible/prima","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plausible%2Fprima","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plausible%2Fprima/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plausible%2Fprima/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plausible%2Fprima/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plausible","download_url":"https://codeload.github.com/plausible/prima/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plausible%2Fprima/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29637410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T22:32:43.237Z","status":"ssl_error","status_checked_at":"2026-02-19T22:32:38.330Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["elixir","liveview","phoenix","phoenix-liveview"],"created_at":"2026-02-20T00:31:58.595Z","updated_at":"2026-02-20T00:31:59.064Z","avatar_url":"https://github.com/plausible.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prima\n\n[![Hex.pm](https://img.shields.io/hexpm/v/prima.svg)](https://hex.pm/packages/prima)\n\n\u003e **prima** (adj., Latin)\n\u003e\n\u003e First; primary.\n\u003e – Used in alchemical texts denoting the original, undifferentiated substance from which all things are formed and upon which the alchemical work is based.\n\nPrima is a Phoenix LiveView component library providing unstyled, accessible UI components. It's designed as a reusable library that developers can integrate into Phoenix applications and style according to their needs.\n\n## Installation\n\nAdd `prima` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:prima, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\nInclude Prima's JavaScript hooks in your application:\n\n```javascript\n// assets/js/app.js\nimport { PrimaHooks } from \"prima\"\n\nlet liveSocket = new LiveSocket(\"/live\", Socket, {\n  hooks: { ...PrimaHooks },\n  // ... other options\n})\n```\n\nUse components in your templates:\n\n```heex\n\u003cPrima.Dropdown.dropdown id=\"demo-dropdown\"\u003e\n  \u003cPrima.Dropdown.dropdown_trigger\u003e\n    Open Dropdown\n  \u003c/Prima.Dropdown.dropdown_trigger\u003e\n\n  \u003cPrima.Dropdown.dropdown_menu\u003e\n    \u003cPrima.Dropdown.dropdown_item\u003eItem 1\u003c/.dropdown_item\u003e\n    \u003cPrima.Dropdown.dropdown_item\u003eItem 2\u003c/.dropdown_item\u003e\n  \u003c/Prima.Dropdown.dropdown_menu\u003e\n\u003c/Prima.Dropdown.dropdown\u003e\n```\n\n## Development\n\nThis repository is structured with the library at the root and a demo application in the `demo/` directory.\n\n### Library Development\n\n```bash\n# From root directory\nmix deps.get           # Get library dependencies\nmix compile            # Compile library\nmix assets.build       # Build library JavaScript bundle\nmix hex.build          # Build hex package\n```\n\n### Running the Demo Application\n\n```bash\n# From demo/ directory\ncd demo\nmix setup              # Full setup (deps, assets setup, assets build)\nmix phx.server         # Start development server\n```\n\nVisit `http://localhost:4000` to see all components in action. The demo application automatically reloads when you make changes to library code.\n\n### Testing\n\n```bash\n# Library tests (from root)\nmix test\n\n# Demo/integration tests (from demo/)\ncd demo\nmix test               # Run all tests (includes ExUnit and Wallaby tests)\n```\n\nThe test suite includes both unit tests and comprehensive browser-based integration tests using Wallaby to ensure all interactive behaviors work correctly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplausible%2Fprima","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplausible%2Fprima","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplausible%2Fprima/lists"}