1. A mining session, three ways
Yomitan, ten lookups. Each popup checks whether its words already exist in Anki, then you add the word you looked up, with its audio and picture, and its card is suspended. The same session, timed against AnkiConnect, Tsunagi's AnkiConnect shim and the Tsunagi API. Above, what you'd see; below, each block is one request. Press Play.
2. One popup, request by request
One lookup from that session, slowed down. You hover 食べ物, and Yomitan's popup shows three entries for it: two that already exist in Anki, and the one you add now. Step through what Yomitan sends to AnkiConnect, beside what an app sends to the Tsunagi API for the same result.
AnkiConnect
Tsunagi API
3. Changes, as they happen
Change this toy note in Anki's Browser, as you would, or through the API, as an app would. You can type in it too. An app on the Tsunagi API listens to its event stream and is told about each change. A tool on AnkiConnect has no events, so it keeps asking: asbplayer asks every 10 s for every card edited or reviewed today, then works out what's new.
4. Who may do what
Every request comes from somewhere, and each app has a role. Pick who is asking and the role it has; each square is one AnkiConnect action, lit when it's allowed. Below them, what only the Tsunagi API offers. Hover one or tap one for the permission it needs, or show every name.
Where to start
Which are you?
You use AnkiConnect tools
- Install Tsunagifrom AnkiWeb, like any add-on
- Switch from AnkiConnectTsunagi takes over its port and its settings
- Check your toolseach one tested, request by request
- Keep using themno change to any tool
You build an app
- Getting startedyour first requests, step by step
- API referenceevery route, with a playground
- Listen for changesthe event stream, as in 3
- TypeScript clienttyped, from npm