bark-go-example

Demo of the Bark Go bindings: spawn signet wallets and fire Ark payments between them, drawn as animated arcs on a 3D globe

Active Pure Nim score 65/100 · last commit 2026-11-21 · 1 stars · tests present · no docs generated

Summary

Latest Version Unknown
License Unknown
CI Status Failing
Stars 1
Forks 0
Open Issues 0
Last Commit 2026-11-21
Downloads 0
Last Indexed 2026-11-23 09:07

Installation

nimble install bark-go-example
choosenim install bark-go-example
git clone https://gitlab.com/ark-bitcoin/labs/bark-go-example

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
bark-go-example ✓ ✓ ✓ - - - - - - -

README

bark-go-example: Design showcase

Bark Go example

Example on how to use the Bark Go bindings

Try it live!


Getting started

Requirements

Run

docker-compose up --build

Open http://localhost:5173.

To stop the application, run the following command:

docker compose down

Demo

Create wallets, fund them, and send real Ark payments on bitcoin signet — visualized as animated arcs on a 3D globe.

There are two modes: Local & Online.

Local Mode

  1. Fund piggy bank

Click on the piggy bank icon on the top right, copy the address and fund that account.

You can use our signet faucet.

  1. Create participants

Click on the New participant button to spawn a new one. It will be automatically funded by the piggy bank and can start sending and receiving sats.

  1. Trigger transactions

Click on the Trigger transaction button to trigger a random transaction between two participants. An animated arc will appear on the 3D globe.

  1. See all participants

Click on the address book icon on the top right to open a sheet with the list of all participant wallets.

  1. List of transactions

Click on the zap icon on the top right to open a sheet with the history of all transactions.

Online Mode

Online mode lets multiple users connect to a deployed instance, each running their own wallet locally via a sidecar daemon.

  1. Run the sidecar

The sidecar is a small Go service that wraps the Bark FFI bindings and exposes your wallet over a local API.

cd sidecar && go run . --port 9090
  1. Fund your wallet

Open the piggy bank icon, copy the address shown, and fund it using the signet faucet.

  1. Enter a username

When you open the app, you'll be prompted to choose a username.

  1. Connect your wallet

Enter the sidecar URL (defaults to http://localhost:9090). The app validates the connection before proceeding.

  1. Send sats

Click Send sats, enter a recipient username and amount. The payment is executed by your local sidecar and an animated arc appears on the globe for all connected users.

  1. See online users & transactions

Use the address book icon to see who's online, and the zap icon to see your sent and received payments.

Lint & Format

We use ultracite and biome to lint and format the code on the frontend app.

cd frontend
pnpm check
pnpm fix

On the backend folder, run:

cd backend
go fmt
go vet

Tests

cd backend
go test -v ./...

Tests use mock wallets so no real signet transactions are made.

Deploy

Production uses multi-stage Docker builds with nginx as a reverse proxy.

docker compose -f docker-compose.prod.yml up -d --build

The app will be available on port 80. Online mode is enabled by default.

Stack

License

Released under the MIT license — see the LICENSE file for details.