DevNTell - Storedat.io
Developer DAO · 16 Dec 2022 · 27:55
Narb, a Developer DAO member who runs the Glosseta Foundation, presents Storedat, a GraphQL API on top of decentralised storage providers such as Arweave and Filecoin. A live demo reads and writes JSON and text through one provider-agnostic schema, with group IDs and an indexing layer, and without wallets or transaction fees for users. The Q&A covers why an API came before an SDK.
Speakers
Topics
From Developer DAO; community: Developer DAO.
Transcript
all right welcome everyone GMG G everybody uh so welcome to what's going to be another great Devon tell so if you didn't know Devon tell is a 30 minute window for members of the Dow to Showcase something they're passionate about we're working on it's gonna be an awesome project you've been working on demonstrating your testing best practices automation goodies smart contracts how to structure a project Etc basically if you've got a passion for something this is your opportunity to share it with the community and today I will be playing host and presenter uh and uh be showing you my uh latest Venture called stored at so with that let me share my screen can you all see you should be able to
just see Discord now and if I switch over uh cancel can you see Chrome now yep including all the inappropriate links cool excellent this is we're we're right on the edge here on dev Intel so uh thank you very much uh so uh yeah so today what I'll be going over is um and you uh Venture called stored at and basically the intention around this is to make web 3 storage easier to use so a bit about me uh so my name is narb uh you might know me as a narb um 2669 on Discord uh but web2me is
basically a engineer working out of travel with free me is a full-fledged developer down member hosting these wonderful sessions with all you folks as well as it running a not-for-profit called the glassetta foundation so if you recall uh last year when we started Dev Intel I demonstrated a project called Placida which which is a web 3 glossary and kind of out of that um decided to make a foundation out of it to kind of push a web 3 education towards a non-technical crowd and one of the pillars under this um to kind of make the whole um Mission kind of come about was
creating a way for uh myself to easily be able to create content and have that be stored permanently so one of the projects that I wanted to kind of get out there by the end of this year was around making web 3 storage more accessible to everybody so that's why I created store that and I do love me a good play on words so sorry if there's going to be a lot of puns and whatnot but uh basically uh what is store that so store that very simply put is a graphql API built on top of web3 storage providers like our weave and filecoin
why does it exist it exists to accelerate the adoption of decentralized storage by providing a provider agnostic way to read and write data and very importantly to abstract away the web3 from the user and that kind of plays into uh the whole purpose of this is to basically make a better user experience around decentralized storage to make it accessible to all like we are all doing on the D5 and um a blockchain side of things trying to abstract away wallet interactions um and how Reddit is basically not using the word nfts when they're when they're talking about their avatars and people not having to pay gas prices and and so
on and so forth and this is kind of what I'm trying to do in the space of decentralized storage and the ultimate mission for stored at is to become the go-to hub for anybody looking to plug and play with the centralized storage so at a glance some of the features include um like I mentioned before are provider agnostic schema to be able to read and write data so regardless of the provider of your choice so at this point of stage only filecoin and R weave you can read and write data using a single schema versus you having to integrate a separate API for each of these things or SDK uh and data uploaded through the API so through store that is added to a
indexing layer that enables you to read read that data in a faster manner as well as being able to group set data and we'll get into that a little later and one of the things to one of the things I'm doing to improve the user experience is eating up the transaction costs that are associated with writing data so the whole point of this and one of the big things for me when I started working with decentralized storage is a lot of things you had to pay for and some of the sometimes like working with wallets signing transactions it kind of um like for me it wasn't a big deal but for somebody who's doesn't really know too much about the area and just wants
to start playing around it wasn't very accessible so one of the things that I was looking towards fixing was basically introducing this I suppose this variation of gasless transactions but on the uh on the decentralized storage route and as I mentioned uh the initial support is for five coin and R weave but I plan to integrate more and like I just mentioned um you don't have to deal with wallets signing transactions managing private keys or paying for transactions you just use the thing now some features uh so stored out is available both publicly and like has
public publicly accessible endpoints and um endpoints that are gated by an API key so the ones that are publicly accessible as you see here these queries are quite self-explanatory but and you might be wondering why why should I be eight why should I read data from stored app when I can actually be able to read the same data using always SDK or filecoins SDK well what I allow you to do at least from an R with point of view is uh you can read up to 10 pieces of data but if you've ever worked with our wave you see
that you typically have have to query their graphql API to find your transaction ID and then subsequently query the rv.net Gateway with that transaction ID to be able to actually get your data but here is just one call and you can get your data and your metadata in in one shot uh and the reason I've limited it to 10 items at this moment in time is just to kind of ease ease my way into building the the robustness of the system and that will be expanded over time to get data from filecoin again self-explanatory at this point in time you're able to read one piece of data
from filecoin through a CID but I'm thinking about expanding that to kind of align with the r weave query and get glossary term uh is a use case that I'm using to support glossetta so glassetta today is fully running on the store.api to be able to read its glossary terms and the API gated features at this point in time there are two so of course one is create data so this is a mutation that lets you write um at this point in time text or Json to your provider of choice so that's either a filecoin or our weave and get data that lets you read data
through the store.indexing layer and you might be wondering nurb you just told me I can read straight from our weave or filecoin what's the difference between that and this get data well things so the previous slide those are in my view like power user web3 power user methods so if you've stored data through our weave or filecoin before obviously it won't be available for reading through the indexing layer here so that's where you would go towards if you have existing data however if you create data through stored up you can not only read it through those power user methods but you also have
access to them through this get data and what's really cool is you can actually mix and match and which will kind of which we will get into here in examples and with that perfect segue uh we're going into demo so first thing I want to show is the website so if you go to store.io you'll be presented with these uh awesome UI not gonna lie this is one of the best front ends I've I've created personally and essentially it has the same Spiel I I just I just gave you and uh there's also um prompts here for you to sign for the beta so if you recall the beta will will give you access to API keys that will
let you perform the mutation basically let you perform the mutation against the the file coin or our weave uh if you click the documentation I also have some awesome docs here for you uh so kind of it'll tell you how to get started uh how to get your API key how to explore the playground sorry and I've also created a starter template for you to be able to play around based on xjs and Apollo client so you can Fork that pull that and it basically has the graphql integration already for you to be able to query through those power user methods to get data from our wave and filecoin and get glossary term and
gives you a good great starting point to kind of play around with things and of course there's also the uh uh the per method uh overview of all the things with sample queries and their responses and with that just wanted to kind of give you and give you a view of the um the code in action so get data from our weave you can pass in a wallet address so this is the target account that you want to read data from you can pass in metadata if you know if you don't know you can query are we with uh key value pairs you can sort and you can pass in a limit number so that's the
default is one the max is 10 at this point if you query oh yeah you get back basically so this is the glossary term uh data at this point in time or which I created rather and you have uh sorry is someone on uh yeah thank you uh yeah so you can get for at this I've queried four and you get four blocks of data and what's different like I mentioned what's different about this is I've actually provided you the data and the link to get that data in one call versus you having to do separate calls to get
this data ultimately similarly with falcoin I'm we can query for a given CID and we get back the data so in this case I've queried a particular nft metadata set from uh a front Moon runners and then of course get glossary term self-explanatory uh you can fetch glossary term definitions and um so the mutation so what I'll do is I will store so I can create against our weave so I'll create Json here and currently like I mentioned before the
supported types today are Json and text but I'm looking to expand towards images and videos as well so given that full full feature set of core content types so if we run this mutation now you see we've added this Json to uh to our weave and we can do the same and store against filecoin so we can change up numbers here and we've also stored this next set of Json
to R wave and now we can actually query this data through the the store that indexing layer so if I say so I apologies so this group ID um uh I weren't some explanation so here what you can use this group ID for is to group uh data under a single identifier so if you want to query that data and buy that particular set you can through this get data so a use case could be if you are you have content that you want to display on your site
you can group your images your text and potentially some Json data if you so choose under the same group ID and then query for it in one shot as well as being able to filter it through the metadata you've added adding uh being able to sort and whatnot so in this case I've created a group ID Dev Intel demo so if I query here so this is so I sorted by descending order so this was the very last thing that we updated together or we added together I can increase the limit so if I do two
now we see the r weave upload and the Falcon upload together so just think about that we queried for two different sets of data that we uploaded to diff two different sets of providers so that is something that I haven't been able to find today I don't know if there are any concrete use cases at this point in time but if we imagine that we have different decentralized storage providers for different purposes then we can utilize this type of creation and queries to be able to get
all this data in one shot which I think is pretty neat and at this point of time I think this is a great point to stop for questions uh and let me see [Music] oh thank you thank you for the kind words camping brand uh awesome uh but yes I'm just gonna pause here for any questions anybody may have oh yes how do I make it free indeed uh so today the um how I'm covering the cost is through grant funding graciously provided by protocol labs and our weave and out of my own pocket of course this is how
typically how most startups kind of start out but eventually down the line um when this starts to really get a lot of traffic I have some plans around a pricing structure very similar to what web3 storage is kind of coming out with um nothing like out of this world but basically just enough to keep things sustained now that's not concrete but it's something that I'm thinking about I don't know I don't have all the monies uh yes uh so uh it's it's too early to say whether
um how one can be able to pay but basically my whole initiative here is to make this accessible to um the web 2 user that doesn't really know too much about the web3 space so payment options like credit card um would probably be a go-to um of course there's also the option to pay with crypto but again too early to kind of go down those that rabbit hole uh what kind of beta customers am I looking for uh so basically anybody that kind of wants to start playing around being able to create data through this through this medium uh I would not
suggest you use this in a production environment at this point in time but rather in your side projects or things you're playing around with or perhaps pocs that you're creating that need to be powered by decentralized storage I would say those are appropriate things to use and to be able and a good purpose to be able to sign up for the beta program but eventually uh the sign up process so the signup process now is kind of gated because I want to control kind of the Ebbs and flows of who and what and who is using the the API to be able to kind of make my baselines and kind of improve things and Bug fixes and whatnot but eventually
down the line you'll have a dashboard that you can sign up for autonomously and create your API keys on your own to do uh thank you yes uh the story.io uh front end is is pretty dope uh I did it the design work is is me uh basically I did all the things the backhand the front end and all the wonderful stuff you see now uh I used uh no code solution for the front end I I conceded submitted and kind of went for ease of Life approach there um but backhand and everything you see here um it was basically me yes uh
oh yes yeah and oh yes the logo so all the uh what I wanted to mention uh is so all the all the logos and the Arts you see here uh I am no artist um I can do only so much but I actually utilized the doll e to crack to create these um so it's a nice little life hack uh to be able to uh get uh an on-demand artist so to speak uh when am I hiring yes uh so still in the Inception phases of this um but uh yeah the hope is to kind of be able to um expand this beyond the beta program and get some folks some helping hands
because I certainly can't do this by myself forever not without uh some consequences uh yeah uh are there any uh questions from the crowd or something I may have missed in the chat I guess is this something that you all think you would use or would you prefer still to go towards a single integration approach foreign what can we all do to help you the most
at this time um so the biggest thing that would help me um is a uh just start using this um and uh if you like it get the word out let other people know um that may be looking for a tool like this sign up for the beta uh you there's really nothing to lose uh you get to upload things to for free to our weave and filecoin uh no expense to you uh you just need to use the thing and I would love any and all feedback you may have you can be as brutal as as you want I'm looking to improve things here so any feedback you have is uh gold
yes uh the URL is so for the um the graphql API it is perma.store.io API ev1 graphql and all that is actually is in the documentation the front end is stored.io um but yes uh what no code solutions for front-end that you use and can you repeat where did you get the graphics uh so no code solution I used um typestream for the front end uh the images that you see on the landing page were created through doll e the open AI image generator the one that you type
the prompt and then it spits you up four Images so that if you're looking to build your own websites and you don't have an artist or don't think you can uh you don't have the time to do the art I suggest it's it's a great little life hack that I discovered um through this all so uh and I think their terms and service have changed so that the things you create do actually belong to you so it is your IP uh happy to list on perks only remember we can find it oh yes uh awesome Camp yes we can talk on that uh right after this uh could you potentially proxy the assets to mask them ah so uh could you
kind of expand on that uh many do you mean like encrypting them or well you can't this is like unless you encrypted the file from the start from the gift card right correct but it would be the idea like if somebody doesn't know the URL then obviously they don't know where they get their assets from yeah so you equivalent to like when you have um an S3 you know when you come up with those temporary URLs yeah yeah so that is something I can consider I haven't thought of that before but uh I can jot that down on the uh um the things to explore uh but I guess also kind of on a tension Point here um the data that you do upload to store
that it is not uh encrypted at this point in time so same things apply you don't want to store things that are private or sensitive or things that you want to be deleted later on um there are also plans in the works to explore encrypting data from the start like like we just mentioned but that's not available yet so proceed with caution like you do today with uh uploading things to always or fall coin uh is this tool to upload metadata on decentralized storage or is it more of a way to retrieve data from decentralized Storage uh Alice yes uh so it's both so you are able to
um query data from the centralized storage and uh sorry about that and to be able to upload as well um in a provider agnostic way so you don't so it's one integration that you have to do with the single graphql API and you have access to read and write through at this point Cloud coin and our weave but I plan to also expand to other decentralized storage providers we have about four minutes left here gang I just want to leave you off with some resources uh so like I mentioned if you want to sign up for beta visit auth.store.io it's kind of simpleton to sign up I was
signing up with a Google form but like I mentioned that will change after some further iterations to create a dashboard for you to be able to just sign up like you do on any site docs um API playground and if you're if you came late uh there I did mention there is an xjs and Apollo client template that you can fork or pull and I've integrated the client already as well with the public facing um queries so you can get up and running quickly and play around and if you're curious about the glossator foundation check out gloss.foundation and I'm just gonna take a sip of water
here all right why why not yeah why not go the SDK route just out of curiosity like it's because you needed a service level service letter to be able to Ping from multiple Services as opposed to like hey if I did an SDK that just I make a request I can I can make my I can manage in terms of buying from different uh providers on my own but if can you like elaborate on that a little bit in terms of why not an SDK as opposed to a service for sure uh so the main thing uh time uh so I do want to also explore an SDK but for me the most
logical First Step was an API um just because it solved a couple of problems and well not problems so to speak but things that didn't exist today so I there is no file coin graphql API as far as I can tell um the and the r weave process to fetch data was two Network calls where I just wanted one network call but um definitely the SDK is in my uh line of sight and is something I want to kind of help or look to build out and feature iterations so basically I want as many options available as possible for people to be able to utilize
this and kind of ease their lives when they're using decentralized storage and we are one minute until the community call so if you have any further questions please feel free to ping me make sure to sign up for the uh the beta uh and we will see you here next week um next week will be the final uh Devon tell of the year uh so make sure you come out to that and I will be dropping the poapps in the general chat and uh thank you again everybody for coming out and uh hope to see you using star that soon remember just store that all right again
all the best
Related talks
- A brief history of nearly everything IPFS & Filecoin - Ally Haire
- The Moat Is Where Your Data Lives
- Filecoin’s Launched: Understanding Cryptocurrency’s Newest Network
- Bridging with Filecoin - New Frontiers in Web3 | ZX Zhang
- Supercharging Blockchain Interoperability with Reactive Network
- 🎤 The Future of Filecoin
- The State of Filecoin
- IPFS & Filecoin 🛠 Introduction to IPFS & Filecoin
- Filecoin 🛠 Storage & Retrieval on Filecoin Part 1 - Matt Hamilton
