TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Build dApp front-ends using GraphQL

74 点作者 alexkern将近 7 年前

6 条评论

marknadal将近 7 年前
Alex, could you clarify more? From initial glance of it and the blog it looks like either<p>(A) We have to go through your service, which clearly isn&#x27;t decentralized.<p>or<p>(B) This somehow converts GraphQL queries to Ethereum lookups, somehow, all in the client? But the article says to use your endpoint, which suggests (A).<p>Could you explain how this is decentralized at all? I ask because I run one of the most popular P2P&#x2F;decentralized projects and we have a GraphQL query layer on top ( <a href="https:&#x2F;&#x2F;github.com&#x2F;brysgo&#x2F;graphql-gun" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;brysgo&#x2F;graphql-gun</a> ) which happens all end-to-end on the peers.<p>I&#x27;d love to see more GraphQL dApp options out there, but I also want to make sure it doesn&#x27;t lock people into a centralized service, when there are P2P alternatives.<p>Please let me know if I&#x27;m misunderstanding the API. If I&#x27;m not, maybe we could help you guys make it fully P2P? Cause this would be a really cool system.
评论 #17433232 未加载
alexkern将近 7 年前
Author here: we noticed consistent sources of duplicated code when designing cross-platform dApps and built Cleargraph out of necessity. We thought it would be broadly useful as a generic dApp back-end, so we polished it up and open sourced it!<p>Right now we&#x27;re working on some dApp&#x2F;smart contract templates that use Cleargraph, and want to know what y&#x27;all would think is useful. Maybe something along the lines of a CryptoKitties clone, a token monitor, a todo-list with staking, or a graphical transaction explorer. Open to any ideas! :)
评论 #17432060 未加载
anonfunction将近 7 年前
Is there any documentation at all? I couldn&#x27;t find any. The playground[1] isn&#x27;t useful without the schema.<p>1. <a href="https:&#x2F;&#x2F;api.cleargraph.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;api.cleargraph.com&#x2F;</a>
t3soro将近 7 年前
Very cool. Thanks for sharing it!
AngelloPozo将近 7 年前
Cool! Ill give this a try. I have been working on something like this as well. :)
评论 #17428165 未加载
UncleEntity将近 7 年前
I don&#x27;t think I get it...<p>It lets you query the state of the blockchain using graphql? -- which is actually a good idea.
评论 #17428934 未加载