No description
  • JavaScript 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ricardo 438c882e55 fix: submit the URL IndieNews can actually read
IndieNews fetches the source URL and looks for a link to its target in the
markup it finds there. Post URLs that redirect — such as a path missing the
trailing slash a site canonicalises to — meant IndieNews read the redirect
response instead of the post, and rejected every submission with
no_link_found.

Resolve the post URL before submitting and send the address it is served
from. Also verify the IndieNews link is present first, so posts that have not
been rebuilt with it yet are left to retry rather than submitted and rejected.
2026-08-16 12:25:27 +02:00
assets Initial commit 2026-02-04 13:11:04 +01:00
lib fix: submit the URL IndieNews can actually read 2026-08-16 12:25:27 +02:00
.gitignore Initial commit 2026-02-04 13:11:04 +01:00
CLAUDE.md docs: add CLAUDE.md technical reference 2026-02-13 18:23:49 +01:00
index.js Initial commit 2026-02-04 13:11:04 +01:00
package.json fix: submit the URL IndieNews can actually read 2026-08-16 12:25:27 +02:00
README.md Initial commit 2026-02-04 13:11:04 +01:00

@rmdes/indiekit-syndicator-indienews

IndieNews syndicator for Indiekit.

Submits posts to IndieNews, a community-curated aggregator of IndieWeb-related content.

Installation

npm install @rmdes/indiekit-syndicator-indienews

Configuration

// indiekit.config.js
export default {
  plugins: ["@rmdes/indiekit-syndicator-indienews"],
  "@rmdes/indiekit-syndicator-indienews": {
    languages: ["en", "fr"],  // Languages to register as syndication targets
    checked: false            // Pre-select in syndication UI
  }
};

Options

Option Type Default Description
languages string[] ["en"] Language codes to register as syndication targets
checked boolean false Whether to pre-select this target in the UI

Supported Languages

Code Name
en English
fr Français
de Deutsch
es Español
ja 日本語
zh 中文

How It Works

IndieNews uses webmentions for submission:

  1. Your post must have a u-syndication link pointing to https://news.indieweb.org/{lang}
  2. The plugin sends a webmention with your post URL as source
  3. IndieNews returns a permalink URL which is stored in your post's syndication property

Template Requirement

Your site template must render pending syndication targets as u-syndication links. For Eleventy, add this to your post template:

{% if mpSyndicateTo %}
<div class="hidden">
  {% for url in mpSyndicateTo %}
    {% if "news.indieweb.org" in url %}
    <a href="{{ url }}" class="u-syndication" rel="syndication">IndieNews</a>
    {% endif %}
  {% endfor %}
</div>
{% endif %}

No Credentials Required

Unlike most syndicators, IndieNews doesn't require API keys or authentication. Submission is done entirely via webmentions.

License

MIT