콘텐츠로 이동

Spooky

Git at a distance.

Spooky is a native Git client for macOS. It makes Git repositories on your server as easy to work with as local ones. No cloning needed.

Free and open source · macOS 26 or later

Skip the demo

spooky-test:driftwood

작업 사본 (main – 변경된 파일 9개)

spooky-test:

spooky-test: 연결됨

mainorigin/main

Alex Chen
alex@example.com

  • M
  • ?
  • M
  • M
  • A
  • ?
  • M
  • M
  • ?
readings.ts

블록 1 개, 추가 33 줄, 삭제 6 줄

@@ -2,40 +2,67 @@ export interface Reading {
22 stationId: string;
33 takenAt: Date;
44 temperature: number;
55 humidity: number | null;
66 pressure: number;
77 windSpeed: number;
88 windDirection: number;
gust?: number;
910 rainfall: number;
1011 uvIndex: number | null;
1112}
1213
1314function round(value: number, digits = 1): number {
1415 const factor = 10 ** digits;
1516 return Math.round(value * factor) / factor;
1617}
1718
1819export function parseReading(line: string): Reading {
const [stationId, takenAt, temperature, humidity, pressure, windSpeed, windDirection, rainfall = "0", uvIndex = ""] =
line.split(",");
const columns = line.split(",");
if (columns.length < 7) {
throw new ReadingError(line, `expected 7 columns, found ${columns.length}`);
}
const [stationId, takenAt, temperature, humidity, pressure, windSpeed, windDirection, rainfall = "0", uvIndex = "", gust = ""] =
columns;
2128
2229 return {
2330 stationId,
2431 takenAt: new Date(takenAt),
temperature: round(Number(temperature)),
temperature: round(numeric(line, "temperature", temperature)),
2633 humidity: humidity === "" ? null : round(Math.min(100, Math.max(0, Number(humidity)))),
pressure: round(Number(pressure)),
windSpeed: round(Number(windSpeed)),
windDirection: Number(windDirection),
pressure: round(numeric(line, "pressure", pressure)),
windSpeed: round(numeric(line, "wind speed", windSpeed)),
windDirection: numeric(line, "wind direction", windDirection),
gust: gust === "" ? undefined : numeric(line, "gust", gust),
3038 rainfall: round(Number(rainfall)),
3139 uvIndex: uvIndex === "" ? null : Number(uvIndex),
3240 };
3341}
3442
export class ReadingError extends Error {
constructor(
readonly line: string,
readonly problem: string,
) {
super(`Invalid reading (${problem}): ${line}`);
}
}
function numeric(line: string, column: string, raw: string): number {
const value = Number(raw);
if (raw.trim() === "" || Number.isNaN(value)) {
throw new ReadingError(line, `${column} is not a number`);
}
return value;
}
3562export function dewPoint(reading: Reading): number | null {
3663 if (reading.humidity === null) {
3764 return null;
3865 }
3966
4067 const a = 17.27;
4168 const b = 237.7;
블록 1 개, 추가 33 줄, 삭제 6 줄컨텍스트:
Try it

This is a simulated window in your browser. All data is sample data.

Server repositories

Spooky action at a distance

The working tree stays on your server, and Git runs there. You work with it from a Spooky window on your Mac.

Your Mac

  • The Spooky window
  • ~/.ssh/config and your SSH keys

Your server

  • The working tree and Git
  • A small helper in ~/.spooky/bin/

How server repositories work

No clone on your Mac

The working tree stays on the server. You don’t clone it to your Mac first.

Git runs on the server

Spooky uses the server’s own Git, and reads and writes files over SFTP.

The SSH you already use

Connections use the system’s SSH and the host aliases in ~/.ssh/config. OpenSSH handles authentication, host keys, and connection sharing.

No root, no background service

Spooky needs no root access on the server and installs no background service. It keeps just a small helper script in ~/.spooky/bin/.

A host alias and a path

Choose Add Server Repository…, enter a host alias from ~/.ssh/config, then type or browse to the repository’s path on the server.

Spooky checks the connection and opens the repository.

The dialog for adding a server repository, with the host alias spooky-test and the path /srv/git/driftwood filled in.The dialog for adding a server repository, with the host alias spooky-test and the path /srv/git/driftwood filled in.

The whole Git workflow

From first change to merged branch

Stage, commit, browse history, sync, and resolve conflicts the same way, whether the repository is on your Mac or on a server.

Branches, sync, merge, and rebase

Fetch, pull, and push from the toolbar.

Drag a branch onto the current one to merge it, or hold ⌥ while you drag to rebase onto it.

The Branches section of the sidebar.The Branches section of the sidebar.
The push dialog, pushing main to origin/main.The push dialog, pushing main to origin/main.

A wizard for conflicts

For each conflicted file, Spooky lays out the version from each side.

Pick one to resolve the file with it, or select both and open a merge tool.

The conflict wizard after a merge, showing both versions of src/units.ts.The conflict wizard after a merge, showing both versions of src/units.ts.

History and search

Follow every branch through the commit graph. Search by message, author, committer, file, commit hash, or date.

Undo and redo

Commits, reverts, stashes, and more can be undone with ⌘Z and redone with ⇧⌘Z.

Pull requests and merge requests

List, create, discuss, check out, merge, and close them on GitHub, GitLab.com, and self-managed GitLab.

Stashes, submodules, worktrees, and Git LFS

They all work in server repositories too.

Your repositories, wherever they live.

Requires macOS 26 or later, and Git 2.41 or later on your Mac and your servers. See System Requirements for the details.