GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gogpu/editor: Pure Go Text/Code Editor Widget — GPU-accelerated, embeddable, zero CGO. Like Monaco for Go.

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
.golangci.yml
.golangci.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 

Repository files navigation

GoGPU Logo

gogpu/editor

Pure Go Text/Code Editor Widget
GPU-accelerated, embeddable, zero CGO.

License Go Version


Overview

gogpu/editor is a reusable native text and code editor widget for Go — like Monaco Editor but for Go desktop and WASM applications. GPU-accelerated rendering via gogpu/gg, widget system via gogpu/ui.

Key Goals

  • Embeddable — drop into any Go application as a widget
  • GPU-accelerated — glyph atlas, ClearType LCD, MSDF fallback
  • Pure Go — zero CGO, cross-compiles everywhere (Windows, macOS, Linux, WASM)
  • Code editor — syntax highlighting, line numbers, code folding
  • Rich text — multi-font, styled runs, WYSIWYG editing
  • IDE-ready — LSP client, DAP client, minimap, diagnostics

Status

🚧 Early development. Architecture defined in ADR-001 and ADR-002 (internal).

Architecture

gogpu/editor/
├── document/     # Piece Table + persistent B-tree, undo/redo, ChangeSet
├── layout/       # Text layout engine, line breaking, styled runs
├── view/         # Editor widget, gutter, cursor, selection, minimap
├── input/        # Keyboard, mouse, IME
├── syntax/       # Syntax highlighting (TextMate, Tree-sitter)
└── lsp/          # Language Server Protocol client (future)

Enterprise References

Editor Key Pattern What We Take
VS Code PieceTree document model Efficient insert/delete data structure
Monaco MVVM, decorations Separation of model, view, decorations
Scintilla Simple Model-View 25 years proven, portable
Zed GPU-accelerated, GPUI GPU text rendering patterns
CodeMirror 6 Immutable state, plugins Functional state management
Xi-editor Rope, async frontend-backend Data structure research
cosmic-text Pure Rust text layout Pure language text layout patterns

Ecosystem

Part of the gogpu Pure Go GPU ecosystem:

Repo Purpose
gogpu App framework, windowing
wgpu Pure Go WebGPU
gg 2D graphics, GPU text rendering
ui GUI toolkit
editor Text/Code editor widget ← you are here

Contributing

Contributions welcome! Architecture decisions and open questions are tracked internally. Join the discussion to participate.

License

MIT

About

Pure Go Text/Code Editor Widget — GPU-accelerated, embeddable, zero CGO. Like Monaco for Go.

Resources

Readme
MIT license
Activity
Custom properties

Stars

6 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Sponsor this project

Packages

Contributors

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.