1
0
card/public/book/1/AGlkOnBsYzo0aHFqZm43bTZuNWhubzNkb2FtdWhnZWY/c2/1.html
2024-03-23 05:22:55 +09:00

570 lines
17 KiB
HTML

<!DOCTYPE HTML>
<html lang="" >
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>bluesky · hello world! bluesky</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
<meta name="generator" content="@gitbook-ng/gitbook 3.3.6">
<meta name="author" content="syui">
<link rel="stylesheet" href="../gitbook/style.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-codeblock-filename/block.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
<link rel="next" href="2.html" />
<link rel="prev" href="./" />
</head>
<body>
<div class="book">
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search" />
</div>
<nav role="navigation">
<ul class="summary">
<li class="chapter " data-level="1.1" data-path="../">
<a href="../">
hello world! bluesky
</a>
</li>
<li class="chapter " data-level="1.2" data-path="../c1/">
<a href="../c1/">
part 1
</a>
<ul class="articles">
<li class="chapter " data-level="1.2.1" data-path="../c1/1.html">
<a href="../c1/1.html">
quick start
</a>
</li>
<li class="chapter " data-level="1.2.2" data-path="../c1/2.html">
<a href="../c1/2.html">
example
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3" data-path="./">
<a href="./">
part 2
</a>
<ul class="articles">
<li class="chapter active" data-level="1.3.1" data-path="1.html">
<a href="1.html">
bluesky
</a>
</li>
<li class="chapter " data-level="1.3.2" data-path="2.html">
<a href="2.html">
terminal
</a>
</li>
<li class="chapter " data-level="1.3.3" data-path="3.html">
<a href="3.html">
shell
</a>
</li>
<li class="chapter " data-level="1.3.4" data-path="4.html">
<a href="4.html">
rust
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.4" data-path="../c3/">
<a href="../c3/">
part 3
</a>
<ul class="articles">
<li class="chapter " data-level="1.4.1" data-path="../c3/1.html">
<a href="../c3/1.html">
hello world
</a>
</li>
<li class="chapter " data-level="1.4.2" data-path="../c3/2.html">
<a href="../c3/2.html">
seahorse
</a>
</li>
<li class="chapter " data-level="1.4.3" data-path="../c3/3.html">
<a href="../c3/3.html">
reqwest
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.5" data-path="../c4/">
<a href="../c4/">
part 4
</a>
<ul class="articles">
<li class="chapter " data-level="1.5.1" data-path="../c4/0.html">
<a href="../c4/0.html">
ai
</a>
</li>
<li class="chapter " data-level="1.5.2" data-path="../c4/1.html">
<a href="../c4/1.html">
config
</a>
</li>
<li class="chapter " data-level="1.5.3" data-path="../c4/2.html">
<a href="../c4/2.html">
mention
</a>
</li>
<li class="chapter " data-level="1.5.4" data-path="../c4/3.html">
<a href="../c4/3.html">
base64
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.6" data-path="../end/">
<a href="../end/">
end
</a>
</li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<!-- Title -->
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i>
<a href=".." >bluesky</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<div id="book-search-results">
<div class="search-noresults">
<section class="normal markdown-section">
<h3 id="bluesky">bluesky</h3>
<p>The <code>at</code> will henceforth be <code>atproto</code>.</p>
<p>bluesky is positioned as a model service for <code>atproto</code>, which is currently being developed and operated by <a href="https://bsky.app/profile/did:plc:oc6vwdlmk2kqyida5i74d3p5/follows" target="_blank">bsky.team</a>.</p>
<p>The goal of bsky.team is to enable <code>atproto</code> to be adopted behind the scenes of various services and to allow communication between services.</p>
<p>Until now, accounts were only valid within a service. Therefore, it was necessary to switch accounts for each service. This is an attempt to change this.</p>
<p>bluesky will work with <code>pds</code>, <code>plc</code>, and <code>bgs</code>.</p>
<p>To describe the role of each, <code>pds</code> is the main body of bluesky.</p>
<p>plc is like <code>dns</code> and registers handle and did, and performs name resolution.</p>
<p>Basically, bluesky works only with pds.</p>
<p>However, when an account is created, it connects to plc, so if there is no connection to plc, an error will occur.</p>
<p>plc is not necessarily needed when an account is created; it is needed when a handle is registered or changed.</p>
<p>bgs builds the timeline of the account when connecting to other pds.</p>
<div class="mermaid">
graph TD;
A[pds]--&gt;B[plc];
C[pds]--&gt;B[plc];
D[pds]--&gt;B[plc];
</div>
<div class="mermaid">
graph TD;
A[pds]--&gt;B[bgs];
C[pds]--&gt;B[bgs];
D[pds]--&gt;B[bgs];
</div>
<h4 id="dns">dns</h4>
<p>What is a dns above is a server that performs name resolution on the Internet.</p>
<p>You connect to the internet by the number <code>ip address</code>.</p>
<p>For example, to connect to google, it is <code>172.217.25.174</code>.</p>
<pre><code class="lang-sh">$ dig google.com
google.com. 291 IN A 172.217.25.174
</code></pre>
<p>Try this number in your browser to see if it works. It should lead to <code>google.com</code>.</p>
<p>However, since numbers are difficult for humans to remember and handle, they are usually given names that are replaced by letters of the alphabet.</p>
<p>The server responsible for connecting the name to the number <code>ip address</code> is called dns.</p>
<p>The following is a command that displays the route to the desired host. You can see that it is connected via several servers.</p>
<pre><code class="lang-sh">$ traceroute google.com
20.27.177.113
17.253.144.10
172.217.25.174
</code></pre>
<p>If you want to know your ip address, you can use <code>ipinfo.io</code>.</p>
<pre><code class="lang-sh">$ curl <span class="hljs-_">-s</span>L ipinfo.io
20.27.177.113
</code></pre>
<h4 id="plc">plc</h4>
<p>These are the most commonly used plc&apos;s at this time. All are provided by bsky.team.</p>
<p><a href="https://plc.directory" target="_blank">https://plc.directory</a></p>
<p><a href="https://plc.bsky-sandbox.dev" target="_blank">https://plc.bsky-sandbox.dev</a></p>
<p>Specifically, it is used as follows</p>
<pre><code class="lang-sh">https://plc.directory/<span class="hljs-built_in">export</span>
https://plc.directory/<span class="hljs-built_in">export</span>?after=1970-01-01T00:00:00.000Z
https://plc.directory/did:plc:oc6vwdlmk2kqyida5i74d3p5
https://plc.directory/did:plc:oc6vwdlmk2kqyida5i74d3p5/<span class="hljs-built_in">log</span>
</code></pre>
<div><p class="code-filename">.env</p></div>
<pre><code class="lang-sh"><span class="hljs-comment">#DID_PLC_URL=https://plc.directory</span>
DID_PLC_URL=https://plc.bsky-sandbox.dev
</code></pre>
<h4 id="bast-service">bast service</h4>
<p>Since both api and pds are publicly available for bluesky, various services are being developed.</p>
<p>The following is a list of representative services.</p>
<p><a href="https://firesky.tv" target="_blank">https://firesky.tv</a> : Global Timeline Stream. You can configure and filter it in many ways.</p>
<p><a href="https://bsky.jazco.dev" target="_blank">https://bsky.jazco.dev</a> : User Visualization</p>
<p><a href="https://bsky.jazco.dev/stats" target="_blank">https://bsky.jazco.dev/stats</a> : Number of user posts</p>
<p><a href="https://vqv.app" target="_blank">https://vqv.app</a> : User profile aggregation, etc.</p>
<p><a href="https://atscan.net" target="_blank">https://atscan.net</a> : Scanning of pds and did</p>
<p><a href="https://skybridge.fly.dev" target="_blank">https://skybridge.fly.dev</a> : url to do bluesky in mastodon client</p>
<p><a href="https://tapbots.com/ivory" target="_blank">https://tapbots.com/ivory</a> : Support for mastodon client ivory</p>
<p><a href="https://skyfeed.app" target="_blank">https://skyfeed.app</a> : Generation of feeds</p>
</section>
</div>
<div class="search-results">
<div class="has-results">
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
<ul class="search-results-list"></ul>
</div>
<div class="no-results">
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="./" class="navigation navigation-prev " aria-label="Previous page: part 2">
<i class="fa fa-angle-left"></i>
</a>
<a href="2.html" class="navigation navigation-next " aria-label="Next page: terminal">
<i class="fa fa-angle-right"></i>
</a>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"bluesky","level":"1.3.1","depth":2,"next":{"title":"terminal","level":"1.3.2","depth":2,"path":"c2/2.md","ref":"c2/2.md","articles":[]},"previous":{"title":"part 2","level":"1.3","depth":1,"path":"c2/README.md","ref":"c2/README.md","articles":[{"title":"bluesky","level":"1.3.1","depth":2,"path":"c2/1.md","ref":"c2/1.md","articles":[]},{"title":"terminal","level":"1.3.2","depth":2,"path":"c2/2.md","ref":"c2/2.md","articles":[]},{"title":"shell","level":"1.3.3","depth":2,"path":"c2/3.md","ref":"c2/3.md","articles":[]},{"title":"rust","level":"1.3.4","depth":2,"path":"c2/4.md","ref":"c2/4.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["-sharing","codeblock-filename","mermaid-gb3","diff"],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"codeblock-filename":{},"mermaid-gb3":{},"diff":{"type":"markdown","method":"diffChars","options":{}},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"syui","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"hello world! bluesky","gitbook":"*","description":"This is a bluesky ai-card example, and first rust"},"file":{"path":"c2/1.md","mtime":"2023-07-31T06:56:02.235Z","type":"markdown"},"gitbook":{"version":"3.3.6","time":"2023-07-31T07:16:09.509Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
<script src="../gitbook/gitbook.js"></script>
<script src="../gitbook/theme.js"></script>
<script src="../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
<script src="../gitbook/gitbook-plugin-search/search.js"></script>
<script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
<script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
<script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
<script src="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>
</body>
</html>