tiny 88x31 lexicon for atproto
at main 33 lines 1.5 kB view raw
1{{define "content"}} 2<p> 3the most convenient api for <a href="/">88x31.store</a> is <code>/embed/liked-by?did=</code> 4</p> 5<p> 6 this returns neat server-side-rendered html for use esp. in an iframe, like so: 7 <code> 8 &lt;iframe src="<a href="https://88x31.store/embed/liked-by?did=did:plc:25z6ogppprfvijcnqo2fsfce">https://88x31.store/embed/liked-by?did=did:plc:25z6ogppprfvijcnqo2fsfce</a>"&gt;&lt;/iframe&gt; 9 </code> 10 which renders as 11</p> 12<iframe src="https://88x31.store/embed/liked-by?did=did:plc:25z6ogppprfvijcnqo2fsfce"></iframe> 13<p> 14<a href="https://88x31.store/embed/liked-by/reference">full reference for /embed/liked-by api</a> 15</p> 16<p> 17 of course this hotlinks the buttons. if you don't know what's what this is perfectly fine! 18</p> 19<p> 20 if you expect a **lot** of traffic it's still ok, but please pay me in exposure or something lol 21</p> 22<p> 23 you can also get and host the buttons yourself, either once from me using the getButton lexicon, or directly from the PDS 24</p> 25<p> 26 if you're into atproto or want more flexibility with layout, you can also use the getLikedButtons lexicon to get JSON for a user's likes, like so: 27 <code> 28 &lt;iframe src="<a href="https://88x31.store/xrpc/store.88x31.getLikedButtons?did=did:plc:25z6ogppprfvijcnqo2fsfce">https://88x31.store/xrpc/store.88x31.getLikedButtons?did=did:plc:25z6ogppprfvijcnqo2fsfce</a>"&gt;&lt;/iframe&gt; 29 </code> 30 which renders as 31</p> 32<iframe src="https://88x31.store/xrpc/store.88x31.getLikedButtons?did=did:plc:25z6ogppprfvijcnqo2fsfce"></iframe> 33{{end}}