Giter VIP home page Giter VIP logo

Comments (4)

serapath avatar serapath commented on June 17, 2024 1

so, I'm building something that is "marketing labeled" as p2p search engine for solidity source code and it's using dat.

  1. You can search for code snippets to find source code which matches the snippet.
  2. you can then open it in an in-browser editor and deploy it from there to the ethereum blockchain
  3. you then get an auto-generated form (maybe think "swagger") to interact with the deployed contract

...we plan to allow users to customize this initial autogenerated form, which will then become a static website they can host on any web server to interact with the smart contract on the blockchain - given they have a wallet (e.g. like https://metamask.io)

Now - we would love to upgrade our usage of dat, so we can allow users to change/improve their frontend code with modules they choose to import/require ...all from within the browser.

from building-up-on-dat.

dpaez avatar dpaez commented on June 17, 2024 1

@serapath I was left wondering about this (nice use case). gpm was trying to show/prove/sketch how a decentralized package manager could look like. The way it works is like this, you have a place where you store modules (npm modules) and clients that can download and at the same time seed and hence become some sort of copy of the original registry.

You can try to extract the code of the commands, removing the oclif parts and the remain code can be browserified (or webpack'd). But according what you mention, you will also need an execution container inside the browser, similar to codepen/glitch/others, and that part is out of gpm scope.

Hope this was helpful somehow, feel free to write a line to [email protected] if you need more in-depth assistance.

from building-up-on-dat.

dpaez avatar dpaez commented on June 17, 2024

Hi @serapath 👋 First of all thanks for reaching out!

gpm was made with the goal in mind of showing how to create some sort of service using dat-node. It should work as an example app. This whole repo, in fact, it is about that. Learn about dat's top level modules using some example apps.

  1. if not yet, but if that's planned, is there a document that would describe how that would work?

Was not planned so there isn't a doc.

  1. if not yet and there are also no plans - is that something that would be interesting to think about?

It would be interesting, indeed. Can you tell me more about your use case?

  1. or at this moment that's not feasible or desirable for certain reasons?

I don't think so. Tell me about your idea, if gpm is not the correct place maybe we can bootstrap something different. 👍

from building-up-on-dat.

serapath avatar serapath commented on June 17, 2024

makes sense.
iframes come to mind when you say "execution container".
still - i feel that all of this only makes sense if it is a joint effort in the sense, that many people rally behind the same practice and adopt it. I don't know how to get there and just assume it's not ready, because once it is, i expect popular names to push it - that's for sure not me :D

from building-up-on-dat.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.