GLIDEGo · Web UI

Glide / docs

Build desktop apps with Go and your frontend.

01

Overview

Glide combines a Go backend with a web-based frontend so you can build native desktop apps using your preferred JS framework.

02

Requirements

  • Go 1.21+
  • Node.js 14+
  • Air (Go hot-reload)
  • One package manager: npm, yarn, pnpm, bun, or deno
03

Installation

TipOn Linux, add $(go env GOPATH)/bin to your PATH to use glide globally.

Go install

bash
go install github.com/JasnRathore/glide@latest

Ensure your Go bin directory is on PATH so the glide command is available.

powershell
glide --help

Download Release Setup

Download the latest release Setup

Download latest releaseFile: GlideSetup.exe
  • Run the installer and follow the prompts

Run the binary

powershell
glide --help

Download binary

Download the latest release asset and add it to your PATH.

  • Add the exe to your PATH

Run the binary

powershell
glide --help

Build from source

bash
git clone https://github.com/JasnRathore/glide cd glide
bash
go build -o glide
04

Create a Project

bash
glide init

The initializer scaffolds a Vite frontend, sets up the Go backend, and configures hot reload.

05

Development Workflow

bash
glide dev
  • Starts the frontend dev server.
  • Runs the Go backend with hot reload via Air.
  • Connects the frontend and backend bridge.
06

Go ↔ JS Bridge

javascript
import { callWindowFunction } from './glide/glide.js' const greeting = callWindowFunction('Greet', 'World') console.log(greeting)
go
func Greet(name string) string { return fmt.Sprintf("Hello, %s", name) } func App() *glide.App { funcs := []interface{}{Greet} app.InvokeHandler(funcs) return app }
07

Build

bash
glide build

The compiled binary lands in src-glide/target and includes your frontend assets.

08

Project Structure

text
your-project/ ├── src/ # Frontend (Vite) │ └── glide/ # Glide JS/TS utilities ├── src-glide/ # Go backend │ ├── app/ │ ├── main.go │ ├── build.go │ └── .air.toml └── glide.config.json
Found an error? Docs are open source.Edit on GitHub