Исходный код indieweb-glue.
Информация ниже могла устареть. Актуальную версию можно найти в репозитории.
indieweb-glue
A service that presents IndieWeb data in a non-CORS-restricted manner for embedding.
The master branch code is running as a public service.
API
/api/hcard?url=URL returns a JSON containing some information found in the representative h-card on the page referenced by URL (if indeed there is a representative h-card).
/api/photo?url=URL returns the file referenced in the u-photo property of the abovementioned h-card.
/api/pageinfo?url=URL returns a JSON containing some information about the page referenced by URL.
/api/opengraph?url=URL returns a JSON containing some (currently very minimal) information from the OpenGraph metadata that the page referenced by URL contains.
Self-hosting
go build and run on your own server, if you wish. Settings are controlled through environment variables:
$URL- the URL of the instance, defaults tohttps://indieweb-glue.evgenykuznetsov.org,$PORT- the port to run on, defaults to8080,$MEMCACHIER_SERVERS,$MEMCACHIER_USERNAME,$MEMCACHIER_PASSWORD- credentials to usememcached; if not supplied, the in-memory cache is used.
Ответы