{"id":31227595,"url":"https://github.com/upstatement/toolbelt","last_synced_at":"2025-09-22T04:55:44.271Z","repository":{"id":273560414,"uuid":"903398939","full_name":"Upstatement/toolbelt","owner":"Upstatement","description":"Toolbelt is a headless and unstyled component library for common accessibility patterns, built on top of Alpine.js.","archived":false,"fork":false,"pushed_at":"2025-09-08T21:45:43.000Z","size":708,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-10T13:56:06.057Z","etag":null,"topics":["a11y","accessibility","alpinejs","components","headless"],"latest_commit_sha":null,"homepage":"https://toolbelt-ui.netlify.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Upstatement.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-12-14T14:01:18.000Z","updated_at":"2025-09-08T21:45:47.000Z","dependencies_parsed_at":"2025-01-21T16:46:35.626Z","dependency_job_id":"0ede8366-06ec-4766-a91c-f3df0e199fa5","html_url":"https://github.com/Upstatement/toolbelt","commit_stats":null,"previous_names":["upstatement/toolbelt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Upstatement/toolbelt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upstatement%2Ftoolbelt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upstatement%2Ftoolbelt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upstatement%2Ftoolbelt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upstatement%2Ftoolbelt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Upstatement","download_url":"https://codeload.github.com/Upstatement/toolbelt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upstatement%2Ftoolbelt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276348327,"owners_count":25626605,"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","status":"online","status_checked_at":"2025-09-22T02:00:08.972Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["a11y","accessibility","alpinejs","components","headless"],"created_at":"2025-09-22T04:55:39.479Z","updated_at":"2025-09-22T04:55:44.256Z","avatar_url":"https://github.com/Upstatement.png","language":"JavaScript","readme":"# Toolbelt\n\n[![Netlify Status](https://api.netlify.com/api/v1/badges/ed3577eb-c502-4ab1-86f4-9db267a0086c/deploy-status)](https://app.netlify.com/sites/upstatement-toolbelt/deploys) [![Built with Starlight](https://astro.badg.es/v2/built-with-starlight/tiny.svg)](https://starlight.astro.build)\n\n**Toolbelt** is a headless and unstyled component library for common accessibility patterns, built on top of [Alpine.js](https://alpinejs.dev/). The library is tech-agnostic. As long as you're producing HTML, Toolbelt is compatible.\n\n[Upstatement](https://upstatement.com/) builds websites for various brands and with various technologies but accessibility _conformance_ is a constant across our work. Toolbelt is meant to bridge the knowledge gap in our web accessibility practice by providing components that adhere to [WCAG](https://www.w3.org/WAI/standards-guidelines/wcag/) and [WAI-ARIA](https://www.w3.org/WAI/standards-guidelines/aria/) patterns out of the box, regardless of the technology stack we use.\n\n## Installation\n\nThere are two ways to install Toolbelt. In either case, it might be helpful to read through how [installation works for Alpine core](https://alpinejs.dev/essentials/installation). The following guide skips some details that are already covered in Alpine’s documentation.\n\n### From a script tag\n\nThe easiest way to install Toolbelt is to include its CDN link. Because Toobelt is an Alpine plugin, you will have to include Alpine as a dependency. In addition, the [Focus](https://alpinejs.dev/plugins/focus) plugin is a required dependency for Toolbelt. Notice that Toolbelt and Alpine plugins come before Alpine core.\n\nInclude the following script tags in your `\u003chead\u003e`:\n\n```html\n\u003chead\u003e\n  \u003c!-- Toolbelt --\u003e\n  \u003cscript\n    src=\"https://cdn.jsdelivr.net/npm/@upstatement/toolbelt@1.0.0-alpha.1/dist/plugin.cdn.js\"\n    defer\n  \u003e\u003c/script\u003e\n\n  \u003c!-- Focus plugin (Toolbelt dependency) --\u003e\n  \u003cscript\n    src=\"https://cdn.jsdelivr.net/npm/@alpinejs/focus@3.14.7/dist/cdn.min.js\"\n    defer\n  \u003e\u003c/script\u003e\n\n  \u003c!-- Alpine core --\u003e\n  \u003cscript\n    src=\"https://cdn.jsdelivr.net/npm/alpinejs@3.14.7/dist/cdn.min.js\"\n    defer\n  \u003e\u003c/script\u003e\n\u003c/head\u003e\n```\n\n### As a module\n\nIf you prefer bundling Toolbelt and its dependencies in your own Javascript bundle, you can install these packages from the npm registry.\n\n1. Install the following packages:\n\n   ```sh\n    npm install alpinejs @alpinejs/focus @upstatement/toolbelt\n   ```\n\n1. Import and initialize the packages like so:\n\n   ```js\n   import Alpine from \"alpinejs\";\n   import focus from \"@alpinejs/focus\";\n   import toolbelt from \"@upstatement/toolbelt\";\n\n   window.Alpine = Alpine;\n\n   Alpine.plugin(toolbelt);\n   Alpine.plugin(focus);\n\n   Alpine.start();\n   ```\n\n## Contributing\n\n### Repository Structure\n\nThis repository hosts the [Astro Starlight](https://starlight.astro.build/) documentation site and library files for Toolbelt.\n\n```\ntoolbelt\n├── public                # (Astro) Asset files\n├── scripts               # (Toolbelt) Build scripts\n├── src\n│   ├── components        # (Astro) Components\n│   ├── content           # (Astro) Markdown documentation files\n│   └── lib               # (Toolbelt) Library files\n│       ├── __tests__     # (Toolbelt) Test suites\n│       ├── builds        # (Toolbelt) Build files (e.g. CDN, ESM)\n│       └── toolbelt      # (Toolbelt) Components\n├── tailwind.config.mjs   # (Astro) Tailwind configuration\n└── vitest.config.js      # (Toolbelt) Vitest configuration\n```\n\n### Getting Started\n\n1. Install and use specified Node version.\n\n```sh\nnvm use\n```\n\n2. Install repository dependencies.\n\n```sh\nnpm install\n```\n\n3. If you're working on the Astro site, start the local dev server. You can view the website at `localhost:3000`\n\n```sh\nnpm run dev\n```\n\n4. If you're working on Toolbelt, start the tests on watch mode. This is to encourage test-driven development (TDD).\n\n```sh\nnpm run test:watch\n```\n\n### Commands\n\n| Command                 | Action                                      |\n| ----------------------- | ------------------------------------------- |\n| `npm install`           | Installs dependencies                       |\n| `npm run dev`           | Starts local dev server at `localhost:3000` |\n| `npm run build`         | Build the production site to `./dist/`      |\n| `npm run test`          | Run tests                                   |\n| `npm run test:watch`    | Run tests on watch mode                     |\n| `npm run package:build` | Build the production packages               |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupstatement%2Ftoolbelt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fupstatement%2Ftoolbelt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupstatement%2Ftoolbelt/lists"}