{"id":25450836,"url":"https://github.com/magnusmay/astro-worker-assets","last_synced_at":"2025-05-16T09:36:38.272Z","repository":{"id":277995033,"uuid":"934166945","full_name":"magnusmay/astro-worker-assets","owner":"magnusmay","description":"A template for building high-performance Astro applications with Cloudflare Workers and Assets. Optimized for developer experience and global content delivery.","archived":false,"fork":false,"pushed_at":"2025-02-17T11:40:01.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-17T12:38:09.373Z","etag":null,"topics":["astro","cdn","cloudflare-workers","performance","serverless","static-site","template","typescript","web-development"],"latest_commit_sha":null,"homepage":null,"language":"Astro","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/magnusmay.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":"2025-02-17T11:38:58.000Z","updated_at":"2025-02-17T11:50:29.000Z","dependencies_parsed_at":"2025-02-17T12:38:10.637Z","dependency_job_id":"4e76fc4c-9aa7-4845-8214-7c34da48d62c","html_url":"https://github.com/magnusmay/astro-worker-assets","commit_stats":null,"previous_names":["magnusmay/astro-worker-assets"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magnusmay%2Fastro-worker-assets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magnusmay%2Fastro-worker-assets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magnusmay%2Fastro-worker-assets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magnusmay%2Fastro-worker-assets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magnusmay","download_url":"https://codeload.github.com/magnusmay/astro-worker-assets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254505202,"owners_count":22082153,"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":["astro","cdn","cloudflare-workers","performance","serverless","static-site","template","typescript","web-development"],"created_at":"2025-02-17T22:16:17.501Z","updated_at":"2025-05-16T09:36:38.201Z","avatar_url":"https://github.com/magnusmay.png","language":"Astro","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AstroWorkerAssets\n\nA template for building Astro applications with Cloudflare Workers and Assets, optimized for performance and developer experience.\n\n## Features\n\n- 🚀 [Astro](https://astro.build) for fast, content-focused websites\n- ⚡️ [Cloudflare Workers](https://workers.cloudflare.com/) for serverless deployment\n- 📦 Asset handling with Cloudflare's global CDN\n- 🔧 TypeScript support out of the box\n- 🛠️ Development tools:\n  - Wrangler for local development and deployment\n  - Smart placement for optimal performance\n  - Built-in observability\n\n## Prerequisites\n\n- Node.js (Latest LTS version recommended)\n- [Wrangler CLI](https://developers.cloudflare.com/workers/wrangler/install-and-update/) installed globally\n- A Cloudflare account\n\n## Getting Started\n\n1. Create a new project using this template:\n\n   ```bash\n   git clone https://github.com/yourusername/astro-worker-assets.git my-project\n   cd my-project\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n3. Generate Worker types:\n\n   ```bash\n   npm run types\n   ```\n\n4. Start the development server:\n   ```bash\n   npm run dev\n   ```\n\n## Scripts\n\n- `npm run dev` - Start the Astro development server\n- `npm run build` - Build the project for production\n- `npm run preview` - Preview the production build locally using Wrangler\n- `npm run deploy` - Deploy to Cloudflare Workers\n- `npm run types` - Generate TypeScript types for Cloudflare Workers\n\n## Project Structure\n\n```\n/\n├── src/\n│   ├── components/\n│   ├── layouts/\n│   └── pages/\n├── public/\n│   └── .assetsignore    # Assets to exclude from deployment\n├── astro.config.mjs     # Astro configuration\n├── wrangler.jsonc       # Cloudflare Workers configuration\n└── tsconfig.json        # TypeScript configuration\n```\n\n## Configuration\n\n### Astro Configuration\n\nThe project uses `@astrojs/cloudflare` adapter with platform proxy enabled. You can modify the configuration in `astro.config.mjs`.\n\n### Cloudflare Workers Configuration\n\nThe `wrangler.jsonc` file contains all the Cloudflare Workers-specific configuration:\n\n- Asset binding for static files\n- Node.js compatibility settings\n- Smart placement for optimal performance\n- Observability settings\n\n## Deployment\n\n1. Make sure you're logged in to Cloudflare:\n\n   ```bash\n   wrangler login\n   ```\n\n2. Deploy your application:\n   ```bash\n   npm run deploy\n   ```\n\n## Development\n\n- The development server runs on `http://localhost:4321` by default\n- Changes to files in `src/` will trigger hot module replacement\n- The `preview` command will build and run your application locally using Wrangler\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nMIT License - feel free to use this template for your own projects.\n\n## Support\n\nFor questions and support:\n\n- [Astro Documentation](https://docs.astro.build)\n- [Cloudflare Workers Documentation](https://developers.cloudflare.com/workers/)\n- [Create an issue](https://github.com/yourusername/astro-worker-assets/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagnusmay%2Fastro-worker-assets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagnusmay%2Fastro-worker-assets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagnusmay%2Fastro-worker-assets/lists"}