Why Nostr? What is Njump?
2023-11-25 20:35:20

jb55 on Nostr: Damus translation service requests are authenticated by nostr notes. This is a simple ...

Damus translation service requests are authenticated by nostr notes. This is a simple way to make authenticated requests, no api keys needed.

$ curl -d @<(nostril --sec $jb55sec --content '{"source":"JA","target":"EN","q":"こんにちはwill"}') https://api.damus.io/translate

{"text":"Hi will"}

It also caches translation results: translation_id = sha2(q+source+target)

So they can be looked up again without calling deepl.

This is all open source as well if you want to make your own caching deepl translator:

https://github.com/damus-io/api
Author Public Key
npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s