Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to share OpenJSCAD application via URL #300

Open
drom opened this issue Oct 17, 2017 · 5 comments
Open

Ability to share OpenJSCAD application via URL #300

drom opened this issue Oct 17, 2017 · 5 comments

Comments

@kaosat-dev
Copy link
Contributor

Do you mean encoding the contentof the jscad script(s) into the url ?
Or just shareable urls pointing to a specific design ?
If the first, then I do not think this is very realistic given the potential complexity of the scripts (you would end up with unmanageable urls), if the second one, I have been exploring (nothing public for now) possibilities for self hosted, peer to peer designs etc which would work like that.

@drom
Copy link
Author

drom commented Oct 17, 2017

First Option:

Agree, it can be bulky, but maybe OK for some small code tweets. https://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers

Second option:

https://gist.github.com is public.
Some projects using gist:
https://bl.ocks.org
https://jsbin.com/help/import-gists
http://requirebin.com

@kaosat-dev
Copy link
Contributor

kaosat-dev commented Oct 25, 2017

I use require.bin all the time, so I get the appeal :)

The problems & solutions :

  • the current "UI" of openjscad is the same for running locally and on the official site, so it would need work to work correctly in both cases ( neither @z3dev nor I are particularly happy about the current UI in the first place, but that is a different problem)
  • I think this needs module support first Proposal: switch to a real module system for better modular designs #245 so we can use the same kind of tech as requirebin for a more evolved UI
  • take a look at https://datproject.org/ for one of the most promising peer to peer data systems (without any crappy coin stuff)
    there are even ways to share & install node.js packages in a peer to peer manner : https://github.com/depjs/dep : imagine shareable peer to peer cad designs !

@drom
Copy link
Author

drom commented Oct 25, 2017

@kaosat-dev I ❤️ dat . Let's do dat

@jtoy
Copy link
Contributor

jtoy commented Dec 26, 2017

love the idea, but hard to implement in practice, especially with data that is essentially unlimited code.

@johnwebbcole johnwebbcole mentioned this issue Dec 30, 2018
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants