← Work | Open Source · 2022

vite-go

Vite integration for Go backends, done properly.

Role Open Source Author
Daily
Used in production
Pre-AI
Built before ChatGPT

Tech Stack

GoViteJavaScript

Type

Open Source
Overview

A Go package that integrates Vite's dev server and build output into Go web applications. Built because the integration didn't exist the way I needed it — and I needed it for real projects.

The Challenge

Using Vite with a Go backend required manual wiring for dev server proxying, asset serving, and production build embedding. Every project repeated the same fragile setup.

The Solution

Packaged the integration cleanly — dev mode proxies to Vite dev server automatically, production mode serves embedded build output. Drop it in and it works.