Live data from Hacker News

Show HN: Build dApp front-ends using GraphQL

github.com

1–10 of 13 posts

Re: Show HN: Build dApp front-ends using GraphQL

#3
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!

Right now we're working on some dApp/smart contract templates that use Cleargraph, and want to know what y'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! :)

Re: Show HN: Build dApp front-ends using GraphQL

#8

I don't think I get it... It lets you query the state of the blockchain using graphql? -- which is actually a good idea.

It allows you to query the blockchain using a consistent API and offers some features not present in the standard JSON RPC API, like ENS domain resolution. Makes it useful for building decentralized apps.

Re: Show HN: Build dApp front-ends using GraphQL

#9
Alex, could you clarify more? From initial glance of it and the blog it looks like either

(A) We have to go through your service, which clearly isn't decentralized.

or

(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).

Could you explain how this is decentralized at all? I ask because I run one of the most popular P2P/decentralized projects and we have a GraphQL query layer on top ( https://github.com/brysgo/graphql-gun ) which happens all end-to-end on the peers.

I'd love to see more GraphQL dApp options out there, but I also want to make sure it doesn't lock people into a centralized service, when there are P2P alternatives.

Please let me know if I'm misunderstanding the API. If I'm not, maybe we could help you guys make it fully P2P? Cause this would be a really cool system.

Re: Show HN: Build dApp front-ends using GraphQL

#10
post #3

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! Right now we're working on some dApp/smart contract templates that use Cleargraph, and want to know what y'all would think is useful. Maybe something along the lines of a Cryp…

I think it would be great to have a graphical transaction explorer. It would really educate people on how the blockchain works.

I think the todo-list with staking would be interesting too.

Post reply on HN