A single file ActivityPub Server on Nostr: My tiny #ActivityPub server is now a massive... 64KB. Yup. Kilobytes. * It can send ...
My tiny #ActivityPub server is now a massive... 64KB.
Yup. Kilobytes.
* It can send posts with attached images & alt text.
* Reply to posts with a proper thread.
* Read replies sent to it.
* Follow #Fediverse accounts and see their posts & edits.
* You can follow it.
* Hell, it even does HTTP Message Signature Verification!
All of this in a single PHP file. No database, no Docker, no dependencies, no AI.
You can grab the code at
https://gitlab.com/edent/activitypub-single-php-file/😎
Published at
2024-03-25 20:30:03Event JSON
{
"id": "2959dbde8cbe85100a145594b06cf45ae8abca5de0c24e9b005bae50da6fea60",
"pubkey": "45d92f532375c4eae3c9e37b08b37cfd28e4d3a8f4c6b3fba031841de46bf5a5",
"created_at": 1711398603,
"kind": 1,
"tags": [
[
"proxy",
"https://example.viii.fi/posts/6601e7fb-54c9-69db-8a02-2d193be39eff.json",
"activitypub"
]
],
"content": "My tiny #ActivityPub server is now a massive... 64KB.\n\nYup. Kilobytes.\n\n* It can send posts with attached images \u0026 alt text.\n* Reply to posts with a proper thread.\n* Read replies sent to it.\n* Follow #Fediverse accounts and see their posts \u0026 edits.\n* You can follow it.\n* Hell, it even does HTTP Message Signature Verification!\n\nAll of this in a single PHP file. No database, no Docker, no dependencies, no AI.\n\nYou can grab the code at https://gitlab.com/edent/activitypub-single-php-file/\n\n😎",
"sig": "50a078a4537bc0fd4bb3e0ee62b051a38afe9e60fe1dbe6165bbaec04bf88a6521c35bb3157d8edb04b5de13ba86ac5a556cb41f114cb552fbf5e6ae40e8d14d"
}