Allows you to use Mastodon and Bluesky comments on your Lustre blog hexdocs.pm/chilp/
blog gleam lustre indieweb mastodon bluesky comments
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

add alias too

+6 -1
+2 -1
examples/lustre_chilp_app/src/lustre_chilp_app.gleam
··· 1 1 // IMPORTS --------------------------------------------------------------------- 2 2 3 + import chilp 3 4 import chilp/widget 4 5 import lustre 5 6 import lustre/effect.{type Effect} ··· 54 55 html.div([], [ 55 56 element.text(model.string), 56 57 // Let's render comments under https://pony.social/@strawmelonjuice/115911235653686237 and nothing else 57 - widget.element(instance: "pony.social", post_id: "115911235653686237"), 58 + chilp.widget(instance: "pony.social", post_id: "115911235653686237"), 58 59 ]) 59 60 }
+4
src/chilp.gleam
··· 1 + import chilp/widget 1 2 3 + pub fn widget(instance instance: String, post_id post: String) { 4 + widget.element(instance:, post_id: post) 5 + }