Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/go-ap/webfinger


https://github.com/go-ap/webfinger

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Webfinger handlers on top of Go-ActivityPub storage

This project can be used as a standalone application or as a package from an external project.

Usage:

```go
// .well-known
cfg := NodeInfoConfig()
ni := nodeinfo.NewService(cfg, NodeInfoResolverNew(a.front.storage))
h := webfinger.handler{}

// Web-Finger
r.Route("/.well-known", func(r chi.Router) {
r.Get("/webfinger", h.HandleWebFinger)
r.Get("/host-meta", h.HandleHostMeta)
r.Get("/nodeinfo", ni.NodeInfoDiscover)
})
r.Get("/nodeinfo", ni.NodeInfo)
```