Current section

Files

Jump to
chilp src chilp widget anchors.gleam
Raw

src/chilp/widget/anchors.gleam

pub type Mastodon {
Mastodon(
/// The instance name, e.g. mastodon.social, this is where your post is stored, and where chilp will attempt to fetch it from.
instance: String,
/// A post id to bind to, you'll find this in a post url `https://mastodon.social/@<username>/[postid]`.
postid: String,
)
}
pub type Bluesky {
Bluesky(
/// Your DID, for `@strawmelonjuice.com`, this looks like `"did:plc:jgtfsmv25thfs4zmydtbccnn"`.
///
/// Not sure how to find your DID? <https://bsky-did.neocities.org> is one of the many places where you can easily find it.
did: String,
/// A post id to bind to, you'll find this in a post url `https://bsky.app/profile/<your-username-or-did>/post/[postid]`
postid: String,
)
}