Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Reactions

A reaction block any realm can embed. One line in your Render, no state on your side, and readers get one-click reactions keyed on the page they are looking at.

It is not a comment system, on purpose. There is no text field anywhere, which is what lets it run with no moderation: a closed palette, one reaction per address per page, changeable and removable.

It looks like this

๐Ÿ‘ ๐Ÿ’œ ๐Ÿ”ฅ ๐ŸŽ‰ ๐Ÿš€ 1 ๐Ÿ‘€

last ๐Ÿš€ by g1manfreโ€ฆdlf5 ยท 1 reaction

That block is live and it is this realm's own page. Click one.

Add it to your realm

1import "gno.land/r/moul/reactions/v0"
2
3func Render(path string) string {
4	return body + reactions.RenderBlock()
5}

That is the whole integration. RenderBlock takes no argument because it does not need one: a plain read exported by one realm and called by another opens no realm frame, so it sees YOUR path and uses it as the page key. Nothing to register, nothing to configure.

For one block per article rather than one per realm, name the page yourself with the path you already serve:

1return body + reactions.RenderBlockFor("gno.land/r/you/blog:" + path)

Reactions are recorded here, not in your realm, so redeploying yours never loses them.

The palette

key
up ๐Ÿ‘
heart ๐Ÿ’œ
fire ๐Ÿ”ฅ
party ๐ŸŽ‰
rocket ๐Ÿš€
eyes ๐Ÿ‘€

Six, and the set is closed. React aborts on anything else, which is the entire moderation policy.

The board

page reactions last
gno.land/r/moul/home 1 ๐Ÿš€ g1manfreโ€ฆdlf5
gno.land/r/moul/reactions/v0 1 ๐Ÿš€ g1manfreโ€ฆdlf5