developer-resource
developer-resource copied to clipboard
Epic: ActivityPub to IPNS
Description
thematters/ipns-site-generator is used to create and update personal websites on IPNS. When publishing a new article, it creates a separate directory with HTML, JS, CSS, and media files, attaches it to the IPNS directory, and updates the RSS feed, JSON feed, and index.html
.
Adding new features in this Epic:
- Able to store ActivityPub data: JSON files of ActivityPub are stored in the same IPNS directory, alongside HTML, RSS, and JSON feed.
- Render article comments: The HTML web app can retrieve ActivityPub data from relative paths and render article comments.
- It should be able to accept an IPNS key pair and create or update the corresponding IPNS record
- It should be able to be used with local or remote IPFS nodes, likely by accepting the address of the IPFS.
The final API could be:
f(Activity: any, IPFSNodeAddress: string, IPNSKeyPair: any, NewDirectory: bool) -> UpdatedIPNSRecord: string
Stories
- [x] https://github.com/thematters/ipns-site-generator/issues/150
- [x] https://github.com/thematters/ipns-site-generator/issues/151
- [x] https://github.com/thematters/developer-resource/issues/299
- [x] https://github.com/thematters/developer-resource/issues/300
Related work
ActivityPub integration by Distributed Press: https://github.com/hyphacoop/distributed-press-organizing/issues/80 It would be ideal if both features/modules share the same API.
- [ ] thematters/ipns-site-generator#149
- [ ] thematters/ipns-site-generator#146
- [ ] integrate comments into IPNS directory, js script load comments on each article
- [ ] add support
podcast.xml
into IPNS, for users who have audio files attached;