Velohost Velohost

Astro Integration

Astro Build Info

Expose exactly what was built — and when — using a static, machine-readable file.

Usage snapshot

207
Downloads in the last 30 days
Latest npm version · v1.0.1
Source: npm registry

Why this plugin exists

Teams often need to know which build is deployed, when it was generated, and which site it belongs to.

These answers are usually hidden in CI logs, guessed from HTML, or leaked via debug endpoints.

Astro Build Info exposes build metadata cleanly and deterministically, without runtime logic or environment leakage.

What it delivers

Design principles

  • Static-first correctness
  • Deterministic output
  • Explicit scope
  • No runtime claims
  • Zero environment leakage

What this plugin does

  • Generates a static /build-info.json file
  • Includes build timestamp
  • Includes Astro output mode
  • Includes configured site URL
  • Machine-readable JSON output
  • Cache-safe and CDN-friendly
  • Zero runtime JavaScript

Installation

npm install astro-build-info

The plugin runs during astro build and writes a static build-info.json file to the output directory.

Project links

Source code, releases, documentation, and contribution guidelines.

Want the deep dive?

Read the FAQs for implementation details, design rationale, and integration guidance.

View plugin FAQs