/astro-bun

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

Primary LanguageTypeScriptMIT LicenseMIT

🚀 @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