{"id":13765200,"url":"https://github.com/Sub-Xaero/stimulus-library","last_synced_at":"2025-05-10T20:31:48.905Z","repository":{"id":40662656,"uuid":"330069052","full_name":"Sub-Xaero/stimulus-library","owner":"Sub-Xaero","description":"A set of useful pre-built and configurable StimulusJS controllers for various common scenarios","archived":false,"fork":false,"pushed_at":"2025-04-30T18:06:50.000Z","size":16171,"stargazers_count":169,"open_issues_count":3,"forks_count":17,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-30T18:55:08.458Z","etag":null,"topics":["component-library","stimulus","stimulus-js","stimulusjs"],"latest_commit_sha":null,"homepage":"https://sub-xaero.github.io/stimulus-library/#/","language":"TypeScript","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/Sub-Xaero.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["Sub-Xaero"]}},"created_at":"2021-01-16T02:38:56.000Z","updated_at":"2025-04-30T18:06:54.000Z","dependencies_parsed_at":"2024-03-20T15:44:22.956Z","dependency_job_id":"72e3b1ec-a67a-4bcc-b6ec-14f676a5edac","html_url":"https://github.com/Sub-Xaero/stimulus-library","commit_stats":{"total_commits":912,"total_committers":9,"mean_commits":"101.33333333333333","dds":"0.44627192982456143","last_synced_commit":"24b3b8e6635d24cc8bb66865478e4df8c483f24b"},"previous_names":[],"tags_count":90,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sub-Xaero%2Fstimulus-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sub-Xaero%2Fstimulus-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sub-Xaero%2Fstimulus-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sub-Xaero%2Fstimulus-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sub-Xaero","download_url":"https://codeload.github.com/Sub-Xaero/stimulus-library/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253480596,"owners_count":21915249,"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":["component-library","stimulus","stimulus-js","stimulusjs"],"created_at":"2024-08-03T16:00:35.351Z","updated_at":"2025-05-10T20:31:43.896Z","avatar_url":"https://github.com/Sub-Xaero.png","language":"TypeScript","funding_links":["https://github.com/sponsors/Sub-Xaero"],"categories":["Packages","TypeScript","**Awesome Hotwire** [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)"],"sub_categories":["Stimulus"],"readme":"# Stimulus-Library\n\n[Documentation](https://sub-xaero.github.io/stimulus-library/)  |  [Full List of Controllers](https://sub-xaero.github.io/stimulus-library/)\n\n---\n![npm](https://img.shields.io/npm/dt/stimulus-library)\n![npm bundle size (version)](https://img.shields.io/bundlephobia/minzip/stimulus-library/latest?label=minified%20size)\n---\n\n## Installation\n\nTo get started, you'll need to add the `stimulus-library` package to your project.\n\nTo do so, either add `stimulus-library` to your package.json manually\n\n```json\n{\n  \"dependencies\": {\n    \"stimulus-library\": \"latest\"\n  }\n}\n```\n\nor run\n`npm install --save stimulus-library` or `yarn add stimulus-library`\n\n\nThen, to get started, import and register the controllers you want to use.\n\n*Please Note* as below, that when registering the name for the controller, you should use `kebab-case` and omit the `-controller` suffix.\n\n```js\nimport { Application } from \"@hotwired/stimulus\";\nimport { AutoSubmitFormController } from \"stimulus-library\";\n\nconst application = Application.start();\napplication.register(\"auto-submit-form\", AutoSubmitFormController);\n```\n\n## Tree-shaking\nIf you use the ESM builds of the library, this library fully supports tree-shaking, \nonly the controllers you directly import will be bundled with your application.  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSub-Xaero%2Fstimulus-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSub-Xaero%2Fstimulus-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSub-Xaero%2Fstimulus-library/lists"}