@rmdes/indiekit-endpoint-activitypub 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -1
- package/lib/controllers/compose.js +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @rmdes/indiekit-endpoint-activitypub
|
|
2
2
|
|
|
3
|
-
ActivityPub federation endpoint for [Indiekit](https://getindiekit.com). Makes your IndieWeb site a full fediverse actor — discoverable, followable, and interactive from Mastodon, Misskey, Pixelfed, and any ActivityPub-compatible platform.
|
|
3
|
+
ActivityPub federation endpoint for [Indiekit](https://getindiekit.com), built on [Fedify](https://fedify.dev) 2.0. Makes your IndieWeb site a full fediverse actor — discoverable, followable, and interactive from Mastodon, Misskey, Pixelfed, and any ActivityPub-compatible platform.
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
@@ -34,6 +34,17 @@ ActivityPub federation endpoint for [Indiekit](https://getindiekit.com). Makes y
|
|
|
34
34
|
- Batch re-follow processor — gradually sends Follow activities to imported accounts
|
|
35
35
|
- Progress tracking with pause/resume controls
|
|
36
36
|
|
|
37
|
+
**Public Profile**
|
|
38
|
+
- Standalone profile page at the actor URL (HTML fallback for browsers)
|
|
39
|
+
- Shows avatar, bio, profile fields, follower/following/post counts, and follow prompt
|
|
40
|
+
- Dark mode support via system preference
|
|
41
|
+
|
|
42
|
+
**Debug Dashboard**
|
|
43
|
+
- Optional [Fedify Debugger](https://github.com/fedify-dev/debugger) integration
|
|
44
|
+
- Password-protected dashboard at `{mountPath}/__debug__/`
|
|
45
|
+
- OpenTelemetry tracing for federation activity
|
|
46
|
+
- Real-time activity inspection
|
|
47
|
+
|
|
37
48
|
**Admin UI**
|
|
38
49
|
- Dashboard with follower/following counts and recent activity
|
|
39
50
|
- Profile editor (name, bio, avatar, header, profile links with rel="me" verification)
|
|
@@ -45,6 +56,7 @@ ActivityPub federation endpoint for [Indiekit](https://getindiekit.com). Makes y
|
|
|
45
56
|
## Requirements
|
|
46
57
|
|
|
47
58
|
- [Indiekit](https://getindiekit.com) v1.0.0-beta.25+
|
|
59
|
+
- [Fedify](https://fedify.dev) 2.0+ (bundled as dependency)
|
|
48
60
|
- Node.js >= 22
|
|
49
61
|
- MongoDB (used by Indiekit)
|
|
50
62
|
- Redis (recommended for production delivery queue; in-process queue available for development)
|
|
@@ -95,6 +107,9 @@ export default {
|
|
|
95
107
|
| `actorType` | string | `"Person"` | Actor type: `Person`, `Service`, `Organization`, or `Group` |
|
|
96
108
|
| `logLevel` | string | `"warning"` | Fedify log level: `"debug"`, `"info"`, `"warning"`, `"error"`, `"fatal"` |
|
|
97
109
|
| `timelineRetention` | number | `1000` | Maximum timeline items to keep (0 = unlimited) |
|
|
110
|
+
| `notificationRetentionDays` | number | `30` | Days to keep notifications (0 = forever) |
|
|
111
|
+
| `debugDashboard` | boolean | `false` | Enable Fedify debug dashboard at `{mountPath}/__debug__/` |
|
|
112
|
+
| `debugPassword` | string | `""` | Password for the debug dashboard (required if dashboard enabled) |
|
|
98
113
|
|
|
99
114
|
### Redis (Recommended for Production)
|
|
100
115
|
|
|
@@ -216,6 +231,8 @@ All admin pages are behind IndieAuth authentication:
|
|
|
216
231
|
| Pinned Posts | `/activitypub/admin/featured` | Pin/unpin posts to your featured collection |
|
|
217
232
|
| Featured Tags | `/activitypub/admin/tags` | Add/remove featured hashtags |
|
|
218
233
|
| Migration | `/activitypub/admin/migrate` | Mastodon import wizard |
|
|
234
|
+
| Public Profile | `/activitypub/users/{handle}` | Public-facing profile page (no auth) |
|
|
235
|
+
| Debug Dashboard | `/activitypub/__debug__/` | Fedify debugger (password-protected, if enabled) |
|
|
219
236
|
|
|
220
237
|
## MongoDB Collections
|
|
221
238
|
|
|
@@ -198,12 +198,15 @@ export function submitComposeController(mountPath, plugin) {
|
|
|
198
198
|
const noteId = `urn:uuid:${crypto.randomUUID()}`;
|
|
199
199
|
const actorUri = ctx.getActorUri(handle);
|
|
200
200
|
|
|
201
|
+
const followersUri = ctx.getFollowersUri(handle);
|
|
201
202
|
const note = new Note({
|
|
202
203
|
id: new URL(noteId),
|
|
203
204
|
attribution: actorUri,
|
|
204
205
|
content: content.trim(),
|
|
205
206
|
inReplyTo: inReplyTo ? new URL(inReplyTo) : undefined,
|
|
206
207
|
published: Temporal.Now.instant(),
|
|
208
|
+
to: new URL("https://www.w3.org/ns/activitystreams#Public"),
|
|
209
|
+
cc: followersUri,
|
|
207
210
|
});
|
|
208
211
|
|
|
209
212
|
const create = new Create({
|
|
@@ -301,6 +304,15 @@ export function submitComposeController(mountPath, plugin) {
|
|
|
301
304
|
}
|
|
302
305
|
}
|
|
303
306
|
|
|
307
|
+
console.info(
|
|
308
|
+
`[ActivityPub] Compose Micropub submission:`,
|
|
309
|
+
JSON.stringify({
|
|
310
|
+
syndicateTo: syndicateTo || "(none)",
|
|
311
|
+
micropubBody: micropubData.toString(),
|
|
312
|
+
micropubUrl,
|
|
313
|
+
}),
|
|
314
|
+
);
|
|
315
|
+
|
|
304
316
|
const micropubResponse = await fetch(micropubUrl, {
|
|
305
317
|
method: "POST",
|
|
306
318
|
headers: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmdes/indiekit-endpoint-activitypub",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"indiekit",
|