{"id":15058805,"url":"https://github.com/valerauko/vuk","last_synced_at":"2025-04-10T13:13:03.160Z","repository":{"id":57714089,"uuid":"132314210","full_name":"valerauko/vuk","owner":"valerauko","description":"A Clojure library to handle WebFinger interactions for you.","archived":false,"fork":false,"pushed_at":"2023-10-04T06:38:09.000Z","size":43,"stargazers_count":4,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-23T04:06:14.668Z","etag":null,"topics":["activitypub","clojure","fediverse","hacktoberfest","json","webfinger","xml"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/valerauko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-05-06T06:51:45.000Z","updated_at":"2023-10-04T06:14:22.000Z","dependencies_parsed_at":"2022-09-26T21:31:12.391Z","dependency_job_id":"1931dfa5-7261-452a-a454-8126a8c7dca0","html_url":"https://github.com/valerauko/vuk","commit_stats":{"total_commits":40,"total_committers":2,"mean_commits":20.0,"dds":"0.15000000000000002","last_synced_commit":"ed7b284efd352a72b3fec6bf4661129e40caef8a"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valerauko%2Fvuk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valerauko%2Fvuk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valerauko%2Fvuk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valerauko%2Fvuk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valerauko","download_url":"https://codeload.github.com/valerauko/vuk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225653,"owners_count":21068078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["activitypub","clojure","fediverse","hacktoberfest","json","webfinger","xml"],"created_at":"2024-09-24T22:30:50.598Z","updated_at":"2025-04-10T13:13:02.658Z","avatar_url":"https://github.com/valerauko.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vuk [![Build Status](https://github.com/valerauko/vuk/actions/workflows/test.yaml/badge.svg?event=push)](https://github.com/valerauko/vuk/actions) [![Clojars Project](https://img.shields.io/clojars/v/social.kitsune/vuk.svg)](https://clojars.org/social.kitsune/vuk)\n\nA Clojure library to handle WebFinger interactions for you.\n\n## Installation\n\n```\n[social.kitsune/vuk \"0.2.2\"]\n```\n\n## Usage\n\n### Finger\n```\n(finger \"acct:valerauko@pawoo.net\")\n```\nFetches the WebFinger representation of the given user then parses it into a hashmap.\n\nIf any errors occur (404 not found, unsupported scheme, invalid JSON/XML) in the process, the used libraries' errors are thrown as-is.\n\nProperties are not supported yet.\n\n### Links\n```\n(let [user (finger \"acct:valerauko@pawoo.net\")]\n  (link user \"self\"))\n; or even\n(-\u003e \"acct:valerauko@pawoo.net\" finger (link \"self\"))\n```\nIt returns the first link node with a `rel` matching the given parameter.\n\n### Represent\n```\n(def user-map\n  {:subject \"acct:valerauko@pawoo.net\"\n   :aliases [\"https://pawoo.net/@valerauko\" \"https://pawoo.net/users/valerauko\"]\n   :links [{:rel \"http://webfinger.net/rel/profile-page\"\n            :type \"text/html\"\n            :href \"https://pawoo.net/@valerauko\"}\n           {:rel \"self\"\n            :type \"application/activity+json\"\n            :href \"https://pawoo.net/users/valerauko\"}]})\n(represent user-map)\n(represent user-map :as :json)\n(represent user-map :as :xml)\n```\nReturns a string representing the user as WebFinger JSON or XML. You can pass the format in with `:as` (it defaults to JSON).\n\n### Host meta\n```\n(host-meta \"https://pawoo.net/.well-known/webfinger?resource={uri}\")\n```\nGenerates the `host-meta` XML for your host. The provided parameter is embedded in the XML without any adjustments.\n\n## Todo\n* more tests\n* support for `properties`\n\n## License\n\nCopyright © 2018 @[valerauko](https://github.com/valerauko)\n\nDistributed under the Eclipse Public License either version 2.0 or (at your option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalerauko%2Fvuk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalerauko%2Fvuk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalerauko%2Fvuk/lists"}