{"id":15099269,"url":"https://github.com/dfirebaugh/knoll","last_synced_at":"2026-01-07T02:09:50.206Z","repository":{"id":247489354,"uuid":"825549226","full_name":"dfirebaugh/knoll","owner":"dfirebaugh","description":"gallery for custom html elements","archived":false,"fork":false,"pushed_at":"2024-07-09T02:12:11.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T17:45:50.284Z","etag":null,"topics":["components","custom-html-elements","design-systems","style-guide","web-components"],"latest_commit_sha":null,"homepage":"","language":"Go","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/dfirebaugh.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-07-08T04:03:36.000Z","updated_at":"2024-07-09T02:12:10.000Z","dependencies_parsed_at":"2024-07-09T03:28:25.535Z","dependency_job_id":null,"html_url":"https://github.com/dfirebaugh/knoll","commit_stats":null,"previous_names":["dfirebaugh/knoll"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfirebaugh%2Fknoll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfirebaugh%2Fknoll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfirebaugh%2Fknoll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfirebaugh%2Fknoll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dfirebaugh","download_url":"https://codeload.github.com/dfirebaugh/knoll/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245855190,"owners_count":20683469,"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":["components","custom-html-elements","design-systems","style-guide","web-components"],"created_at":"2024-09-25T17:09:07.483Z","updated_at":"2026-01-07T02:09:50.091Z","avatar_url":"https://github.com/dfirebaugh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Knoll\n\n[demo](https://dfirebaugh.github.io/knoll/?element=purple+button)\n\nKnoll is a minimalistic gallery for custom html elements which can be used to\nhelp you develop out of band from your main application or as a tool for\ndocumentation.\n\n### Installation\n\n```sh\ngo install github.com/dfirebaugh/knoll@latest\n```\n\n\u003e make sure `~/go/bin` is in your path\n\n### Usage\n\n1. Create a YAML configuration file (e.g., `config.yaml`) that defines your\n   custom elements. Example config below.\n\n2. Run Knoll to generate the static site:\n   ```sh\n   knoll --output output config.yaml\n   ```\n\n3. Optionally, serve the generated static site:\n   ```sh\n   knoll --serve --port 8080 --output output config.yaml\n   ```\n\n   This will start a web server at `http://localhost:8080` serving the generated\n   files from the `output` directory.\n\n### Example config\n\n```yaml\n   scripts:\n     - examples/button.js\n\n   elements:\n     - name: \"purple button\"\n       tag: \"my-button\"\n       attributes:\n         - name: \"label\"\n           type: \"string\"\n           default: \"Click Me\"\n         - name: \"color\"\n           type: \"string\"\n           default: \"white\"\n         - name: \"background-color\"\n           type: \"string\"\n           default: \"blue\"\n       exampleData:\n         label: \"Submit\"\n         color: \"white\"\n         background-color: \"purple\"\n       script: \"examples/button.js\"\n       properties:\n         - name: \"disabled\"\n           type: \"boolean\"\n           default: false\n       events:\n         - name: \"button-click\"\n           description: \"Triggered when the button is clicked.\"\n\n     - name: \"green button\"\n       tag: \"my-button\"\n       attributes:\n         - name: \"label\"\n           type: \"string\"\n           default: \"Click Me\"\n         - name: \"color\"\n           type: \"string\"\n           default: \"white\"\n         - name: \"background-color\"\n           type: \"string\"\n           default: \"blue\"\n       exampleData:\n         label: \"Test Button\"\n         color: \"white\"\n         background-color: \"green\"\n       script: \"examples/button.js\"\n       properties:\n         - name: \"disabled\"\n           type: \"boolean\"\n           default: false\n       events:\n         - name: \"button-click\"\n           description: \"Triggered when the button is clicked.\"\n\n     - name: \"card\"\n       tag: \"my-card\"\n       attributes:\n         - name: \"title\"\n           type: \"string\"\n           default: \"Card Title\"\n         - name: \"content\"\n           type: \"string\"\n           default: \"Card Content\"\n       exampleData:\n         title: \"Welcome\"\n         content: \"This is an example card\"\n       script: \"examples/card.js\"\n       properties: []\n       events: []\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfirebaugh%2Fknoll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdfirebaugh%2Fknoll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfirebaugh%2Fknoll/lists"}