{"id":318154,"date":"2021-02-17T09:03:43","date_gmt":"2021-02-17T09:03:43","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=318154"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=318154","title":{"rendered":"OrbitDB \u2014 \u0434\u0435\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 IPFS"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/52\/mq\/28\/52mq28ylap7un9kg7skfivgxjtw.png\"><\/p>\n<p>  \u041c\u044b \u0443\u0436\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \u043f\u0440\u043e <a href=\"https:\/\/habr.com\/ru\/company\/vdsina\/blog\/496436\/\">InterPlanetary File System<\/a>, \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0443\u044e \u0441\u0435\u0442\u044c \u043f\u043e\u0432\u0435\u0440\u0445 \u043e\u0434\u043d\u043e\u0438\u043c\u0451\u043d\u043d\u043e\u0433\u043e p2p-\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 \u0441 \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u043f\u043e HTTP. \u0414\u0430\u043d\u043d\u044b\u0435 \u0432 \u043d\u0435\u0439 \u043d\u0435 \u043f\u043e\u0434\u0434\u0430\u044e\u0442\u0441\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044e (\u043d\u0435 \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d, \u043d\u043e \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u043e\u0432 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442), \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043d\u0435\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e \u0434\u043e\u043b\u0433\u043e \u0438 \u0443 \u043d\u0435\u0451 \u0434\u0430\u0436\u0435 \u0435\u0441\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0438\u043c\u0451\u043d IPNS, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0430\u044f \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0430\u0439\u0442\u044b \u0438 serverless \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a IPFS \u2014 \u043d\u0438\u0437\u043a\u0430\u044f \u0438 \u043d\u0435\u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445: \u043a\u0430\u0436\u0434\u044b\u0439 \u0444\u0430\u0439\u043b \u0438\u043b\u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0431\u043b\u043e\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0440\u0430\u0437\u043b\u0435\u0442\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0432\u0441\u0435\u0439 \u0441\u0435\u0442\u0438 \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0432\u043e\u0435\u0434\u0438\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e DHT. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0435\u0441\u043b\u0438 \u0434\u0430\u0436\u0435 \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0431\u043b\u043e\u043a\u043e\u0432 \u0437\u0430\u043d\u0435\u0441\u0451\u0442 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0435 \u043f\u043e\u043b\u0443\u0448\u0430\u0440\u0438\u0435, \u0437\u0430\u0442\u043e\u0440\u043c\u043e\u0437\u0438\u0442\u0441\u044f \u0432\u0441\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430. \u042d\u0442\u043e \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u0441\u0435\u0445 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439 \u0438 \u043b\u0435\u0433\u043a\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0435\u0442. \u0417\u0430\u0442\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0438 \u043a\u043e\u043c\u044c\u044e\u043d\u0438\u0442\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 OrbitDB \u0441\u043c\u043e\u0433\u043b\u0438 \u0440\u0435\u0448\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u043d\u0430\u0437\u043e\u0439\u043b\u0438\u0432\u0443\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 IPFS \u2014 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u043e\u0433\u043b\u0430 \u0431\u044b \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 IPFS \u0438 \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0439 \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0439.<a name=\"habracut\"><\/a><\/p>\n<p>  \u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 OrbitDB \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0432 \u0441\u0432\u043e\u0451\u043c \u0440\u043e\u0434\u0435? \u041e\u043d\u0430, \u043a\u0430\u043a \u0438 \u0432\u0441\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 \u0445\u0440\u0430\u043d\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e \u0438 \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0437\u0430\u043f\u0430\u0441\u043e\u043c \u043a\u043e\u043f\u0438\u0439. \u041a\u043e\u043f\u0438\u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0432\u0441\u0435\u043c\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c\u0438 \u043f\u0438\u0440\u0430\u043c\u0438 \u0438 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Conflict-free_replicated_data_type\">CRDT<\/a> (\u0431\u0435\u0441\u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043d\u044b\u0435 \u0440\u0435\u043f\u043b\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u0432\u043e\u0442 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f <a href=\"https:\/\/habr.com\/ru\/post\/418897\/\">\u0441\u0442\u0430\u0442\u044c\u044f<\/a>). \u0418\u043c\u0435\u043d\u043d\u043e \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f OrbitDB serverless \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 IPFS \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0435\u0434\u0438\u043d\u044b\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u0435 \u043f\u043e\u043b\u0430\u0433\u0430\u044f\u0441\u044c \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u043e\u0434\u0445\u043e\u0434 \u043a \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044e \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u0438\u043b\u044c\u043d\u043e \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u043a\u043b\u0438\u0435\u043d\u0442-\u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439: \u043a\u0430\u0436\u0434\u044b\u0439 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a \u0441\u0435\u0442\u0438 \u0445\u0440\u0430\u043d\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u00ab\u0441\u0432\u043e\u0438\u00bb \u0434\u0430\u043d\u043d\u044b\u0435, \u043a \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0443 \u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f, \u0430 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u0440\u0430\u0432 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438.<\/p>\n<blockquote><p>\u041a\u0441\u0442\u0430\u0442\u0438, \u0440\u0435\u043f\u043b\u0438\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/github.com\/ipfs\/js-ipfs\/blob\/master\/docs\/core-api\/PUBSUB.md\">IPFS PubSub<\/a>, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0434\u0435\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 (dApps). PubSub \u2014 \u043e\u0431\u044b\u0447\u043d\u0430\u044f \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430 \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0441\u0435\u0442\u0435\u0439, \u043f\u0430\u0442\u0442\u0435\u0440\u043d, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0443\u0437\u043b\u0430 \u0438 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u043d\u0438\u043c \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e. \u041e\u0431\u044b\u0447\u043d\u043e \u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0440\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0430 \u0441\u0435\u0442\u044c, \u043d\u043e \u0432 IPFS \u044d\u0442\u043e \u0442\u0430\u043a\u0436\u0435 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u0443\u0437\u043b\u0430\u043c\u0438: \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0434\u043b\u0438\u043d\u043d\u043e\u043c\u0443 \u0445\u044d\u0448\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u043b\u0438 \u0443\u0433\u0430\u0434\u0430\u0442\u044c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e.<\/p><\/blockquote>\n<p>  \u0414\u043e\u043b\u0433\u043e\u0435 \u0432\u0440\u0435\u043c\u044f OrbitDB \u043d\u0435 \u0432\u044b\u0445\u043e\u0434\u0438\u043b\u0430 \u0438\u0437 \u043c\u0443\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u044d\u0442\u0430\u043f\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043a\u043e\u0433\u0434\u0430 \u0432\u0440\u043e\u0434\u0435 \u0431\u044b \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u044f\u0434\u0440\u043e \u0433\u043e\u0442\u043e\u0432\u043e, \u043d\u043e \u043d\u0430 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0447\u0442\u043e-\u0442\u043e \u0432\u0430\u043b\u0438\u0442\u0441\u044f \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u0441\u043a\u0430\u0434 \u0431\u0430\u0433\u043e\u0432 \u2014 \u0432 \u043e\u0431\u0449\u0435\u043c, \u043d\u0435 \u0442\u043e \u0447\u0442\u043e \u0432 \u043f\u0440\u043e\u0434, \u0435\u0451 \u0434\u0430\u0436\u0435 \u0434\u043b\u044f \u043f\u0435\u0442-\u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0431\u044b\u043b\u043e \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0437\u0430 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0433\u043e\u0434 \u0432\u044b\u0448\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u043a\u0440\u0443\u043f\u043d\u044b\u0445 \u0440\u0435\u043b\u0438\u0437\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u0432\u0435\u043b\u0438 \u0432\u0441\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0434\u043e \u0434\u043e\u0432\u043b\u044c\u043d\u043e \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f (\u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043f\u0440\u0438 \u0442\u043e\u043c \u0447\u0442\u043e \u043c\u0430\u043d\u0443\u0430\u043b \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443 \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0430\u0435\u0442\u0441\u044f \u043a \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043a\u043d\u0438\u0433\u0435). \u0414\u0430\u043b\u044c\u0448\u0435 \u043c\u044b \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441\u043e \u0441\u0432\u043e\u0438 \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u043e\u043c \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0435\u0433\u043e \u0432 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0438 \u043d\u0430 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0439 \u0434\u0435\u043c\u043a\u0435.<\/p>\n<h2>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0431\u0430\u0437\u0443<\/h2>\n<p>  \u041a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u043a \u0436\u0435\u043b\u0435\u0437\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043d\u0435 \u043f\u0440\u0438\u0432\u043e\u0434\u044f\u0442, \u044f \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 IPFS \u0438 OrbitDB \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445 \u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0431\u0440\u0430\u0442\u044c \u043d\u0435 \u043c\u0435\u043d\u044c\u0448\u0435 2\u0433\u0431 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0434\u0432\u0443\u0445 \u044f\u0434\u0435\u0440 \u0434\u043b\u044f \u0441\u0440\u0435\u0434\u043d\u0435\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0430 \u0434\u043b\u044f \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043f\u043e\u0434\u0431\u0438\u0440\u0430\u0442\u044c \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e. \u0412 \u043f\u0438\u043a\u0435 \u043f\u0440\u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 3-5 \u0433\u0438\u0433\u0430\u0431\u0430\u0439\u0442 \u043e\u0434\u043d\u0430 \u043d\u043e\u0434\u0430 \u0441\u044a\u0435\u0434\u0430\u043b\u0430 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0435\u0439 4 \u0433\u0438\u0433\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043a\u0438 \u043d\u0430 \u0434\u0432\u0443\u0445\u044a\u044f\u0434\u0435\u0440\u043d\u043e\u043c 3.2\u0413\u0413\u0446 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0430\u043c\u043e\u0435 \u0434\u0435\u0448\u0451\u0432\u043e\u0435 \u0436\u0435\u043b\u0435\u0437\u043e \u043b\u0443\u0447\u0448\u0435 \u043d\u0435 \u0431\u0440\u0430\u0442\u044c.<\/p>\n<p>  \u0423 IPFS \u0435\u0441\u0442\u044c \u0434\u0432\u0435 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u043d\u0430 Go \u0438 JS, \u0438 \u0432\u0442\u043e\u0440\u0430\u044f \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0435\u0435 \u0438\u0437-\u0437\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043d\u0438\u044f \u0432 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0438 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041d\u0430 \u043d\u0435\u0439 \u0436\u0435 \u0438 \u043e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f OrbitDB. \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u043a\u0430\u0442\u044b\u0432\u0430\u0435\u043c NodeJS \u0441 npm \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u0430\u043a\u0435\u0442\u044b:<\/p>\n<pre><code class=\"javascript\">  npm install orbit-db ipfs <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0431\u0430\u0437\u043e\u0439 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c IPFS \u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438\u043d\u0441\u0442\u0430\u043d\u0441 OrbitDB. \u042d\u0442\u043e \u0435\u0449\u0451 \u043d\u0435 \u0441\u0430\u043c\u0430 \u0411\u0414, \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441:<\/p>\n<pre><code class=\"javascript\">  const IPFS = require('ipfs')   const OrbitDB = require('orbit-db')    async function main () {     const ipfsOptions = { repo : '.\/ipfs', }     const ipfs = await IPFS.create(ipfsOptions)     const orbitdb = await OrbitDB.createInstance(ipfs)   }    main() <\/code><\/pre>\n<p>  \u0412\u0441\u0435\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0447\u0435\u0442\u044b\u0440\u0435 \u0442\u0438\u043f\u0430 \u0434\u0430\u043d\u043d\u044b\u0445: key-value, log (\u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u0435 \u0432 \u043a\u043e\u043d\u0435\u0446), feed (log \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438) \u0438 documents (\u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 JSON). \u0415\u0441\u0442\u044c \u0435\u0449\u0451 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0447\u0451\u0442\u0447\u0438\u043a, \u043d\u043e \u043d\u0430\u0437\u0432\u0430\u0442 \u044c\u0435\u0433\u043e \u0442\u0438\u043f\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u044f\u0437\u044b\u043a \u043d\u0435 \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f.<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c KV-\u0431\u0430\u0437\u0443:<\/p>\n<pre><code class=\"javascript\">  const IPFS = require('ipfs')   const OrbitDB = require('orbit-db')      async function main () {     const ipfsOptions = { repo : '.\/ipfs', }     const ipfs = await IPFS.create(ipfsOptions)     const orbitdb = await OrbitDB.createInstance(ipfs)     \/\/ \u0432 OrbitDB \u043c\u043d\u043e\u0433\u043e \u0430\u043b\u0438\u0430\u0441\u043e\u0432, \u0437\u0434\u0435\u0441\u044c .keyvalue \u043f\u0440\u0438\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f     \/\/ \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0431\u0430\u0437\u044b, \u043d\u043e \u0438\u043c \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0435\u0451     const db = await orbitdb.keyvalue('first-database')   }   main() <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0411\u0414 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u0432\u0438\u0434\u0430 <code>\/orbitdb\/<\/code> + \u0445\u044d\u0448 + \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0431\u0430\u0437\u044b. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0430\u043a\u043e\u0439:<\/p>\n<p>  <code>\/orbitdb\/Qmd8TmZrWASypEp4Er9tgWP4kCNQnW4ncSnvjvyHQ3EVSU\/first-database<\/code><\/p>\n<p>  \u0417\u0434\u0435\u0441\u044c <code>\/orbitdb\/<\/code> \u044d\u0442\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, \u0430 \u043f\u043e\u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435 \u2014 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043c\u0443\u043b\u044c\u0442\u0438\u0445\u044d\u0448 IPFS, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u044c \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442 \u0431\u0430\u0437\u044b.<\/p>\n<h2>\u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430<\/h2>\n<p>  \u041a\u0430\u0436\u0434\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0431\u0430\u0437\u0443 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0430 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c \u0435\u0451 \u0430\u0432\u0442\u043e\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u0437 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 <code>identity<\/code>:<\/p>\n<pre><code class=\"javascript\">  const identity = db.identity   console.log(identity.toJSON())   \/\/ \u0432\u044b\u0432\u043e\u0434   {     id: '0443729cbd756ad8e598acdf1986c8d586214a1ca...',     publicKey: '0446829cbd926ad8e858acdf1988b8d586...',     signatures: {       id: '3045022058bbb2aa415623085124b32b254b866...',       publicKey: '3046022100d138ccc0fbd48bd41e74e4...'     },     type: 'orbitdb'   } <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043a\u043b\u044e\u0447\u043e\u043c \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430, \u0432\u0441\u0451 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e \u0438\u0437\u043b\u043e\u0436\u0435\u043d\u043e <a href=\"https:\/\/github.com\/orbitdb\/orbit-db\/blob\/master\/GUIDE.md#access-control\">\u0432 \u0434\u043e\u043a\u0430\u0445<\/a>. \u0412\u043a\u0440\u0430\u0442\u0446\u0435: \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0431\u0430\u0437\u044b \u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u0435 <code>accessController<\/code> \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u0441\u043f\u0438\u0441\u043e\u043a \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d\u043d\u044b\u0445 \u0430\u0439\u0434\u0438\u0448\u043d\u0438\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0439, <b>\u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435<\/b>, \u043f\u043e\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435. \u041e\u0442\u043e\u0437\u0432\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043d\u0435\u043b\u044c\u0437\u044f, \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0432 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u0411\u0414.<\/p>\n<pre><code class=\"javascript\">  const IPFS = require('ipfs')   const OrbitDB = require('orbit-db')    async function main () {     const ipfsOptions = { repo: '.\/ipfs',}     const ipfs = await IPFS.create(ipfsOptions)     const orbitdb = await OrbitDB.createInstance(ipfs)     const options = {       \/\/ \u0412\u044b\u0434\u0430\u0451\u043c \u0441\u0435\u0431\u0435 \u0434\u043e\u0441\u0442\u0443\u043f       accessController: {         write: [orbitdb.identity.id]       }     }      const db = await orbitdb.keyvalue('first-database', options)     console.log(db.address.toString())     \/\/ \/orbitdb\/Qmd8TmZrWASypEp4Er9tgWP4kCNQnW4ncSnvjvyHQ3EVSU\/first-database   }   main() <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043f\u0438\u0440\u0430, \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0433\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 <code>orbitdb.identity.id<\/code> \u2014 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u043a\u043b\u044e\u0447 \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432\u044b\u0448\u0435.<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u0430\u0437\u0443 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0439 \u0434\u043b\u044f \u0432\u0441\u0435\u0445, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c<\/p>\n<pre><code class=\"javascript\">  accessController: {     write: ['*']   } <\/code><\/pre>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0432\u044b\u0434\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0431\u0430\u0437\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <code>await db.access.grant('write', identity2.publicKey)<\/code><\/p>\n<h2>\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438<\/h2>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043d\u0443\u0436\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c IPFS: \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0437\u0430\u0441\u043e\u0440\u044f\u0442\u044c \u0441\u0435\u0442\u044c \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u043c \u043c\u0443\u0441\u043e\u0440\u043e\u043c, DHT \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u0432\u044b\u0447\u0438\u0449\u0430\u0435\u0442 \u0435\u0433\u043e \u0438\u0437 \u0441\u0435\u0431\u044f. \u0427\u0442\u043e\u0431\u044b \u0432\u0430\u0448\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u0438\u0441\u044c \u0432 \u043c\u0443\u0441\u043e\u0440, \u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043a\u0440\u0435\u043f\u0438\u0442\u044c (pin). \u042d\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u043b\u044f \u043b\u044e\u0431\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043e \u0432\u0441\u0435\u0439 \u0441\u0435\u0442\u0438, \u0438 \u043d\u0443\u0436\u043d\u043e \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0442\u044c \u043e \u043d\u0451\u043c, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043e\u0441\u0442\u0430\u0442\u044c\u0441\u044f \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u0431\u0435\u0437 \u0431\u0430\u0437\u044b.<\/p>\n<h4>Put\/Set\/Add\/Inc\u2026 wtf?<\/h4>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0440\u0430\u0437\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b, \u0447\u0442\u043e \u043b\u043e\u0433\u0438\u0447\u043d\u043e, \u043d\u043e \u043f\u043e\u043d\u0430\u0447\u0430\u043b\u0443 \u0441\u0431\u0438\u0432\u0430\u0435\u0442 \u0441 \u0442\u043e\u043b\u043a\u0443. \u0418\u0442\u0430\u043a:<\/p>\n<ul>\n<li>key-value: put \u0438\u043b\u0438 set<\/li>\n<li>log \u0438 feed: add<\/li>\n<li>docs: put<\/li>\n<li>counter: inc<\/li>\n<\/ul>\n<pre><code class=\"javascript\">  \/\/ \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0438\u043d\u0441\u0442\u0430\u043d\u0441   const orbitdb = await OrbitDB.createInstance(ipfs)   \/\/ \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0431\u0430\u0437\u0443   const db = await orbitdb.keyvalue('first-database')   \/\/ \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435   await db.put('name', 'hello')   \/\/ \u0438\u043b\u0438 \u0437\u0430\u043a\u0440\u0435\u043f\u043b\u044f\u0435\u043c \u0438\u0445, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0432\u044b\u043f\u0438\u043b\u0438\u043b GC   await db.put('name', 'hello', { pin: true }) <\/code><\/pre>\n<p>  \u041f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u043c\u0438\u043d\u043d\u043e\u0435 \u043f\u043e\u043b\u0435? \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u0441\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u043e\u043a\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e. \u0412\u0440\u043e\u0434\u0435 \u043a\u0430\u043a \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043d\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0441 \u0437\u0430\u043f\u0430\u0441\u043e\u043c, \u043d\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043d\u0443\u0436\u043d\u043e.<\/p>\n<h4>Get \u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f<\/h4>\n<p>  <\/p>\n<ul>\n<li>key-value: get<\/li>\n<li>log \u0438 feed: iterator<\/li>\n<li>docs: get \u0438 query<\/li>\n<li>counter: value<\/li>\n<\/ul>\n<pre><code class=\"javascript\">  const orbitdb = await OrbitDB.createInstance(ipfs)   const db = await orbitdb.keyvalue('first-database')   await db.put('name', 'hello')   const value = db.get('name')   \/\/ hello <\/code><\/pre>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0431\u044b\u043b\u043e \u0431\u044b \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0435\u0449\u0451 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432, \u043f\u0435\u0440\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c \u0438 \u0440\u0435\u043f\u043b\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u043d\u043e \u043e\u043d\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432 \u0434\u043e\u043a\u0430\u0445 \u0438 \u043a \u043d\u0438\u043c \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u0431\u043e\u043b\u0435\u0435 \u0433\u043b\u0443\u0431\u043e\u043a\u043e\u043c \u043f\u043e\u0433\u0440\u0443\u0436\u0435\u043d\u0438\u0438, \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0434\u043b\u044f \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0430.<\/p>\n<h2>\u0425\u0430\u0431\u0440 \u0442\u043e\u0440\u0442?<\/h2>\n<p>  \u0427\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0449\u0435 Todo? \u0423 OrbitDB \u0435\u0441\u0442\u044c \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u0430\u044f \u0434\u0435\u043c\u043a\u0430 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0433\u043e TodoMVC, \u0441 \u043f\u0435\u0440\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c\u044e, \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u043c \u0438 \u043b\u043e\u0433\u0438\u043a\u043e\u0439. \u041f\u043e\u043a\u0430 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e, \u0432\u043e\u0437\u044c\u043c\u0451\u043c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u2014 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0441 \u0440\u0430\u0437\u043d\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u043c\u043e\u0433\u0443\u0442 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u043e\u0431\u0449\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0449\u0438\u0435\u0441\u044f \u0432 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u043e\u0439 \u0431\u0430\u0437\u0435. \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0435\u0433\u043e \u043a\u0443\u0441\u043e\u043a, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0443\u0445\u043e\u0434\u0438\u0442 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c\u0438. \u041e\u0431\u0440\u043e\u0441\u0438\u043c \u0440\u0443\u0447\u043d\u043e\u0439 \u0432\u0432\u043e\u0434, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0430\u0440\u0438\u0442\u044c\u0441\u044f \u0441 \u0441\u0430\u043d\u0438\u0442\u0430\u0439\u0437\u0435\u0440\u043e\u043c, \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u0441\u043f\u043e\u0440\u0438\u043c \u043e \u0432\u0435\u0447\u043d\u043e\u043c \u2014 \u0430 \u0425\u0430\u0431\u0440 \u0435\u0449\u0451 \u0442\u043e\u0440\u0442?<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ur\/qs\/km\/urqskm1kvxcuzvt_0-hcs2oqtqk.png\"><br \/>  <i>\u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u043d\u0435\u0436\u043d\u043e-\u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442<\/i><\/p>\n<p>  \u041c\u043d\u0435 \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0449\u0435 \u043d\u0430\u043a\u0438\u0434\u0430\u0442\u044c \u0437\u0430 \u043f\u044f\u0442\u044c \u043c\u0438\u043d\u0443\u0442 \u043c\u0430\u043a\u0435\u0442 \u043d\u0430 Vue, \u043d\u043e \u044d\u0442\u043e \u0434\u0435\u043b\u043e \u0432\u043a\u0443\u0441\u0430. \u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438, \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u044b\u043a\u0438\u043d\u0443\u0442\u044c UI \u0438 \u0432\u0435\u0441\u0442\u0438 \u0432\u043e\u0439\u043d\u044b \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438.<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0412\u0435\u0441\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">    &lt;template&gt;       &lt;div class=&quot;dropdown&quot;&gt;         &lt;span&gt;\u0425\u0430\u0431\u0440: &lt;\/span&gt;         &lt;dropdown :options=&quot;options&quot; :selected=&quot;active&quot; v-on:updateOption=&quot;onSelect&quot;&gt;&lt;\/dropdown&gt;         &lt;p&gt;\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435: {{lastUpdated}}&lt;\/p&gt;       &lt;\/div&gt;     &lt;\/template&gt;     &lt;script&gt;     import dropdown from 'vue-dropdowns'     const IPFS = require('ipfs')     const OrbitDB = require('orbit-db')     export default {       name: 'HabrIs',       components: {         dropdown       },       data() {         return {           options: [{ name: '\u0442\u043e\u0440\u0442' }, { name: '\u043d\u0435 \u0442\u043e\u0440\u0442' }, { name: '\u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0421\u041c\u0418 \u043e\u0431 IT' }],           active: {             name: '\u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0421\u041c\u0418 \u043e\u0431 IT',           },           lastUpdated: '',           db: false,           address: '\/orbitdb\/zdpuB3UcoWfRJCEeZ7rMsw3CuLjK25ahuTG1KCs9CW2b1HVsV\/habr-is'         }       },       methods: {         onSelect(value) {           this.active = value           this.lastUpdated = new Date().toLocaleString()           this.updateDatabase()         },         run: async function () {           const ipfsOptions = {             repo: '.\/ipfs',             EXPERIMENTAL: {               pubsub: true,             },             config: {               Addresses: {                 Swarm: [                   '\/dns4\/wrtc-star1.par.dwebops.pub\/tcp\/443\/wss\/p2p-webrtc-star\/',                   '\/dns4\/wrtc-star2.sjc.dwebops.pub\/tcp\/443\/wss\/p2p-webrtc-star\/',                   '\/dns4\/webrtc-star.discovery.libp2p.io\/tcp\/443\/wss\/p2p-webrtc-star\/'                 ]               },             }           }           const ipfs = await IPFS.create(ipfsOptions)           const orbitdb = await OrbitDB.createInstance(ipfs)           if (!this.address) {             this.createDatabase(orbitdb)           } else {             this.openDatabase(orbitdb)           }         },         createDatabase: async function (orbitdb) {           try {             const options = {               EXPERIMENTAL: {                 pubsub: true,               },               accessController: {                 write: ['*']               }             }                  this.db = await orbitdb.keyvalue('first-database', options)             this.address = this.db.address.toString()             console.log('created database at ' + this.address)             await this.db.put('value', '\u0442\u043e\u0440\u0442', { pin: true })             await this.db.put('lastUpdated', new Date().toLocaleString(), { pin: true })             this.getData()           } catch (e) {             console.error(e)           }         },         openDatabase: async function (orbitdb) {           try {             this.db = await orbitdb.keyvalue(this.address)             console.log('opened database at ' + this.address)             console.log(this.db)             this.getData()           } catch (e) {             console.error(e)           }         },         getData() {           setInterval(() =&gt; {             try {               const value = this.db.get('value')               this.active.name = value               const lastUpdated = this.db.get('lastUpdated')               this.lastUpdated = lastUpdated             } catch (e) {               console.error(e)             }           }, 3000);         },         updateDatabase: async function () {           try {             await this.db.put('value', this.active.name, { pin: true })             await this.db.put('lastUpdated', this.lastUpdated, { pin: true })           } catch (e) {             console.error(e)           }         }       },       mounted() {         this.run()       }     }     &lt;\/script&gt;   <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  \u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u0432\u0430\u0436\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b: \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043d\u0430\u0434\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u043e\u0434\u0443 IPFS, \u0447\u0442\u043e\u0431\u044b \u0443 \u043d\u0435\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u043b PubSub \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 WebRTC \u2014 \u0434\u0430\u0436\u0435 \u0442\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u043e\u0442\u043a\u043b\u0438\u043a, \u043d\u043e \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c \u0431\u0435\u0437 \u043d\u0435\u0433\u043e.<\/p>\n<pre><code class=\"javascript\">  const ipfsOptions = {     repo: '.\/ipfs',     EXPERIMENTAL: {       pubsub: true,     },     config: {       Addresses: {         Swarm: [           '\/dns4\/wrtc-star1.par.dwebops.pub\/tcp\/443\/wss\/p2p-webrtc-star\/',           '\/dns4\/wrtc-star2.sjc.dwebops.pub\/tcp\/443\/wss\/p2p-webrtc-star\/',           '\/dns4\/webrtc-star.discovery.libp2p.io\/tcp\/443\/wss\/p2p-webrtc-star\/'         ]       },     }   } <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0443\u043a\u0430\u0436\u0435\u043c, \u0447\u0442\u043e \u0445\u0430\u0431\u0440 \u2014 \u0442\u043e\u0440\u0442:<\/p>\n<pre><code class=\"javascript\">  createDatabase: async function (orbitdb) {     try {       const options = {         accessController: {           write: ['*']         }       }       this.db = await orbitdb.keyvalue('first-database', options)       this.address = this.db.address.toString()       console.log('created database at ' + this.address)       await this.db.put('value', '\u0442\u043e\u0440\u0442', { pin: true })       await this.db.put('lastUpdated', new Date().toLocaleString(), { pin: true })       this.getData()     } catch (e) {       console.error(e)     }   } <\/code><\/pre>\n<p>  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0431\u0430\u0437\u0443, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u0434\u0440\u043e\u043f\u0434\u0430\u0443\u043d, \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043e\u0441\u0442\u044b\u043b\u044f \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u043c\u0438:<\/p>\n<pre><code class=\"javascript\">  openDatabase: async function (orbitdb) {     try {       this.db = await orbitdb.keyvalue(this.address)       console.log('opened database at ' + this.address)       console.log(this.db)       this.getData()     } catch (e) {       console.error(e)     }   },   getData() {     \/\/ \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u043e \u0432 openDatabase, \u0441\u0432\u0435\u0436\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f     \/\/ \u0442\u044f\u043d\u0443\u0442\u044c \u0442\u0430\u043a\u0438\u043c \u043d\u0435\u043f\u0440\u0438\u0433\u043b\u044f\u0434\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u2014 vue watch \u043f\u043b\u043e\u0445\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 async     setInterval(() =&gt; {       try {         const value = this.db.get('value')         this.active.name = value         const lastUpdated = this.db.get('lastUpdated')         this.lastUpdated = lastUpdated       } catch (e) {         console.error(e)       }     }, 3000);   } <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0432 \u0434\u0440\u043e\u043f\u0434\u0430\u0443\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u0431\u0430\u0437\u0443:<\/p>\n<pre><code class=\"javascript\">  onSelect(value) {     this.active = value     this.lastUpdated = new Date().toLocaleString()     this.updateDatabase()   },   updateDatabase: async function () {     try {       await this.db.put('value', this.active.name, { pin: true })       await this.db.put('lastUpdated', this.lastUpdated, { pin: true })     } catch (e) {       console.error(e)     }   } <\/code><\/pre>\n<p>  \u0422\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u043d\u043e \u0438\u0437-\u0437\u0430 \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0441\u043a\u0443\u0434\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0441 \u0442\u0440\u0435\u043c\u044f (!) \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043d\u0430\u0431\u043e\u0440\u0430\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0438 \u0430\u043b\u0438\u0430\u0441\u043e\u0432, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0432\u0435\u0447\u0435\u0440 \u0437\u0430 \u0440\u0430\u0437\u0431\u043e\u0440\u043e\u043c js-ipfs \u0438 issues \u0432 \u0440\u0435\u043f\u043e OrbitDB. \u0417\u0430\u0442\u043e \u0432\u044b\u0448\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e)<\/p>\n<p>  \u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0437\u0434\u0435\u0441\u044c: <a href=\"https:\/\/github.com\/Slipn3r\/orbitdb-demo\">https:\/\/github.com\/Slipn3r\/orbitdb-demo<\/a>, \u0430 \u0432\u043e\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442:<\/p>\n<div class=\"oembed\"><iframe allowfullscreen id=\"602141fb7c24d22e1e99f99d\" src=\"https:\/\/embedd.srv.habr.com\/iframe\/602141fb7c24d22e1e99f99d\"><\/iframe><\/div>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u041e\u0447\u0435\u043d\u044c \u0437\u0434\u043e\u0440\u043e\u0432\u043e, \u0447\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u0440\u043e\u0437\u043d\u0435\u043d\u043d\u0430\u044f \u0434\u0432\u0438\u0436\u0443\u0445\u0430 \u0432\u043e\u043a\u0440\u0443\u0433 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439 \u043f\u043e\u0442\u0438\u0445\u043e\u043d\u044c\u043a\u0443 \u043a\u0440\u0438\u0441\u0442\u0430\u043b\u043b\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0430 IPFS. \u0414\u0435\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 \u043e\u0434\u043d\u043e\u043c \u0442\u043e\u043b\u044c\u043a\u043e Awesome IPFS \u0443\u0436\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432, \u0430 \u043a\u0440\u0443\u0442\u044b\u0435 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0438 \u043a\u043e\u043d\u0446\u0435\u043f\u0442\u044b \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0447\u0443\u0442\u044c \u043b\u0438 \u043d\u0435 \u043f\u043e \u0448\u0442\u0443\u043a\u0435 \u0432 \u043d\u0435\u0434\u0435\u043b\u044e. \u041d\u0430 OrbitDB \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0431\u044b\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u043d proof-of-concept \u0447\u0430\u0442 Orbit, \u0430 \u0441\u0435\u0439\u0447\u0430\u0441 \u0435\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0443\u0436\u0435 \u0441\u043e\u0442\u043d\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 (\u0438 \u0441\u043e\u0442\u043d\u0438 \u043a\u043e\u043d\u0442\u0440\u0438\u0431\u044c\u044e\u0442\u044f\u0442, \u0447\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u0440\u0438\u044f\u0442\u043d\u043e). \u0415\u0441\u043b\u0438 \u043d\u0435 \u043c\u043d\u0435 \u043e\u0434\u043d\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u043d\u0435\u0439 \u043f\u043e\u043b\u0443\u0447\u0448\u0435, \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0430\u0437 \u0432\u044b\u043a\u0430\u0442\u0438\u043c \u0443\u0436\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0434\u0435\u043c\u043a\u0443 \u0441 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u043e\u043c.<\/p>\n<p>  \u0427\u0442\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c\/\u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c:<br \/>  <a href=\"https:\/\/orbitdb.org\/\">orbitdb.org<\/a><br \/>  <a href=\"https:\/\/ipfs.io\/\">ipfs.io<\/a><br \/>  <a href=\"https:\/\/github.com\/orbitdb\/orbit-db\/blob\/master\/GUIDE.md\">Quick start<\/a><br \/>  <a href=\"https:\/\/github.com\/orbitdb\/field-manual\">\u0413\u0440\u0430\u043d\u0434\u0438\u043e\u0437\u043d\u044b\u0439 \u043c\u0430\u043d\u0443\u0430\u043b<\/a>. \u0410 \u0443 IPFS \u0435\u0449\u0451 \u0431\u043e\u043b\u044c\u0448\u0435, \u0440\u0430\u0437\u0430 \u0432 \u0442\u0440\u0438.<br \/>  <a href=\"https:\/\/github.com\/orbitdb\/orbit-db\/blob\/master\/API.md\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e API. \u0427\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0441 \u0442\u0440\u0443\u0434\u043e\u043c.<\/a><br \/>  <a href=\"https:\/\/github.com\/orbitdb\/example-orbitdb-todomvc\">\u0422\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 TodoMVC<\/a><br \/>  <a href=\"https:\/\/awesome.ipfs.io\/\">Awesome IPFS<\/a><br \/>  <a href=\"https:\/\/github.com\/orbitdb\/orbit-web\">Orbit chat<\/a><\/p>\n<hr>\n<p>  <\/p>\n<h4>\u041d\u0430 \u043f\u0440\u0430\u0432\u0430\u0445 \u0440\u0435\u043a\u043b\u0430\u043c\u044b<\/h4>\n<p>  VDSina \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 <a href=\"https:\/\/vdsina.ru\/cloud-servers?partner=habr254\">VDS \u0432 \u0430\u0440\u0435\u043d\u0434\u0443<\/a> \u043f\u043e\u0434 \u043b\u044e\u0431\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438, \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 \u0432\u044b\u0431\u043e\u0440 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438, \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043b\u044e\u0431\u0443\u044e \u041e\u0421 \u0441 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e <a href=\"https:\/\/vdsina.ru\/qa\/q\/kak-ispolzovat-svoy-obraz-iso-v-vds?partner=habr254\">ISO<\/a>, \u0443\u0434\u043e\u0431\u043d\u0430\u044f <a href=\"https:\/\/habr.com\/ru\/company\/vdsina\/blog\/460107\/\">\u043f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f<\/a> \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u043f\u043e\u0441\u0443\u0442\u043e\u0447\u043d\u0430\u044f \u043e\u043f\u043b\u0430\u0442\u0430 \u0442\u0430\u0440\u0438\u0444\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438\u043d\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0434 \u0441\u0432\u043e\u0438 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<p>  <a href=\"https:\/\/vdsina.ru\/cloud-servers?partner=habr254\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/8p\/3v\/z4\/8p3vz47nluspfyc0axlkx88gdua.png\"><\/a><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/vdsina\/blog\/541406\/\"> https:\/\/habr.com\/ru\/company\/vdsina\/blog\/541406\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/52\/mq\/28\/52mq28ylap7un9kg7skfivgxjtw.png\"><\/p>\n<p>  \u041c\u044b \u0443\u0436\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \u043f\u0440\u043e <a href=\"https:\/\/habr.com\/ru\/company\/vdsina\/blog\/496436\/\">InterPlanetary File System<\/a>, \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0443\u044e \u0441\u0435\u0442\u044c \u043f\u043e\u0432\u0435\u0440\u0445 \u043e\u0434\u043d\u043e\u0438\u043c\u0451\u043d\u043d\u043e\u0433\u043e p2p-\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 \u0441 \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u043f\u043e HTTP. \u0414\u0430\u043d\u043d\u044b\u0435 \u0432 \u043d\u0435\u0439 \u043d\u0435 \u043f\u043e\u0434\u0434\u0430\u044e\u0442\u0441\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044e (\u043d\u0435 \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d, \u043d\u043e \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u043e\u0432 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442), \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043d\u0435\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e \u0434\u043e\u043b\u0433\u043e \u0438 \u0443 \u043d\u0435\u0451 \u0434\u0430\u0436\u0435 \u0435\u0441\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0438\u043c\u0451\u043d IPNS, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0430\u044f \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0430\u0439\u0442\u044b \u0438 serverless \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a IPFS \u2014 \u043d\u0438\u0437\u043a\u0430\u044f \u0438 \u043d\u0435\u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445: \u043a\u0430\u0436\u0434\u044b\u0439 \u0444\u0430\u0439\u043b \u0438\u043b\u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0431\u043b\u043e\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0440\u0430\u0437\u043b\u0435\u0442\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0432\u0441\u0435\u0439 \u0441\u0435\u0442\u0438 \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0432\u043e\u0435\u0434\u0438\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e DHT. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0435\u0441\u043b\u0438 \u0434\u0430\u0436\u0435 \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0431\u043b\u043e\u043a\u043e\u0432 \u0437\u0430\u043d\u0435\u0441\u0451\u0442 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0435 \u043f\u043e\u043b\u0443\u0448\u0430\u0440\u0438\u0435, \u0437\u0430\u0442\u043e\u0440\u043c\u043e\u0437\u0438\u0442\u0441\u044f \u0432\u0441\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430. \u042d\u0442\u043e \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u0441\u0435\u0445 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439 \u0438 \u043b\u0435\u0433\u043a\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0435\u0442. \u0417\u0430\u0442\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0438 \u043a\u043e\u043c\u044c\u044e\u043d\u0438\u0442\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 OrbitDB \u0441\u043c\u043e\u0433\u043b\u0438 \u0440\u0435\u0448\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u043d\u0430\u0437\u043e\u0439\u043b\u0438\u0432\u0443\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 IPFS \u2014 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u043e\u0433\u043b\u0430 \u0431\u044b \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 IPFS \u0438 \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0439 \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0439.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-318154","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/318154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=318154"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/318154\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=318154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=318154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=318154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}