Giter Club home page Giter Club logo

Comments (7)

pfrazee avatar pfrazee commented on May 8, 2024

I think we can create a simple base model that does have updates.

  • Every user has a namespace of files.
  • The namespaces are updated with type: site messages, which add or remove files.
  • When you navigate to a user's ID, you open their latest ./index.html.
  • Each user has a local namesDb, mapping user_petname->pubkey

This way, the user-id represents a persistent application.
This also uses the existing HTML application conventions, rather than creating a new one with JS bundles.

The rest would work as you propose:

  • Apps have permissions to access different apis. access to fs, net, internal apis, are all configurable in permsDb
  • Permission to access appDb and permsDb are in permsDb so you can have app and permission managing apps. With this, we can bootstrap better app managing mechanisms.

from patchwork.

dominictarr avatar dominictarr commented on May 8, 2024

The problem with the user sites proposal, i think, is that it's less bootstrappable, because it requires some structure which then must be preserved. for example, adding some sort of collaboratively edited applications would be difficult, because it would still have to be published from one feed.

On the otherhand, given a simple, single attachment based app, then you could implement a user-sites model, as well as a collaborative model.

from patchwork.

dominictarr avatar dominictarr commented on May 8, 2024

Also, the user sites model is coupled to ssb, but my proposal is not.
You could use it on it's own or to build some other app store app.
That is a very good sign that it's a good idea.

we could make the app an html file instead of a javascript file, it doesn't really matter. to use a javascript file it would just mean a very simple html wrapper, so that the js file is injected into a script tag.

from patchwork.

pfrazee avatar pfrazee commented on May 8, 2024

Hm. No better way to find out if we do need a structure builtin than not to have it.

Ok, I'm on board. Let's go with the single JS file.

One of the first ones we'll need to write will inject another JS from the FS, so we can do dev.

from patchwork.

bhaugen avatar bhaugen commented on May 8, 2024

I'm a little confused. Can't ask on Patchwork, because I can't get to run today. (Disconnects, I think on Over Quota problems: see #224).
Let's see if what I think I understand is correct:

  • Patchwork apps have been delegated to https://github.com/ssbc/brickhouse
  • Brickhouse is a "Security-focused electron project"
  • but you are thinking about moving away from Electron.

Correctamento?

I ask because I am looking for a base for networks of Value Flows native apps and @ahdinosaur keeps pointing me to Patchwork. I joined Patchwork yesterday, and am very impressed (despite its not working today, shit happens), but have tons of questions. This is one.

(P.S. you might think this is a totally crazy idea and not what patchwork was designed for... 😉 )

from patchwork.

pfrazee avatar pfrazee commented on May 8, 2024

@bhaugen this is a pretty old issue, we started on that coarse of action but decided to stay focused on the patchwork application alone. We're only now just circling back at this apps thing, so we may diverge from this thread and brickhouse, not sure

I'll respond to your other issue, we need to get you back online!

from patchwork.

mmckegg avatar mmckegg commented on May 8, 2024

RIP apps, one day 🌤 Closing!

from patchwork.

Related Issues (20)

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.