[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110107":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":13,"stars7d":13,"stars30d":14,"stars90d":13,"forks30d":13,"starsTrendScore":13,"compositeScore":15,"rankGlobal":8,"rankLanguage":8,"license":16,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":17,"hasPages":17,"topics":19,"createdAt":8,"pushedAt":20,"updatedAt":21,"readmeContent":22,"aiSummary":23,"trendingCount":13,"starSnapshotCount":13,"syncStatus":24,"lastSyncTime":25,"discoverSource":26},110107,"palantiny","narasim-teja\u002Fpalantiny","narasim-teja",null,"TypeScript",65,8,58,0,3,40.16,"MIT License",false,"main",[],"2026-11-07 07:41:10","2026-11-14 21:40:36","# palantiny\n\n**Is anything following you? Your Mac can already hear the answer.**\n\npalantiny listens to the Bluetooth and Wi-Fi broadcasts around your Mac, builds a small ontology of devices, people and places, and shows you what keeps turning up wherever you go. It runs entirely on your machine, with no accounts, no cloud and nothing to host.\n\n![The palantiny console orbiting a plate of nearby devices, captioned with how many are in range](assets\u002Fdemo.gif)\n\n> **Status:** the sensor, the ontology and the console work on real data. Detecting a device across two real places hasn't been proven yet, so read [what it can and can't follow](#what-it-can-and-cant-follow) before trusting it. This is a side project, not a safety tool, and it has no connection to Palantir Technologies.\n\n## What you get\n\n- **A live map of what's around you.** Every device stands on a needle: closer to the centre means a stronger signal, and taller means heard for longer.\n- **Places without GPS.** Each place is recognised from its Wi-Fi fingerprint, and no coordinates are stored.\n- **Following detection.** The same device at two of your places draws a line through both plates.\n- **Find My awareness.** It spots Apple Find My devices that have been separated from their owners.\n- **Callsigns, not serial numbers.** Strangers become `Copper Heron` or `Quiet Harbor`, and never a real identity.\n- **Your own map of who owns what.** Claim your devices, name them, and tag people you know.\n- **Alerts.** Watch a device and get a macOS notification if it turns up somewhere new.\n- **Safe to record.** Screenshot mode strips names on the server, so they can't reach your screen recording.\n\n## Try it\n\nYou need macOS 14 or later, [Bun](https:\u002F\u002Fbun.sh) and the Xcode command line tools (`xcode-select --install`).\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002Fnarasim-teja\u002Fpalantiny.git\ncd palantiny\nbun install\nbun run dev\n```\n\nOpen \u003Chttp:\u002F\u002F127.0.0.1:4117>. macOS asks for two permissions for **palantiny sensor**:\n\n| Permission | Why |\n|---|---|\n| Bluetooth | To hear nearby broadcasts |\n| Location | macOS hides Wi-Fi names without it. palantiny stores no coordinates |\n\nYour first place appears about a minute later, after two Wi-Fi scans agree.\n\n**Just want to look around?** This loads labelled test data, with no permissions needed:\n\n```sh\nbun run fixture\nbun run build\nPALANTINY_DB=data\u002Ffixture.db PALANTINY_SENSOR=off bun run server\n```\n\n## Your first ten minutes\n\n1. **Name your place.** Hover it under **Places** and press Rename.\n2. **Claim your devices.** Anything paired with your Mac is already yours. For anything else, select it and press `M`, then type a name.\n3. **Find a gadget.** Press `\u002F` and search for `whoop`, `tv` or `samsung`. Turn off Screenshot mode to search by broadcast name too.\n4. **Tag someone you know.** With Screenshot mode off, select their device and press **Add person**. They get a real name, plus a public name that's the only thing recordings show.\n5. **Watch something.** Select a device and press `W`.\n6. **Take your Mac somewhere.** Keep the lid open, stay at least 3 minutes, and a second plate appears.\n\n![The console with a selected device, showing known devices, the graph and an inspector](assets\u002Fconsole.png)\n\n## What it can and can't follow\n\nPhones change their Bluetooth identity on purpose, and no log can undo that. So palantiny labels every device with whether it can be recognised again.\n\n| Label | Means | Examples from real data | Follows between places? |\n|---|---|---|---|\n| **Stable** | One identity for 2+ hours, or paired with your Mac | WHOOP bands, earbuds, TVs, your own devices | Yes |\n| **Named** | Rotates, but keeps a serial in its name | A Galaxy Watch | Yes, when it broadcasts that name |\n| **Keyed** | A separated Find My device | Find My devices away from their owners | Same day. Keys [rotate about every 24 hours](https:\u002F\u002Fdatatracker.ietf.org\u002Fdoc\u002Fhtml\u002Fdraft-ietf-dult-accessory-protocol-00) |\n| **Rotating** | Changes identity | Most phones, computers and unnamed headphones | No |\n| **New** | Too soon to tell | Anything just heard | Not yet known |\n\nSo a line between plates means something, but **no line doesn't prove nothing followed you**. In one 38-hour run, 88% of identities lasted under 15 minutes.\n\nThis is what a device at three places looks like. It's labelled test data, because that view hasn't been captured from real life yet.\n\n![Three stacked plates with a red line through them, marked as test data](assets\u002Ffollowing-test-data.png)\n\n## Reading the results\n\n- **Quote \"in range\", not the Device total.** The total keeps growing, because rotated addresses and passers-by each add a row. In range held at about 60 to 100 in one apartment while the total passed 5,000.\n- **Your own devices show up first.** They go everywhere you go, so claim them.\n- **A separated Find My device isn't proof of anything.** It could be a neighbour's keys, or someone you're with.\n- **Dashed lines are guesses.** Linking rotating addresses is inference, so each link shows its evidence, and links that later evidence disproves are taken back.\n\n**If you think you're being tracked, use your phone's built-in tracker alerts and contact the police.** Don't rely on this.\n\n## Trust and Watch\n\n| | Trust | Watch |\n|---|---|---|\n| Means | I know this device | I want to know about this device |\n| Findings | Never raises one | Raises one at a new place, or when it's back after 2+ hours away |\n| Notifications | None | Yes |\n\nAbsence only counts while your Mac was listening, so closing the lid doesn't look like a device leaving. High findings notify you too. Watch can't hold on to something that rotates, and it warns you when that's the case.\n\n## Privacy\n\npalantiny only listens. It never connects to a device, and it doesn't capture packets.\n\n- Everything stays in `data\u002F` on your Mac, and the server only accepts connections from your own machine.\n- Screenshot mode is on at every page load. Broadcast names and real names are removed on the server, and search can't find them either.\n- Wi-Fi router addresses are stored only as salted hashes.\n- Strangers' sightings are deleted after 30 days.\n- The sensor stops when the server stops, so nothing keeps scanning in the background.\n\n`data\u002F` holds nearby devices' names, so never share it. The people around you didn't opt in: keep strangers pseudonymous, tell anyone you tag, and don't use this to follow anyone.\n\n## How it works\n\n```text\nnative\u002Fmacos  ->  Unix socket  ->  server\u002F         ->  HTTP + SSE  ->  web\u002F\n (listens)        (JSON lines)     Bun + Hono          (\u002Fv1)          Vite + React\n                                   SQLite, core\u002F                      three.js\n```\n\n| Folder | Holds |\n|---|---|\n| `native\u002Fmacos\u002F` | The Swift sensor, using CoreBluetooth and CoreWLAN |\n| `server\u002F` | One Bun process that owns SQLite, reads sensors and serves the API |\n| `core\u002F` | The ontology, parsing and inference, in pure TypeScript |\n| `web\u002F` | The console |\n| `scripts\u002F` | The dev runner and test data |\n\nThe model is `Person -OWNS-> Device -HAS_ALIAS-> Alias`, with Devices and Networks `SEEN_AT` a Place through Sightings. An alias is what you hear on the air, and a device is a claim that several aliases are one thing, which keeps every guess visible.\n\n**Read [How it works](HOW_IT_WORKS.md)** for how places, Find My parsing and alias linking work, what we measured, and the research behind it.\n\n## Build on it\n\npalantiny has two seams, so you can replace either end.\n\n- **Write a sensor.** Anything that writes JSON lines to the socket is a sensor, in any language and on any OS. A Raspberry Pi would keep listening all night.\n- **Write a client.** The web console only uses the local `\u002Fv1` API, so a native Mac app can do everything it does.\n\nThe [sensor format and API](HOW_IT_WORKS.md#plugging-in) are documented. A phone client would need authentication first, which doesn't exist yet.\n\n## Reference\n\n| Command | Does |\n|---|---|\n| `bun run dev` | Sensor, server and console, with hot reload |\n| `bun run build && bun run start` | The same on one port, serving the built console |\n| `bun run fixture` | Builds labelled test data in `data\u002Ffixture.db` |\n| `bun test` | Runs the tests |\n| `bun run typecheck` | Type checks everything |\n\n| Key | Does |\n|---|---|\n| `G` \u002F `L` | Graph or list |\n| `\u002F` | Search |\n| `F` | Film mode, for clean recordings |\n| `Esc` | Clear the selection |\n| `M` \u002F `N` | Claim, name |\n| `T` \u002F `W` | Trust, watch |\n\n| Variable | Default | Does |\n|---|---|---|\n| `PALANTINY_DB` | `data\u002Fpalantiny.db` | Which database to use |\n| `PALANTINY_PORT` | `4117` | Server port |\n| `PALANTINY_SENSOR` | `macos` on a Mac, otherwise `external` | `macos` launches the app, `external` waits for your own sensor, `off` runs without one |\n| `PALANTINY_SOCKET` | `data\u002Fsensor.sock` | Where sensors connect |\n\n## Troubleshooting\n\n| Problem | Fix |\n|---|---|\n| No permission prompts | Allow **palantiny sensor** under System Settings, Privacy & Security |\n| No place after a few minutes | Check that Wi-Fi is on and Location is allowed. Places need nearby networks |\n| \"Sensor offline\" | `bun run dev` isn't running, or the sensor stopped |\n| Gaps in the timeline | The Mac was asleep. Scanning mostly stops with the lid closed |\n| No notifications | Check notification settings for Script Editor, which macOS shows as the sender |\n\n## License\n\n[MIT](LICENSE)\n","palantiny 是一款运行在 macOS 上的本地化设备感知工具，通过监听蓝牙与 Wi-Fi 广播信号，构建设备、人员和场所的轻量级本体模型，实现无需云端、无账户的隐私优先环境感知。其核心功能包括基于 Wi-Fi 指纹的无 GPS 场所识别、跨场所设备追踪可视化、Find My 设备检测、设备\u002F人员匿名化命名（如“Copper Heron”）及本地化告警通知。所有数据处理均在设备端完成，不上传、不存储地理位置坐标。适用于注重隐私的日常环境观察、办公场所设备管理、数字足迹自查等轻量级场景。",2,"2026-11-24 04:38:07","CREATED_QUERY"]