Skip to content

Supercharge your Astro projects with the power of Bun! 🌟 - Bun Adapter

License

Notifications You must be signed in to change notification settings

Zastinian/astro-bun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ @hedystia/astro-bun

Supercharge your Astro projects with the power of Bun! 🌟

npm version npm downloads license

🌈 Features

  • πŸš„ Lightning-fast performance with Bun integration
  • πŸ”§ Easy setup - get started in minutes
  • πŸ”„ Seamless compatibility with Astro projects
  • πŸ› οΈ Unix socket support - easily run your Bun server with Unix sockets
  • πŸ› οΈ Flexible configuration options

πŸš€ Quick Start

  1. Install the package:
npm install @hedystia/astro-bun
  1. Add it to your Astro config:
import { defineConfig } from "astro/config";
import bun from "@hedystia/astro-bun";

export default defineConfig({
  // ... other config options
  adapter: bun(),
});
  1. Build your Astro project:
astro build
  1. Run your project with Bun:
bun run ./dist/server/entry.mjs

🎨 Configuration

Customize your setup with these options:

import { defineConfig } from "astro/config";
import bun from "@hedystia/astro-bun";

export default defineConfig({
  adapter: bun(),
  output: "static",
  server: {
    "host": "0.0.0.0",
    "port": 3000,
  }
});

🌟 Why Astro Bun?

  • Blazing Fast: Harness the speed of Bun for your Astro projects
  • Modern Development: Stay ahead with cutting-edge web technologies
  • Optimized Performance: Fine-tuned for efficiency and speed

πŸ“œ License

This project is licensed under the MIT License.

πŸ™ Acknowledgements

  • Astro - The web framework that powers this adapter
  • Bun - The incredible JavaScript runtime