English | 简体中文
A desktop pet for macOS and Linux built with NSGo, and the pet engine behind it, which other NSGo apps can embed.
- Floats in a transparent window above other windows, on every Space and over full-screen apps, and stays off the Dock and the taskbar.
- Takes the pointer only on the pet's body, so clicks elsewhere reach the window below.
- Greets you, idles and plays events chosen by time of day, season, meals, festivals and whether an editor or a terminal is in front.
- Reacts to clicks, dangles while dragged and walks along the bottom of the screen.
- Switches between eleven pets in a settings window opened from the tray icon, and remembers your choice.
- Updates itself from this repository's releases.
Download the disk image for macOS, or the Debian package, Arch package or AppImage for Linux, from the releases.
Linux needs GStreamer's bad plugins (gstreamer1.0-plugins-bad) to play clips with alpha; the Debian and Arch packages depend on them.
Released builds send an anonymous pageview to Umami as they start and when you switch pets: the pet, the system language and a random install ID, nothing else. Turn it off on the settings' 通用 page.
- Open nsgo-pet. NSGo 酱 greets you in the bottom right corner of the screen.
- Drag her anywhere, or click her for a reaction.
- Open 设置 from her tray icon to switch pets, check for updates or turn the statistics off, or choose 退出 there to quit.
The engine is the Go module github.com/nsgo-dev/nsgo-pet/pet: the pack format, the clip rules and the view that plays them. It ships no pets and no assets; your app brings its own packs, each under its own license.
go get github.com/nsgo-dev/nsgo-pet/pet@mainLoad packs from a directory, or from your app's resources with pet.Load(fsys, "asset:pets"). A pack that fails to load is left out and named in the error:
packs, err := pet.LoadDir(dir)
if len(packs) == 0 {
return err
}Show a pet as a view in your own layout:
func Sidebar(cx *core.Scope) core.Node {
p := pet.New(cx, packs[0], pet.Options{
Menu: menu,
Context: func() pet.Context { return pet.Context{Working: busy.Get()} },
})
cx.Post(p.Start)
return p.View()
}Or in a window of its own, which its walks and drags move:
desktop.OpenWindow(cx, pet.WindowOptions(pack), func(cx *core.Scope) core.Node {
p := pet.New(cx, pack, pet.Options{Window: true, Menu: menu})
cx.Post(p.Start)
return p.View()
})Your app owns the windows, menus and lifecycle. The engine opens no tray, checks for no updates, stores nothing and never quits the app.
| Call | Does |
|---|---|
Act |
Plays an event now |
Play(id) |
Plays a clip by ID, such as one for your app's running, waiting or done state |
PlaceAtCorner |
Moves the pet's own window to the bottom right of the screen |
Leave(done) |
Plays the exit clip, then calls done, where you close the pet's window or view |
Options.Context tells the clips' Working and Coding weights what the user is doing; without it the pet looks at the app in front. The pack format describes how to make packs.
| Pet | ID | Clips | Source | License |
|---|---|---|---|---|
| NSGo 酱 NSGo-chan | nsgo-chan |
23 | Drawn for nsgo-pet, with her Gopher plush, from the sheets in docs/nsgo-chan | CC BY-NC 4.0, Copyright (c) 2026 nsgo-dev: no commercial use (NOTICE) |
| 大蓝鱼 Big Blue Fish | bigbluefish |
106 | PC2005-cloud/dsh-pet, via Bai-Cute/big-blue-fish-desktop-pet | Character CC BY-NC-SA 4.0: no commercial use (NOTICE) |
| Clover | playpets-clover |
35 | gaerae/playpets, with its summer and winter outfits | MIT, gaerae (NOTICE) |
| Daisy | playpets-daisy |
35 | gaerae/playpets, with its summer and winter outfits | MIT, gaerae (NOTICE) |
| Pip | playpets-pip |
35 | gaerae/playpets, with its summer and winter outfits | MIT, gaerae (NOTICE) |
| Miso | playpets-miso |
35 | gaerae/playpets, with its summer and winter outfits | MIT, gaerae (NOTICE) |
| Pip | pip-mascot |
13 | TenzinDhonyoe/pip-mascot | MIT, Copyright (c) 2026 Tenzin Dhonyoe (NOTICE) |
| Mochi | mochi |
20 | miflow13/mochi-desktop | MIT, Copyright (c) 2026 Mochi contributors (NOTICE) |
| Shimeji | shimeji |
14 | estenv/linux-shimeji, the original Shimeji by Yuki Yamada | zlib, Copyright (c) 2009-2011 Yuki Yamada; altered (NOTICE) |
| OpenPets | openpets |
35 | OpenPetsHQ/openpets, with its summer and holidays outfits | MIT, Copyright (c) 2026 OpenPets (NOTICE) |
| OpenPets (Halloween) | openpets-halloween |
10 | OpenPetsHQ/openpets, its Halloween outfit | MIT, Copyright (c) 2026 OpenPets (NOTICE) |
| Platform | State |
|---|---|
| macOS | Runs, playing the HEVC-with-alpha clips. |
| Linux | Plays the WebM clips. The window floats on X11; on Wayland it cannot float or move itself. |
| Windows | Runs on x64. NSGo's Windows player refuses clips with alpha, so the engine decodes the WebM clips itself with libvpx, which the app ships in resources/windows (NOTICE), and shows the frames in an image. |
Lunar festivals, hit testing by the clip's alpha (nsgo#599), speech bubbles and weather are not done yet.
Needs Go 1.27.3 or later. From the repository root:
go tool nsgo dev # build and open the pet
go tool nsgo test . # the app's headless tests, which check every pet in resources/pets
(cd pet && go test ./...) # the engine's testsThe tests of the Windows decoder run where libvpx loads: on macOS with Homebrew's (brew install libvpx), on Linux with the distribution's; elsewhere they are skipped.
The website is in website/ and its docs in docs/public/; with Bun, bun install && bun run dev there serves them and bun run build builds them.
To release, move CHANGELOG.md's Unreleased bullets under ## [<version>] - <date>, set version in nsgo.yaml to the same version and push the tag v<version>. The release workflow builds, signs and publishes the installers with that section as the notes.
Read ARCHITECTURE.md before changing code, and AGENTS.md for how Agents work here. Changes are listed in CHANGELOG.md.
The code, the app and the engine, is MIT, Copyright (c) 2026 nsgo-dev: see LICENSE. Each pet keeps its own license, listed under Pets and in its NOTICE.md. NSGo-chan's art is CC BY-NC 4.0 and Big Blue Fish's character CC BY-NC-SA 4.0, so a build that includes either may not be used commercially. The libvpx and winpthreads libraries in resources/windows keep theirs, BSD-3-Clause and MIT, in its NOTICE.
