This is a federation server implementation running in the cloud using Cloudflare Workers. It features federated address lookup using a simple addressbook.json
file.
The structure of the address book is as follow:
{
"hello*example.org": {
"account_id": "GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWHF",
"memo_type": "text",
"memo": "hello"
},
...
}
The advantage of using Cloudflare is that it offers the lightest - hence cheapest - cloud workers implementation. At that time (2019-12), the first 100k daily requests are free of charge. This is more than enough for most use cases.
Demonstration:
This federation server is used by Cosmic.plus and Cosmic.link since mid-2019. It's being used to resolve addresses such as tips*cosmic.plus
and gils*cosmic.plus
.
You can play with Cosmic.plus' instance of the worker here: worker preview.
[Go to documentation]