繋ぎ Tsunagi·AnkiConnect parity·Tested tools·Benchmarks·Roadmap & releases·GitHub

繋ぎ

tsunagi, a connection

Connects your apps and tools to Anki

An Anki add-on that answers AnkiConnect's requests, so the tools you use keep working, and adds an API of its own for apps: fewer requests, changes as they happen, and a key and role for each app. This page shows how, step by step.

Install from AnkiWeb Where to start

★ Star

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.

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.

Anki's editor
Tags
The tool on AnkiConnect asks every

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.

With

Where to start

Which are you?

You use AnkiConnect tools

  1. Install Tsunagifrom AnkiWeb, like any add-on
  2. Switch from AnkiConnectTsunagi takes over its port and its settings
  3. Check your toolseach one tested, request by request
  4. Keep using themno change to any tool

You build an app

  1. Getting startedyour first requests, step by step
  2. API referenceevery route, with a playground
  3. Listen for changesthe event stream, as in 3
  4. TypeScript clienttyped, from npm