Skip to content

Migrate from Gambiarra

The project is now called Gambi. This guide lists what to update.

Before After
gambiarra gambi
gambiarra-sdk gambi-sdk
createGambiarra() createGambi()
~/.gambiarra ~/.gambi
gambiarra-hub / _gambiarra gambi-hub / _gambi

Gambi is the official abbreviation of gambiarra. For the naming background, read Why Gambi?.

Run the automated script for your platform:

Terminal window
curl -fsSL https://raw.githubusercontent.com/arthurbm/gambi/main/scripts/migrate-from-gambiarra.sh | bash
Terminal window
npm uninstall -g gambiarra
npm install -g gambi

The new gambi package installs a wrapper plus the matching platform binary for the current machine.

Replace imports and provider names:

import { createGambi } from "gambi-sdk";
const gambi = createGambi({
roomCode: "ABC123",
});

What changed:

  • gambiarra-sdk becomes gambi-sdk
  • createGambiarra becomes createGambi
  • Gambiarra* types become Gambi* types
  • the response metadata key gambiarra becomes gambi

The TUI reads its settings from:

~/.gambi/config.json

If you already have ~/.gambiarra/config.json, the migration script copies it to that location when possible.

Since 0.8 the CLI reads no config file. Point it at a hub with --hub or the GAMBI_HUB environment variable.

If you rely on mDNS discovery, update these names:

Before After
_gambiarra._tcp.local _gambi._tcp.local
gambiarra-hub-{port} gambi-hub-{port}

Gambi does not ship a service unit. If you wrote your own, for example gambiarra-hub.service, rename it and change its command to gambi hub serve.

Terminal window
gambi --version
gambi --help

If you use the SDK, also update your app imports and run your normal build or typecheck.