github.com/32leaves/bel

bel

Generate TypeScript interfaces from Go structs/interfaces. Useful for JSON RPC.

44

Decision Signals

Health score 44/100, confidence 80/100.

Caution
Maintenance 15
Adoption 15
Security 92
Maturity 62
Developer DX 83
Confidence 80

Install

go get github.com/32leaves/bel

Package Data

updated May 28, 2026
Latest versionv1.0.1
Imported by2 packages
Stars0
Forks0
Last activity7 years ago
Latest releaseUnknown
LicenseUnknown
Known vuln records0

API Surface

58 symbols
SymbolKindSynopsis
AnonStructNamer Type type AnonStructNamer func(reflect.StructField) string
DocHandler Type type DocHandler interface{ ... }
DocHandler.Method Method Method func(parent reflect.Type, method reflect.Method) string
DocHandler.Type Method Type func(t reflect.Type) string
EnumHandler Type type EnumHandler interface{ ... }
EnumHandler.GetMember Method GetMember func(t reflect.Type) ([]TypescriptEnumMember, error)
EnumHandler.IsEnum Method IsEnum func(t reflect.Type) bool
ExtractOption Type type ExtractOption func(*extractor)
CustomNamer Function func CustomNamer(namer TypeNamer) ExtractOption
NameAnonStructs Function func NameAnonStructs(namer AnonStructNamer) ExtractOption
WithDocumentation Function func WithDocumentation(handler DocHandler) ExtractOption
WithEnumerations Function func WithEnumerations(handler EnumHandler) ExtractOption

Maintained Alternatives

limited recent repository activity

#1 GJSON

Package gjson provides searching for json strings.

Go JSON Libraries 15.5K stars 10.4K imported-by 100% confidence
94

#2 fastjson

Package fastjson provides fast JSON parsing.

Go JSON Libraries 0 stars 895 imported-by 80% confidence
73

#3 codec

Package codec provides a High Performance, Feature-Rich Idiomatic Go codec/encoding library for binc, msgpack, cbor, json.

Go JSON Libraries 0 stars 0 imported-by 55% confidence
50

#4 go-json

Go JSON Libraries 0 stars 0 imported-by 20% confidence
41

Similar Packages

Go JSON Libraries

#1 GJSON

Package gjson provides searching for json strings.

Go JSON Libraries 15.5K stars 10.4K imported-by 100% confidence
94

#2 fastjson

Package fastjson provides fast JSON parsing.

Go JSON Libraries 0 stars 895 imported-by 80% confidence
73

#3 jsoniter

Package jsoniter implements encoding and decoding of JSON as defined in RFC 4627 and provides interfaces with identical syntax of standard lib encoding/json.

Go JSON Libraries 13.9K stars 0 imported-by 45% confidence
62

#4 codec

Package codec provides a High Performance, Feature-Rich Idiomatic Go codec/encoding library for binc, msgpack, cbor, json.

Go JSON Libraries 0 stars 0 imported-by 55% confidence
50

#5 jsonhandlers

JSON library to expose simple handlers that lets you easily read and write json from various sources.

Go JSON Libraries 0 stars 0 imported-by 80% confidence
42