Migrate from Gambiarra
The project is now called Gambi. This guide lists what to update.
What changed
Section titled “What changed”| 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?.
Fastest migration
Section titled “Fastest migration”Run the automated script for your platform:
curl -fsSL https://raw.githubusercontent.com/arthurbm/gambi/main/scripts/migrate-from-gambiarra.sh | bashirm https://raw.githubusercontent.com/arthurbm/gambi/main/scripts/migrate-from-gambiarra.ps1 | iexManual CLI migration
Section titled “Manual CLI migration”npm uninstall -g gambiarranpm install -g gambiThe new gambi package installs a wrapper plus the matching platform binary for the current machine.
bun remove -g gambiarrabun add -g gambicurl -fsSL https://raw.githubusercontent.com/arthurbm/gambi/main/scripts/uninstall.sh | bashcurl -fsSL https://raw.githubusercontent.com/arthurbm/gambi/main/scripts/install.sh | bashirm https://raw.githubusercontent.com/arthurbm/gambi/main/scripts/uninstall.ps1 | iexirm https://raw.githubusercontent.com/arthurbm/gambi/main/scripts/install.ps1 | iexSDK migration
Section titled “SDK migration”Replace imports and provider names:
import { createGambi } from "gambi-sdk";
const gambi = createGambi({ roomCode: "ABC123",});What changed:
gambiarra-sdkbecomesgambi-sdkcreateGambiarrabecomescreateGambiGambiarra*types becomeGambi*types- the response metadata key
gambiarrabecomesgambi
Local config migration
Section titled “Local config migration”The TUI reads its settings from:
~/.gambi/config.jsonIf 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.
Service and network names
Section titled “Service and network names”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.
Verify
Section titled “Verify”gambi --versiongambi --helpIf you use the SDK, also update your app imports and run your normal build or typecheck.
Next steps
Section titled “Next steps”- Quick start: set up a hub and room from scratch
- CLI reference: full list of commands and flags
- SDK reference: routing methods and provider options