{"id":13880659,"url":"https://github.com/marcoroth/stimulus-parser","last_synced_at":"2025-04-07T13:09:58.350Z","repository":{"id":198583873,"uuid":"698972968","full_name":"marcoroth/stimulus-parser","owner":"marcoroth","description":"Statically analyze Stimulus controllers in your project.","archived":false,"fork":false,"pushed_at":"2025-04-04T15:36:51.000Z","size":1476,"stargazers_count":36,"open_issues_count":16,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T03:32:12.806Z","etag":null,"topics":["hacktoberfest","hotwire","parser","static-analysis","stimulus"],"latest_commit_sha":null,"homepage":"https://hotwire.io/ecosystem/tooling/stimulus-parser","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/marcoroth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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},"funding":{"github":"marcoroth"}},"created_at":"2023-10-01T14:50:06.000Z","updated_at":"2025-03-18T02:30:43.000Z","dependencies_parsed_at":"2023-12-25T03:19:41.589Z","dependency_job_id":"75539316-8ae7-4676-b30d-aa670f473834","html_url":"https://github.com/marcoroth/stimulus-parser","commit_stats":{"total_commits":329,"total_committers":6,"mean_commits":"54.833333333333336","dds":0.4042553191489362,"last_synced_commit":"7f772fa28f5da7eb6e2f0b7b78d33b488acf1a06"},"previous_names":["marcoroth/stimulus-parser"],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fstimulus-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fstimulus-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fstimulus-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoroth%2Fstimulus-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcoroth","download_url":"https://codeload.github.com/marcoroth/stimulus-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430836,"owners_count":20937873,"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":["hacktoberfest","hotwire","parser","static-analysis","stimulus"],"created_at":"2024-08-06T08:03:21.516Z","updated_at":"2025-04-07T13:09:58.315Z","avatar_url":"https://github.com/marcoroth.png","language":"TypeScript","funding_links":["https://github.com/sponsors/marcoroth"],"categories":["TypeScript","**Awesome Hotwire** [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)"],"sub_categories":["Stimulus"],"readme":"\u003ch1 align=\"center\"\u003estimulus-parser\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/marcoroth/stimulus-parser\"\u003e\n    \u003cimg src=\"https://github.com/marcoroth/stimulus-parser/actions/workflows/tests.yml/badge.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/stimulus-parser\"\u003e\n    \u003cimg alt=\"NPM Version\" src=\"https://img.shields.io/npm/v/stimulus-parser?logo=npm\u0026color=38C160\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/stimulus-parser\"\u003e\n    \u003cimg alt=\"NPM Downloads\" src=\"https://img.shields.io/npm/dm/stimulus-parser?logo=npm\u0026color=38C160\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://bundlephobia.com/package/stimulus-parser\"\u003e\n    \u003cimg alt=\"NPM Bundle Size\" src=\"https://img.shields.io/bundlephobia/minzip/stimulus-parser?label=bundle%20size\u0026logo=npm\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n## Installation\n\nTo add `stimulus-parser` to your project, run the following command in your terminal:\n\n```bash\nyarn add stimulus-parser\n```\n\n## Usage\n\n```js\nimport { Project } from \"stimulus-parser\"\n\nconst project = new Project(\"/Users/user/path/to/project\")\n\nconst controllers = project.controllerDefinitions\nconst controller = controllers[0]\n\nconsole.log(controller.actionNames)\n// =\u003e [\"connect\", \"click\", \"disconnect\"]\n\nconsole.log(controller.targetNames)\n// =\u003e [\"name\", \"output\"]\n\nconsole.log(controller.classNames)\n// =\u003e [\"loading\"]\n\nconsole.log(controller.values)\n// =\u003e [{ url: { type: \"String\", default: \"\" } }]\n```\n\n## Playground\n\nYou can inspect parse results on the hosted playground at https://stimulus-parser.hotwire.io.\n\n## Development\n\nTo run the tests:\n\n```bash\nyarn install\nyarn build\nyarn test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoroth%2Fstimulus-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcoroth%2Fstimulus-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoroth%2Fstimulus-parser/lists"}