Skip to content

Repository files navigation

release codecov go report card license build powered by conventional commits nats built with just gitHub commit activity go reference

NATS server

A Go package for running an embedded NATS server.

Install

go get github.com/osapi-io/nats-server

Features

See the server docs for quick start, authentication, and per-feature reference.

Feature Description Docs Source
Lifecycle management Non-blocking Start() / graceful Stop() with readiness docs server.go
slog integration Adapts slog.Logger to the NATS server logging interface docs logger.go
Configuration Options for host, port, store dir, auth, and timeouts docs types.go

Examples

Each example is a standalone Go program you can read and run.

Example What it shows
auth-none Start a server without authentication
auth-user-pass Server with username/password auth
auth-nkeys Server with NKey authentication
simple-server Minimal server startup and shutdown

Documentation

See the package documentation on pkg.go.dev for API details.

Contributing

See the Contributing guide for prerequisites, setup, conventions, and the PR workflow.

License

The MIT License.

About

A Go package for running an embedded NATS server.

Topics

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages