ubgo is in early alpha: libraries and APIs may still change.

Skip to content
ubgo Alpha

Libraries

Every public ubgo library. Press / to search, Esc to clear.

45 of 45
Name
errx

One structured error type with stable identity, class, redactable fields, return traces and a wire codec.

goerr

Error type with separate operator and user messages, error codes, key/value data and trace IDs.

logger

Adapter-based, slog-native structured logging with sampling, redaction, OpenTelemetry and rotation.

otelkit

One constructor that sets up OpenTelemetry traces, metrics and logs, with presets for common backends.

cache cachetest

The core cache interface with generics, single-flight Remember, a distributed locker and a shared conformance suite.

cache-cli cli

Command-line cache inspector (get, set, del, stats, keys) with JSON output, built on cache.

cache-cluster

Peer-aware distributed cache with a consistent-hash ring and HTTP peer fill, on any cache backend.

cache-examples examples

Runnable examples for the cache family, one self-contained program per feature.

cache-mem

Sharded in-memory backend for cache with W-TinyLFU or LRU eviction and optional snapshots.

cache-memcached

Memcached backend for cache, covering the parts of the interface Memcached supports.

cache-obj objtest

In-process cache that holds live Go objects by reference, with TTL and LRU and no serialization.

cache-pg

Postgres and SQLite backend for cache over database/sql, with Migrate and Vacuum.

cache-redis

Redis 6+ backend for cache with prefix isolation and Pub/Sub invalidation across processes.

cache-tiered

Stacks cache backends into L1/L2/L3 tiers with read promotion and per-tier TTL.

threadsafecache deprecated

Generic thread-safe LRU and TTL cache. Deprecated; use cache-obj instead.

cfgkit cfgkittest

Typed config from env, .env, JSON, YAML, TOML, flags and secret stores into one validated struct.

dotenv

.env parser and editor that keeps comments, order and quoting, plus the dotenvctl CLI.

gormuuid

Postgres uuid[] field type for GORM.

gouuid

Small helpers around google/uuid.

jsonslice

A JSON-backed slice that round-trips through SQL columns and gqlgen scalars.

jsontype

A JSON type that round-trips between Go, JSON and SQL drivers (Postgres jsonb, MySQL json, SQLite).

lock

One lock interface with five backends (filelock, flock, Redis, Postgres, etcd) and fencing tokens.

publicid

URL-safe, non-sequential public IDs from a fixed lowercase nanoid alphabet.

sqlb sqlbtest

Typed SQL builder with compile-checked columns and joins, Postgres and ClickHouse packages and a driver conformance suite.

entkit

Column types and field helpers for ent and gqlgen, as small independent modules.

entx

Extensions for ent such as polymorphic relations, cascade delete and per-API GraphQL schemas.

gqlgenfn

Helper functions for using gqlgen with Gin.

gqlkit

Generates typed GraphQL client SDKs for Go and TypeScript with compile-checked field selection.

gqlmodel

Custom scalar field types for gqlgen.

gqlutil

Small helper functions for gqlgen.

buildinfo

Version, commit, build time and module info for Go binaries, from runtime/debug with -ldflags overrides.

buildinfo-examples examples

Runnable example apps for buildinfo, from ldflags stamping to HTTP, OpenTelemetry, Zap and slog.

gofm

An early framework for building Go microservices.

health

Thread-safe health and readiness registry with k8s-style probes, framework adapters and ready-made checkers.

health-examples examples

Runnable example apps for health, covering every HTTP framework adapter and observability.

httpreq

JSON-over-HTTP calls on top of net/http with one function, options and typed errors.

shutdown

Phased graceful shutdown for services, parallel within a phase, with a watchdog and telemetry hooks.

shutdown-examples examples

Runnable examples for shutdown.

crypt

Go crypto with safe defaults (AES-GCM, ChaCha20-Poly1305, argon2id, HMAC, Ed25519, key rotation), byte-compatible with crypt-ts.

crypt-ts

TypeScript and Node.js crypto with safe defaults over node:crypto, byte-compatible with the Go crypt.

docsync

Finds the sentences in your docs that stopped being true when the code they describe changed.

gots cli

Generates TypeScript types, enums, constants and interfaces from Go source.

goutil

A small set of everyday Go helper functions.

lath cli

A task runner where tasks are typed Go functions and a deploy runs the same on a laptop, over ssh and in CI.

ubgo-skills

Reusable skill files that capture Go and frontend coding conventions.

More libraries are on the way. Building and shipping CLIs? See Volt.