GMS ESON is a Go library and command line tool for Honey ESON
  • Go 78%
  • JavaScript 22%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stephen Kapp e6e5db3a17
cline-mem: record the public repository and the vendored wire spec
The module path is unchanged and the public proxy is not configured yet. eso/ is the local wire-format reference.
2026-11-27 23:42:46 +00:00
.github/workflows feat: initial drop for the Go ESON implementation. 2026-11-27 22:48:53 +00:00
.memory-bank cline-mem: record the public repository and the vendored wire spec 2026-11-27 23:42:46 +00:00
.vscode feat: initial drop for the Go ESON implementation. 2026-11-27 22:48:53 +00:00
cmd feat: initial drop for the Go ESON implementation. 2026-11-27 22:48:53 +00:00
docs cline-mem: record the public repository and the vendored wire spec 2026-11-27 23:42:46 +00:00
eso docs: brought in upstream wire format specification reference. 2026-11-27 23:28:19 +00:00
pkg feat: initial drop for the Go ESON implementation. 2026-11-27 22:48:53 +00:00
testdata feat: initial drop for the Go ESON implementation. 2026-11-27 22:48:53 +00:00
.gitignore feat: initial drop for the Go ESON implementation. 2026-11-27 22:48:53 +00:00
.golangci.yml feat: initial drop for the Go ESON implementation. 2026-11-27 22:48:53 +00:00
.markdownlint-cli2.jsonc init: initial scaffold for the eson impl 2026-11-27 20:22:26 +00:00
AGENTS.md cline-mem: record the public repository and the vendored wire spec 2026-11-27 23:42:46 +00:00
CHANGELOG.md docs: brought in upstream wire format specification reference. 2026-11-27 23:28:19 +00:00
CONTRIBUTING.md cline-mem: record the public repository and the vendored wire spec 2026-11-27 23:42:46 +00:00
go.mod feat: initial drop for the Go ESON implementation. 2026-11-27 22:48:53 +00:00
go.sum feat: initial drop for the Go ESON implementation. 2026-11-27 22:48:53 +00:00
LICENSE init: initial scaffold for the eson impl 2026-11-27 20:22:26 +00:00
llms.txt cline-mem: record the public repository and the vendored wire spec 2026-11-27 23:42:46 +00:00
main.go feat: initial drop for the Go ESON implementation. 2026-11-27 22:48:53 +00:00
README.md cline-mem: record the public repository and the vendored wire spec 2026-11-27 23:42:46 +00:00
SECURITY.md init: initial scaffold for the eson impl 2026-11-27 20:22:26 +00:00

GMS ESON

GMS ESON is a Go library and command line tool for Honey ESON 1.1 wire format specification for use with tooling for AI and ML endeavours. It reads and writes the same documents as the JavaScript tools in Green-PT/honey-for-devs and in Green-PT/honey-eson. Taking the principle functionality for encode, decode and lint actions from the reference implementation to the bring them together with the crush, stash and retrieve actions from the honey-for-devs variant.

Builds and tests need Go 1.27 or later or using GOEXPERIMENT=jsonv2 with Go 1.26. The library uses encoding/json/v2 and encoding/json/jsontext, which became the default json library with Go 1.27 and later, however using that experiment it is possible to use with older Go 1.26 releases.

Build

export GOEXPERIMENT=jsonv2

go test ./...
go build -o gms-eson .

go run . with no arguments exits 1 and prints a one-line usage message. The commands are described in docs/cli.md. Library use is in docs/library.md.

Documents

The wire grammar is ESON 1.1. The header line is !eson/1. The local copy of the wire format is eso/SPEC.md. The tests check testdata/vectors.json, which is the conformance set from the JavaScript reference.

Compatibility

Canonical encode of the valid vectors is byte for byte with the JavaScript encoder. Decode accepts the valid vectors and the decode-only vectors, and it rejects every invalid vector. A Go map[string]any is sorted by key before it is written. JSON text and *value.Object keep insertion order, which is the order the JavaScript tools use. Matching the Python tools is not a goal.

Do not put authentication, payment, or delete material in an ESON document. The linter treats those field names as wire-profile failures when they appear in ESON or in a columnar JSON block. See SECURITY.md for how to report a vulnerability in this repository.

ESON Specification

For reference the vendor'd implementation from the eso folder within the Green-PT/honey-for-devs plugin has been provided in the eso folder. This provides their reference implementation of the encode, decode and crush. With the eso/README.md and eso/SPEC.md providing the core wire format specification.

See the licence here for rtlabs.tech/gms-eson package. The license associated with the upstream reference code and specification can be found in the eso/LICENSE.

Go Code and related Documentation Copyright © 1994-2026, Stephen Kapp and Reaper Technologies Limited. All Rights Reserved.