{"id":13606869,"url":"https://github.com/pauchiner/astro-command-palette","last_synced_at":"2026-05-04T22:51:02.320Z","repository":{"id":242527774,"uuid":"754523314","full_name":"pauchiner/astro-command-palette","owner":"pauchiner","description":"A lightweight, extensible and fast command palette for astro.","archived":false,"fork":false,"pushed_at":"2025-11-19T20:26:43.000Z","size":840,"stargazers_count":27,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-07T13:09:14.242Z","etag":null,"topics":["astro-components","astro-integration","astrojs","command-palette"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/astro-command-palette","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/pauchiner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":["pauchiner"]}},"created_at":"2024-02-08T08:34:52.000Z","updated_at":"2026-02-20T15:09:35.000Z","dependencies_parsed_at":"2024-06-12T11:47:32.295Z","dependency_job_id":null,"html_url":"https://github.com/pauchiner/astro-command-palette","commit_stats":null,"previous_names":["pauchiner/astro-command-palette"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pauchiner/astro-command-palette","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauchiner%2Fastro-command-palette","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauchiner%2Fastro-command-palette/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauchiner%2Fastro-command-palette/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauchiner%2Fastro-command-palette/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pauchiner","download_url":"https://codeload.github.com/pauchiner/astro-command-palette/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauchiner%2Fastro-command-palette/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32628211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: 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":["astro-components","astro-integration","astrojs","command-palette"],"created_at":"2024-08-01T19:01:13.178Z","updated_at":"2026-05-04T22:51:02.269Z","avatar_url":"https://github.com/pauchiner.png","language":"TypeScript","funding_links":["https://github.com/sponsors/pauchiner"],"categories":["Libraries"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Astro Command Palette\" src=\"./.github/assets/logo-light.svg#gh-light-mode-only\"\u003e\n  \u003cimg alt=\"Astro Command Palette\" src=\"./.github/assets/logo-dark.svg#gh-dark-mode-only\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  A minimal command palette for \u003ca href=\"https://astro.build\"\u003eAstro\u003c/a\u003e with 0 dependencies.\n  \u003cimg width=\"700\" alt=\"Showcase\" src=\"./.github/assets/showcase-light.png#gh-light-mode-only\"\u003e\n  \u003cimg width=\"700\" alt=\"Showcase\" src=\"./.github/assets/showcase-dark.png#gh-dark-mode-only\"\u003e\n\u003c/p\u003e\n\n# Getting Started\n\n## 🛠️ Installation\n```bash\nnpm install astro-command-palette\n```\n\n## 🚀 Usage\nJust by importing the component and putting inside the body, your command palette is already working.\n\n```astro\n---\nimport CommandPalette from 'astro-command-palette';\n---\n\n\u003cbody\u003e\n  \u003cCommandPalette /\u003e\n\u003c/body\u003e\n```\n\n### 💨 Creating Actions\n```html\n\u003cscript\u003e\n  import createCommandPaletteItems from 'astro-command-palette/hooks';\n  \n  createCommandPaletteItems([\n    {\n      type: 'action',\n      name: 'My New Action',\n      icon: '\u003csvg\u003e...\u003c/svg\u003e', // Optional\n      handler: () =\u003e console.log(\"Hello Word!\")\n    },\n    // A link action without icon\n    {\n      type: 'action',\n      name: 'My New Link',\n      url: 'https://github.com'\n    }\n  ])\n\u003c/script\u003e\n```\n\n### 📄 Creating Pages\nYou can also define nested pages with more actions:\n\n```html\n\u003cscript\u003e\n  import createCommandPaletteItems from 'astro-command-palette/hooks';\n  \n  createCommandPaletteItems([\n    {\n      type: 'page',\n      name: 'My New Page',\n      icon: '\u003csvg\u003e...\u003c/svg\u003e', // Optional\n      actions: [/* Define the actions inside your new page */]\n    }\n])\n\u003c/script\u003e\n```\n\n\n### 🎨 Styling\nAt the moment the only way to customize the command palette is with css variables:\n\n| CSS Variable                               | Description                                             |\n| -----------------------------------------  | ------------------------------------------------------- |\n| `--command-palette-bg-color`               | Background color of the command palette modal           |\n| `--command-palette-border-radius`          | Border radius of the command palette                    |\n| `--command-palette-border-color`           | Border color of the command palette                     |\n| `--command-palette-backdrop-color`         | Background color of the backdrop overlay                |\n| `--command-palette-header-font-size`       | Font size of the command palette header                 |\n| `--command-palette-header-bg-color`        | Background color of the header                          |\n| `--command-palette-header-text-color`      | Text color of the header                                |\n| `--command-palette-header-font-family`     | Font family of the header                               |\n| `--command-palette-header-placeholder-color` | Text color of the placeholder text in the input field |\n| `--command-palette-icons-color`            | Color of the icons in command items                     |\n| `--command-palette-items-selected`         | Background color of selected items                      |\n| `--command-palette-items-font-size`        | Font size of the command items                          |\n| `--command-palette-items-text-color`       | Text color of the command items                         |\n| `--command-palette-items-font-family`      | Font family of the command items                        |\n| `--command-palette-footer-bg-color`        | Background color of the footer                          |\n| `--command-palette-keybinds-bg-color`      | Background color of the keybinds section                |\n| `--command-palette-footer-text-color`      | Text color of the footer                                |\n| `--command-palette-footer-font-family`     | Font family of the footer                               |\n| `--command-palette-keybinds-text-color`    | Text color of the keybinds                              |\n| `--command-palette-keybinds-font-family`   | Font family of the keybinds                             |\n| `--command-palette-keybinds-border-radius` | Border radius of the keybinds                           |\n\n## 🤝 Contributing\n\nAll contributions are welcome:\n\n[CONTRIBUTING.md](CONTRIBUTING.md)\n\n[CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)\n\n\n\u003cdiv align=\"center\"\u003e\n    \u003csup\u003eWith 🧡 by Pau García Chiner\u003c/sup\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpauchiner%2Fastro-command-palette","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpauchiner%2Fastro-command-palette","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpauchiner%2Fastro-command-palette/lists"}