{"id":17022746,"url":"https://github.com/signalkuppe/fisarmonica","last_synced_at":"2026-02-26T19:32:30.385Z","repository":{"id":35191672,"uuid":"216018695","full_name":"signalkuppe/fisarmonica","owner":"signalkuppe","description":"A simple and accessible vanilla js accordion plugin","archived":false,"fork":false,"pushed_at":"2022-12-06T22:01:15.000Z","size":325,"stargazers_count":2,"open_issues_count":8,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T15:39:57.776Z","etag":null,"topics":["accessible","accessible-accordions","accordion","accordion-plugin","vanilla-javascript","vanilla-js","vanillajs"],"latest_commit_sha":null,"homepage":"https://fisarmonica.netlify.com/","language":"HTML","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/signalkuppe.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":"2019-10-18T12:26:04.000Z","updated_at":"2023-05-18T10:12:00.000Z","dependencies_parsed_at":"2023-01-15T15:51:42.428Z","dependency_job_id":null,"html_url":"https://github.com/signalkuppe/fisarmonica","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/signalkuppe/fisarmonica","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signalkuppe%2Ffisarmonica","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signalkuppe%2Ffisarmonica/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signalkuppe%2Ffisarmonica/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signalkuppe%2Ffisarmonica/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/signalkuppe","download_url":"https://codeload.github.com/signalkuppe/fisarmonica/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signalkuppe%2Ffisarmonica/sbom","scorecard":{"id":823101,"data":{"date":"2025-08-18","repo":{"name":"github.com/signalkuppe/fisarmonica","commit":"6e9f7cc5afcca71d1345be380024baa66ba59c42"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":1.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"39 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-jc84-3g44-wf2q","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-px4h-xg32-q955","Warn: Project is vulnerable to: GHSA-3j8f-xvm3-ffx4","Warn: Project is vulnerable to: GHSA-4p35-cfcx-8653","Warn: Project is vulnerable to: GHSA-7f3x-x4pr-wqhj","Warn: Project is vulnerable to: GHSA-jpp7-7chh-cf67","Warn: Project is vulnerable to: GHSA-q6wq-5p59-983w","Warn: Project is vulnerable to: GHSA-j9fq-vwqv-2fm2","Warn: Project is vulnerable to: GHSA-pqw5-jmp5-px4v","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T16:05:10.255Z","repository_id":35191672,"created_at":"2025-08-23T16:05:10.255Z","updated_at":"2025-08-23T16:05:10.255Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29868536,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T18:42:30.764Z","status":"ssl_error","status_checked_at":"2026-02-26T18:41:47.936Z","response_time":89,"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":["accessible","accessible-accordions","accordion","accordion-plugin","vanilla-javascript","vanilla-js","vanillajs"],"created_at":"2024-10-14T07:11:08.647Z","updated_at":"2026-02-26T19:32:30.357Z","avatar_url":"https://github.com/signalkuppe.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fisarmonica\n\n\u003e A simple and accessible vanilla js accordion plugin (\u003c1kb minifed and gzipped)\n\n[DEMO](https://fisarmonica.netlify.com/)\n\n## Installation\n\n**NPM**\n\n```shell\nnpm install fisarmonica --save\n```\n\nInclude css and js files\n\n```html\n\u003clink rel=\"stylesheet\" media=\"screen\" href=\"\u003cpath-to-lib\u003e/fisarmonica.css\" /\u003e\n\u003cscript src=\"\u003cpath-to-lib\u003e/fisarmonica.js\"\u003e\u003c/script\u003e\n```\n\n**CDN**\n\nBe sure to use the latest version\n\n```html\n\u003clink\n    rel=\"stylesheet\"\n    media=\"screen\"\n    href=\"https://cdn.jsdelivr.net/npm/fisarmonica@1.3.5/dist/fisarmonica.min.css\"\n/\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/fisarmonica@1.3.5/dist/fisarmonica.min.js\"\u003e\u003c/script\u003e\n```\n\nPrepare the base markup\n\n```html\n\u003cdl data-fisarmonica\u003e\n    \u003cdt\u003e\n        \u003cbutton\u003eAccordion Title 1\u003c/button\u003e\n    \u003c/dt\u003e\n    \u003cdd\u003e\n        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod\n        tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim\n        veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea\n        commodo consequat.\n    \u003c/dd\u003e\n    \u003cdt\u003e\n        \u003cbutton\u003eAccordion Title 2\u003c/button\u003e\n    \u003c/dt\u003e\n    \u003cdd\u003e\n        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod\n        tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim\n        veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea\n        commodo consequat.\n    \u003c/dd\u003e\n    \u003cdt\u003e\n        \u003cbutton\u003eAccordion Title 3\u003c/button\u003e\n    \u003c/dt\u003e\n    \u003cdd\u003e\n        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod\n        tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim\n        veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea\n        commodo consequat.\n    \u003c/dd\u003e\n\u003c/dl\u003e\n```\n\nInitialize the plugin\n\n```js\nvar fisarmonica = new Fisarmonica();\n```\n\n## Options\n\n### selector\n\nType: `String`\nDefault value: `[data-fisarmonica]`\n\nThe root element selector\n\n### keepPanelsOpen\n\nType: `Boolean`\nDefault value: `false`\n\nIf set to true all the panels will remain open\n\n### theme\n\nType: `Object`\nDefault value:\n\n```js\n{\n  /* Root element */\n  fisarmonicaOuterBorderWidth: '3px',\n  fisarmonicaInnerBorderWidth: '1px',\n  fisarmonicaBorderRadius: '5px',\n  fisarmonicaPadding: '1em',\n  fisarmonicaBorderColor: 'Gray',\n  fisarmonicaBorderColorFocus: 'SteelBlue',\n  fisarmonicaInnerBorderColorFocus: 'Gray',\n\n  /* Arrows */\n  fisarmonicaArrowWidth: '0.75em',\n  fisarmonicaArrowThickness: '3px',\n  fisarmonicaArrowColor: 'Gray',\n  fisarmonicaArrowColorFocus: 'SteelBlue',\n  fisarmonicaArrowColorDisabled: 'Gray',\n\n  /* Buttons */\n  fisarmonicaButtonFontFamily: 'inherit',\n  fisarmonicaButtonFontSize: 'inherit',\n  fisarmonicaButtonFontWeight: 'inherit',\n  fisarmonicaButtonColor: 'black',\n  fisarmonicaButtonColorFocus: 'black',\n  fisarmonicaButtonColorDisabled: 'Grey',\n  fisarmonicaButtonBackground: 'white',\n  fisarmonicaButtonBackgroundFocus: 'AliceBlue',\n  fisarmonicaButtondBackgroundDisabled: 'WhiteSmoke',\n\n  /* Panels */\n  fisarmonicaPanelFontFamily: 'inherit',\n  fisarmonicaPanelFontSize: 'inherit',\n  fisarmonicaPanelFontWeight: 'inherit',\n  fisarmonicaPanelColor: 'black',\n  fisarmonicaPanelBackground: 'white',\n  fisarmonicaPanelTransitionOrigin: 'top',\n  fisarmonicaPanelTransitionDuration: '0.15s',\n  fisarmonicaPanelTransitionTimingFunction: 'linear'\n}\n```\n\nYou can **ovveride any prop** you like. Css styles are set with custom-properties so [check browser support](https://caniuse.com/#feat=css-variables)\n\nYou can also pass your own custom properties as values, to match your site settings\n\n`fisarmonicaButtonBackgroundFocus: 'var(--myCustomVar)'`\n\n## Methods\n\n### open\n\n```js\n// pass a zero-index array of panels to open ([1,2] =\u003e opens 2nd and 3rd panel)\n// if no argument is passed all the panels will open\n\nvar fisarmonica = new Fisarmonica();\nfisarmonica.open([1, 2]);\n```\n\n### close\n\n```js\n// pass a zero-index array of panels to close ([1,2] =\u003e closes 2nd and 3rd panel)\n// if no argument is passed all the panels will close\n\nvar fisarmonica = new Fisarmonica();\nfisarmonica.close([1, 2]);\n```\n\n### disable\n\n```js\n// pass a zero-index array of panels to disable ([1,2] =\u003e disables 2nd and 3rd panel)\n// if no argument is passed all the panels will be disabled\n\nvar fisarmonica = new Fisarmonica();\nfisarmonica.disable([1, 2]);\n```\n\n### enable\n\n```js\n// pass a zero-index array of panels to enable ([1,2] =\u003e enables 2nd and 3rd panel)\n// if no argument is passed all the panels will be enabled\n\nvar fisarmonica = new Fisarmonica();\nfisarmonica.enable([1, 2]);\n```\n\n## Keyboard events\n\n-   `Enter` or `Space` = Expands/Collapses Panel\n-   `Tab` = Move to next focusable element\n-   `Shift + Tab` = Move to previous focusable element\n-   `↑ ↓` = Cycle elements when focused\n-   `Home` = Focus first element\n-   `End` = Focus last element\n\nfisarmonica means accordion in italian 😉\n\n[https://it.wikipedia.org/wiki/Fisarmonica](https://it.wikipedia.org/wiki/Fisarmonica)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsignalkuppe%2Ffisarmonica","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsignalkuppe%2Ffisarmonica","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsignalkuppe%2Ffisarmonica/lists"}