Quickstart

Quickstart

Start a local Nova cluster, then append, read, and follow your first stream.

You will start a three-node Nova cluster on your computer, create a stream, append two records, read them back, and follow the stream as new records arrive. The steps use the nova command line first, then repeat them in Go, TypeScript, or HTTP.

You need Docker with Compose, and Go 1.27 or later to build the CLI. The TypeScript example needs Node.js 22 or later.

Start the cluster

Download the Compose file and start the cluster:

Start the stack
curl -fsSL https://raw.githubusercontent.com/supabase/nova/main/deploy/docker/docker-compose.quickstart.yml -o nova-compose.yml
docker compose -f nova-compose.yml up -d

This starts three novad nodes, each in its own availability zone, with metadata storage, RustFS as object storage, and the Gateway:

ServiceAddress
Nodes, over gRPClocalhost:7781, localhost:7782, localhost:7783
Gateway, over HTTPhttp://localhost:8080
Admin dashboard, read-onlyhttp://localhost:9191/admin/
RustFS consolehttp://localhost:9201, user nova, password novatest

Try it locally describes every port, and a larger stack with Grafana and Prometheus.

If a call cannot reach host.docker.internal

You can connect to any node. Appends and live reads then move to the node that serves the stream, at host.docker.internal. Some Linux setups do not resolve that name. Add 127.0.0.1 host.docker.internal to /etc/hosts.

Build the CLI

Build nova from a checkout of the repository, and point it at the cluster:

Build nova and point it at a node
git clone https://github.com/supabase/nova.git
cd nova
go build -o "$(go env GOPATH)/bin/nova" ./cmd/novactl
export NOVA_ADDR=localhost:7781

NOVA_ADDR is the address of any node. The CLI overview has the other ways to connect.

Create a bucket and a stream

A bucket groups streams and gives them their default settings. Create the bucket demo, then the stream events in it:

Create a bucket, then a stream
nova bucket create demo
nova stream create nova://demo/events
nova://demo
  Location:          local
  Create on append:  false
  Create on read:    false
  Default class:     standard
  Created:           2026-11-22T18:25:04.07Z
nova://demo/events
  ID:             01a20481-2cd9-77cc-9a6f-68eedc13ab23
  Class:          standard
  Producer:       any
  Retention age:  unlimited
  Throughput:     unlimited
  Created:        -

nova://demo/events is the stream's address. The stream took its settings from the bucket.

Append records

nova append appends each line of its input as one record:

Append two records
printf 'hello\nworld\n' | nova append nova://demo/events
appended 2 entries

The first record gets sequence number 0 and the second gets 1. Nova numbers a stream's records in order, with no gaps.

Read them back

Read the stream
nova read nova://demo/events
0	2026-11-22T18:25:04Z	hello
1	2026-11-22T18:25:04Z	world

Each line holds the sequence number, the record's timestamp in your time zone, and its body. A read starts at the oldest record unless you give a start.

Check the tail

The tail is where the stream ends:

Check the tail
nova check-tail nova://demo/events
2	2026-11-22T18:25:04Z

2 is the sequence number the next record will get, so records 0 and 1 are stored. The time is the last record's. A tail check includes every append that finished before it.

Follow the stream

nova tail -f prints the last records, then keeps printing new ones:

Follow the stream
nova tail -f nova://demo/events

Leave it running, and in a second terminal append another line with printf 'again\n' | nova append nova://demo/events. It appears as soon as Nova has stored it:

0	2026-11-22T18:25:04Z	hello
1	2026-11-22T18:25:04Z	world
2	2026-11-22T18:25:06Z	again

Press Ctrl-C to stop.

The same from your code

Each tab appends two records to demo/events, reads the stream, checks its tail, and follows it. The responses shown come from a new stream; after the CLI steps, your sequence numbers start at 3. The language you pick here is kept across the docs.

The Go SDK connects to any node over gRPC and finds the node that serves each stream.

main.go
// Command quickstart appends two records to demo/events, reads the stream
// back, checks its tail, and follows new records until you press Ctrl-C.
package main

import (
	"context"
	"fmt"
	"log"
	"os"
	"os/signal"

	"github.com/supabase/nova/client"
)

func main() {
	// Ctrl-C cancels ctx, which ends the subscription.
	ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt)
	err := run(ctx, "localhost:7781")

	stop()

	if err != nil {
		log.Fatal(err)
	}
}

func run(ctx context.Context, addr string) error {
	c, err := client.New(client.Options{Addrs: []string{addr}})
	if err != nil {
		return err
	}
	defer c.Close()

	stream := client.Address{Bucket: "demo", Key: "events"}

	// Append two records. A producer batches appends on one session, and
	// Append returns once the records are durable.
	p, err := c.OpenStream(ctx, stream)
	if err != nil {
		return err
	}

	res, err := p.Append(ctx, client.Bodies([]byte("first"), []byte("second"))...)
	if err != nil {
		return err
	}

	fmt.Println("appended", res.Start.SeqNum, "through", res.End.SeqNum-1, "tail", res.Tail.SeqNum)

	if err := p.Close(ctx); err != nil {
		return err
	}

	// Read up to 100 records from sequence number 0.
	page, err := c.Read(ctx, stream, client.FromSeq(0), 100)
	if err != nil {
		return err
	}

	for _, r := range page.Records {
		fmt.Printf("%d\t%s\n", r.SeqNum, r.Body)
	}

	// Check the tail, strongly consistent: the sequence number the next
	// record gets.
	tail, err := c.CheckTail(ctx, stream)
	if err != nil {
		return err
	}

	fmt.Println("tail", tail.SeqNum)

	// Follow new records from where the read stopped. The subscription
	// reconnects and resumes on its own.
	for batch, err := range c.Subscribe(ctx, stream, client.FromBookmark(page.Bookmark)) {
		if err != nil {
			return err
		}

		for _, r := range batch.Records {
			fmt.Printf("%d\t%s\n", r.SeqNum, r.Body)
		}
	}

	return nil
}

Append returns once the records are stored, with the sequence numbers they got. Read returns a page of records and a bookmark, the place after the page, and the subscription starts there. Subscribe reconnects on its own after a brief failure. It ends when you cancel it, or with an error that you handle.

Stop the cluster

Stop the stack and delete its data
docker compose -f nova-compose.yml down -v

-v deletes the stack's volumes, including object storage, so every record is gone. The metadata store keeps its data inside its container, so down deletes it with or without -v. Always stop with -v: a stack started again without its metadata cannot find the objects it stored.

Next steps

On this page