If we wanna use something existing as the base and add some nostr magic to it I'd probably go with something like ArchiveBox

GitHub
GitHub - ArchiveBox/ArchiveBox: ๐ Open source self-hosted web archiving. Takes URLs/browser history/bookmarks/Pocket/Pinboard/etc., saves HTML, JS, PDFs, media, and more...
๐ Open source self-hosted web archiving. Takes URLs/browser history/bookmarks/Pocket/Pinboard/etc., saves HTML, JS, PDFs, media, and more... - A...