{"id":18626658,"url":"https://github.com/silbermm/libmention","last_synced_at":"2025-05-07T13:06:38.142Z","repository":{"id":173500147,"uuid":"649927423","full_name":"silbermm/libmention","owner":"silbermm","description":"A WebMention implementation in Elixir","archived":false,"fork":false,"pushed_at":"2024-04-09T03:37:15.000Z","size":268,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T13:06:31.410Z","etag":null,"topics":["elixir","indieweb","webmention"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/libmention/readme.html","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/silbermm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-06T00:28:49.000Z","updated_at":"2024-09-13T21:51:59.000Z","dependencies_parsed_at":"2024-11-07T04:41:04.613Z","dependency_job_id":null,"html_url":"https://github.com/silbermm/libmention","commit_stats":null,"previous_names":["silbermm/libmention"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silbermm%2Flibmention","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silbermm%2Flibmention/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silbermm%2Flibmention/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silbermm%2Flibmention/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silbermm","download_url":"https://codeload.github.com/silbermm/libmention/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252883204,"owners_count":21819160,"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":["elixir","indieweb","webmention"],"created_at":"2024-11-07T04:38:35.749Z","updated_at":"2025-05-07T13:06:38.103Z","avatar_url":"https://github.com/silbermm.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Libmention Logo](assets/libmention.png \"libmention\")\n\n[![Hex.pm](https://img.shields.io/hexpm/v/libmention?style=flat-square)](https://hexdocs.pm/libmention/readme.html)\n\n\u003c!-- MDOC !--\u003e\n\nA [Webmention](https://www.w3.org/TR/webmention/) implementation for Elixir\n\n[Read the documentation](https://hexdocs.pm/libmention/Libmention.html)\n\n## Goals\n* [x] [Send](https://www.w3.org/TR/webmention/#sending-webmentions) WebMentions\n* [ ] [Receive](https://www.w3.org/TR/webmention/#receiving-webmentions) Webmentions (in progress)\n* [x] Configurable storage, defaulting to `ets`\n* [ ] Easy local development and management of WebMentions including:\n  * [ ] Accept\n  * [ ] Decline\n  * [ ] Verify\n  * [ ] Block\n  * [x] See Sent\n\n## Usage\nAll aspects of the library can be used piecemeal or as a supervised system.\n\n### Sending\nWhen using piecemeal, the functions worth exploring are in `Libmention.Outgoing`:\n* `Libmention.Outgoing.parse/1` is used to parse an html document for all unique links. The idea here is to pass in the body of your post/note/comment and determine which urls may need to have a webmention sent.\n* `Libmention.Outgoing.discover/2` takes a link, sends a discovery and determines if webmention is supported at that specific link\n* `Libmention.Outgoing.send/4` sends a webmention\n\nWhen using as a supervised system, add the `Libmention.Supervisor` to your supervision tree and configure it for sending.\n```elixir\nconfig = [\n  outgoing: [\n    storage: Libmention.EtsStorage\n  ]\n]\nchildren = [\n  ...,\n  {Libmention.Supervisor, config}\n]\n```\n\u003e See `Libmention.Supervisor` for a full list of options\n\nThen to send webmentions for a page or content,\n\n```elixir\nLibmention.Supervisor.send(url, html)\n```\n\nWhen the process is done, \n\n### Receiving\n\n_work in progress_\n\n\u003c!-- MDOC !--\u003e\n\n## Installation\n\nAdd `libmention` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:libmention, \"~\u003e 0.1.4\"}\n  ]\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilbermm%2Flibmention","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilbermm%2Flibmention","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilbermm%2Flibmention/lists"}