No description
  • JavaScript 73.4%
  • Nunjucks 26.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-13 13:39:55 +02:00
assets feat: fork @indiekit/endpoint-share as @rmdes/indiekit-endpoint-share 2026-02-28 08:17:41 +01:00
includes feat: fork @indiekit/endpoint-share as @rmdes/indiekit-endpoint-share 2026-02-28 08:17:41 +01:00
lib Merge remote-tracking branch 'upstream/main' into upstream-sync 2026-09-13 13:37:05 +02:00
locales i18n: add missing syndicate-to label key across all locales 2026-03-21 12:46:40 +01:00
test/integration feat: fork @indiekit/endpoint-share as @rmdes/indiekit-endpoint-share 2026-02-28 08:17:41 +01:00
views Merge remote-tracking branch 'upstream/main' into upstream-sync 2026-09-04 16:47:54 +02:00
.gitignore chore: untrack node_modules 2026-09-05 11:03:41 +02:00
CHANGELOG.md v1.0.0-beta.29 2026-08-16 23:22:42 +00:00
index.js feat: fork @indiekit/endpoint-share as @rmdes/indiekit-endpoint-share 2026-02-28 08:17:41 +01:00
package.json chore: bump version to 1.1.1 2026-09-13 13:39:55 +02:00
README.md style(endpoint-share): keep the share-url example on one line 2026-08-24 17:23:12 +01:00

@indiekit/endpoint-share

Share endpoint for Indiekit. Provides a simple interface for bookmarking websites and publishing them on your website. Inspired and developed from an idea originally described by Max Böck.

Installation

npm install @indiekit/endpoint-share

Note

This package is installed alongside @indiekit/indiekit

Usage

To customise the behaviour of this plug-in, add @indiekit/endpoint-share to your configuration, specifying options as required:

{
  "@indiekit/endpoint-share": {
    "mountPath": "/teilen", // de-DE
  },
}

Options

Option Type Description
mountPath string Path to share screen. Optional, defaults to /share.

Pre-filling the form

The share endpoint accepts query parameters to pre-fill form fields. This allows external services and browser extensions to populate the form automatically.

Parameter Description
url URL to bookmark.
name Title of the post.
content Body text of the post. Optional.

To enable services like ShareOpenly to share to your site, add a <link> element with rel="share-url" to your homepage:

<link rel="share-url" href="https://example.com/share?url={url}&name={title}&content={text}">

Replace https://example.com/share with the URL of your share endpoint.