https://github.com/yungweng/shared-things
Sync a Things 3 project between multiple macOS users via a self-hosted server
https://github.com/yungweng/shared-things
cli collaboration macos productivity self-hosted sync things3 todo
Last synced: 6 months ago
JSON representation
Sync a Things 3 project between multiple macOS users via a self-hosted server
- Host: GitHub
- URL: https://github.com/yungweng/shared-things
- Owner: yungweng
- License: mit
- Created: 2025-12-28T15:15:47.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-12-30T14:33:24.000Z (6 months ago)
- Last Synced: 2026-01-01T16:27:11.058Z (6 months ago)
- Topics: cli, collaboration, macos, productivity, self-hosted, sync, things3, todo
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/shared-things-daemon
- Size: 135 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shared-things
**Sync a Things 3 project between multiple macOS users**
Stop duplicating todos manually. shared-things keeps your team's Things 3 project in sync via a lightweight self-hosted serverβperfect for shared shopping lists, family tasks, or team todos.
## Quick Start
**Client (each user)**
```bash
npm install -g shared-things-daemon
shared-things init
```
That's it. Follow the prompts.
## Features
- π **Real-time sync** - Changes propagate within 30 seconds
- π **Self-hosted** - No cloud subscription, host on your own server
- π₯ **Multi-user** - Each person gets their own API key
- π€« **Background daemon** - Auto-starts on login, runs silently
- π οΈ **Interactive CLI** - Easy setup wizard for configuration
## Prerequisites
- **macOS** with [Things 3](https://culturedcode.com/things/) installed
- **Node.js >= 18**
- A server running `shared-things-server` (see [Server Setup](#server-setup))
## Usage
### Interactive Mode
```bash
shared-things init
```
```
? Server URL: https://things.yourdomain.com
? API Key: ****
? Project name in Things: Shared Project
? Things auth token: ****
```
> **Things auth token:** Required for syncing updates to existing todos. Find it in Things β Settings β General β Things URLs β Enable Things URLs.
### After Setup
```bash
shared-things install # Start daemon (auto-runs on login)
shared-things status # Check sync status
shared-things logs -f # Follow sync logs
```
### All Commands
| Command | Description |
|---------|-------------|
| `init` | Setup wizard |
| `install` | Install launchd daemon (auto-starts on login) |
| `uninstall` | Remove launchd daemon |
| `status` | Show sync status & last sync time |
| `sync` | Force immediate sync |
| `logs [-f]` | Show logs (`-f` to follow) |
| `reset [--server]` | Reset local state (`--server` clears server too) |
| `purge` | Remove all local config |
## Server Setup
One person hosts the server. Everyone else just needs an API key.
```bash
# Install
npm install -g shared-things-server
# Create a user (generates API key)
shared-things-server create-user
# β User "alice" created. API key: sk_abc123...
# Start server
shared-things-server start -d --port 3334
```
### Server Commands
| Command | Description |
|---------|-------------|
| `start [-d] [-p port]` | Start server (`-d` for background) |
| `stop` | Stop background server |
| `status` | Show server status |
| `logs [-f]` | Show logs (`-f` to follow) |
| `create-user` | Create user and generate API key |
| `list-users` | List all users |
| `delete-user` | Delete a user |
| `reset` | Delete all todos (keeps users) |
Production Deployment
### systemd Service
```bash
sudo tee /etc/systemd/system/shared-things.service << 'EOF'
[Unit]
Description=shared-things sync server
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/shared-things-server start --port 3334
Restart=always
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl enable --now shared-things
```
### HTTPS with Caddy
```
things.yourdomain.com {
reverse_proxy localhost:3334
}
```
## What Syncs
| Synced | Not Synced |
|--------|------------|
| Todo title, notes, due date, tags | Completed todos |
| Headings | Checklist items |
| | Areas |
> **Note:** The project must exist in each user's Things app. Only items within that project sync.
## How It Works
```
Things User A ββ Daemon A ββ Server ββ Daemon B ββ Things User B
```
Each daemon polls Things every 30 seconds via AppleScript, pushes changes to the server, and pulls updates to apply via Things URL Scheme. Server is the single source of truth (last write wins).
## Development
```bash
git clone https://github.com/yungweng/shared-things.git
cd shared-things
pnpm install
pnpm build
```
## Contributing
Issues and PRs welcome! See [open issues](https://github.com/yungweng/shared-things/issues).
## Links
- [Repository](https://github.com/yungweng/shared-things)
- [Issues](https://github.com/yungweng/shared-things/issues)
- [npm (daemon)](https://www.npmjs.com/package/shared-things-daemon)
- [npm (server)](https://www.npmjs.com/package/shared-things-server)
## Author
Maintained by [@yungweng](https://github.com/yungweng)
## License
MIT