{"id":45733518,"url":"https://github.com/harperfast/astro","last_synced_at":"2026-02-25T10:04:22.641Z","repository":{"id":281090562,"uuid":"944183708","full_name":"HarperFast/astro","owner":"HarperFast","description":"A HarperDB Component for running Astro apps.","archived":false,"fork":false,"pushed_at":"2025-10-08T21:12:14.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-07T01:39:29.424Z","etag":null,"topics":["harper-app","harper-plugin"],"latest_commit_sha":null,"homepage":"","language":"Astro","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HarperFast.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-06T23:25:38.000Z","updated_at":"2025-10-16T17:40:59.000Z","dependencies_parsed_at":"2025-03-06T23:42:35.960Z","dependency_job_id":null,"html_url":"https://github.com/HarperFast/astro","commit_stats":null,"previous_names":["harperdb/astro","harperfast/astro"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/HarperFast/astro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarperFast%2Fastro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarperFast%2Fastro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarperFast%2Fastro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarperFast%2Fastro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HarperFast","download_url":"https://codeload.github.com/HarperFast/astro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarperFast%2Fastro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29817094,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T05:36:42.804Z","status":"ssl_error","status_checked_at":"2026-02-25T05:36:31.934Z","response_time":61,"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":["harper-app","harper-plugin"],"created_at":"2026-02-25T10:04:19.522Z","updated_at":"2026-02-25T10:04:22.632Z","avatar_url":"https://github.com/HarperFast.png","language":"Astro","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @harperdb/astro\n\nA [Harper Component](https://docs.harperdb.io/docs/developers/components) for running [Astro](https://astro.build/) applications.\n\n## Getting Started\n\n1. Add the [`@astrojs/node`](https://docs.astro.build/en/guides/integrations-guide/node/) integration to the Astro application, and set the mode to `'middleware'`.\n\n   1. For example:\n\n   ```js\n   import { defineConfig } from 'astro/config';\n   import node from '@astrojs/node';\n\n   export default defineConfig({\n   \tadapter: node({\n   \t\tmode: 'middleware',\n   \t}),\n   });\n   ```\n\n2. Create a `config.yaml` in the root of the Astro app containing:\n   ```yaml\n   '@harperdb/astro':\n     package: '@harperdb/astro'\n     files: './'\n   ```\n3. Run the application using Harper. For more information reference the [Harper Component documentation](https://docs.harperdb.io/docs/developers/components).\n\n## Options\n\n\u003e All configuration options are optional\n\n### `buildCommand: string`\n\nSpecify a custom build command. Defaults to `astro build`.\n\n\u003e Note: the extension will skip building if the `prebuilt` option is set to `true`.\n\n### `port: number`\n\nSpecify a port for the Astro handlers. Defaults to the Harper default port (generally 9926).\n\n### `prebuilt: boolean`\n\nWhen enabled, the extension will look for a `dist` directory in the root of the component, and skip executing the `buildCommand` if detected. Defaults to `false`.\n\n### `securePort: number`\n\nSpecify a secure port for the Astro handlers. Defaults to the Harper default secure port.\n\n## Example\n\nThis repo contains an example Astro app that is already configured to work with Harper.\n\n1. Clone the repo, and navigate to the example directory\n   ```sh\n   cd example\n   ```\n2. Install dependencies\n   ```sh\n   npm install\n   ```\n3. Run the example with Harper\n   ```sh\n   harperdb run .\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharperfast%2Fastro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharperfast%2Fastro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharperfast%2Fastro/lists"}