{"id":17275114,"url":"https://github.com/daun/stimuli","last_synced_at":"2025-03-26T13:42:54.792Z","repository":{"id":57370966,"uuid":"284947039","full_name":"daun/stimuli","owner":"daun","description":"Useful Stimulus controllers","archived":false,"fork":false,"pushed_at":"2020-08-04T10:56:39.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-26T06:03:02.737Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/daun.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}},"created_at":"2020-08-04T10:25:54.000Z","updated_at":"2020-08-20T00:25:47.000Z","dependencies_parsed_at":"2022-09-09T01:13:05.558Z","dependency_job_id":null,"html_url":"https://github.com/daun/stimuli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fstimuli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fstimuli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fstimuli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daun%2Fstimuli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daun","download_url":"https://codeload.github.com/daun/stimuli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245667101,"owners_count":20652896,"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":[],"created_at":"2024-10-15T08:55:28.197Z","updated_at":"2025-03-26T13:42:54.770Z","avatar_url":"https://github.com/daun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stimuli ⚡️\n\n[![NPM version](https://img.shields.io/npm/v/stimuli?color=97aab4)](https://www.npmjs.com/package/stimuli)\n[![GitHub license](https://img.shields.io/github/license/daun/stimuli?color=97aab4)](./LICENSE)\n[![Bundle size](https://img.shields.io/bundlephobia/minzip/stimuli?color=97aab4\u0026label=size)](https://bundlephobia.com/result?p=stimuli)\n\u003c!-- [![GitHub (pre-)release date](https://img.shields.io/github/release-date-pre/daun/stimuli?label=updated)](https://github.com/daun/stimuli/releases) --\u003e\n\nCollection of useful single-responsibility Stimulus controllers.\n\n**Work in progress**. Needs proper tests.\n\n## Installation\n\n```bash\nnpm install stimuli\n```\n\n## Usage\n\nImport and register the desired controllers with your application.\n\n```js\nimport { Controller } from 'stimulus'\nimport { MeasureController } from 'stimuli'\n\nconst application = Application.start()\napplication.register('measure', MeasureController)\n```\n\n## Controllers\n\n### Autoplay\n\nAutoplay video or audio files. Retries with a muted version of the video if it\nfailes on first try.\n\n### Measure\n\nMeasure the deimensions of an element and stores the value in a CSS custom\nproperty.\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaun%2Fstimuli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaun%2Fstimuli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaun%2Fstimuli/lists"}