Nicolas Martyanoff on Nostr: I just finished a first version of the index view to show the content of directories ...
I just finished a first version of the index view to show the content of directories with Boulevard. Useful when serving simple files.
It does not have to be complicated: add one single setting to your HTTP handler and let Boulevard deal with content negotiation. You get a nice view either in text, HTML for web browsers and even JSON because why not.
Published at
2025-02-16 14:14:44Event JSON
{
"id": "12d8fb88745aa010367374e1b588e306c79b8eabfb98111551d69bdc102f7e63",
"pubkey": "6d91e7b056ab18986298e04a8b278a5e070a726487fd30a599427c79db9070e9",
"created_at": 1739715284,
"kind": 1,
"tags": [
[
"imeta",
"url https://cdn.fosstodon.org/media_attachments/files/114/013/980/741/610/413/original/50bd03e924881461.png",
"m image/png",
"dim 2108x999",
"blurhash UvFiMq00%MxuofWBj[ayj[ayj[f7ofayj[ay"
],
[
"proxy",
"https://fosstodon.org/users/galdor/statuses/114013980913507386",
"activitypub"
]
],
"content": "I just finished a first version of the index view to show the content of directories with Boulevard. Useful when serving simple files.\n\nIt does not have to be complicated: add one single setting to your HTTP handler and let Boulevard deal with content negotiation. You get a nice view either in text, HTML for web browsers and even JSON because why not.\n\nhttps://cdn.fosstodon.org/media_attachments/files/114/013/980/741/610/413/original/50bd03e924881461.png",
"sig": "a34f22c147684631907442d9b9a37d0cee19db871773bf32d9a657977450ef199bcf5c3b95275053d9d5600f0c728162764b67c51f240bbf89370305c1b40a32"
}