-
Notifications
You must be signed in to change notification settings - Fork 0
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
Load/mount components and data via URL? #4
Comments
Hey @zeluspudding, I totally agree with you that there are too many steps involved in updating this library now and I'd love to see this get streamlined. For what its worth we expect that most users will come to Idyll through the CLI rather than Your example looks super promising and very cool. I have to admit that I haven't stayed on top of the latest developments in the JavaScript module bundling world. Do you have a sense of the infrastructure that would be required to get components loading from a URL to actually work? I'm in general pro anything that makes it easier to integrate Idyll with libraries that make it easier to author components (observable, p5js, apparatus, and lyra being the big ones I'd want to support). |
@zeluspudding if it would be helpful we could get on a video chat to talk this through. It seems like you've been thinking a lot about improvements here |
Would be glad to discuss on call! Though I'm not sure how much technical guidance I can add as I don't currently have a great sense of the Javascript it would take to get components loading from URL (my background is actually in mechanical engineering... I'm strongest in Python but more of a hatchling in Javascript). I suppose that being a novice in this space is truly a testament to all the hard work and nice design choices that creators such as yourself have built into Idyll and those who built Bubble... that despite my lack of skill, I was able to setup the demonstration above in just a few hours. There is great power in these tools and I would love to see them in more hands. That said, if you think there's something I could add to the conversation - or if you just want to better understand what I've implemented on Bubble, then I'd be glad to share! I've also found Mike Bostock, the creator of Observable and D3, to be quite helpful debugging issues at the interface of Observable and programs that try to work with it. But if he's too busy perhaps we can solicit advice from Tom MacWright, who appears to have mastered the art of loading stubborn modules into Observable/Javascript in general. As an avid writer himself, he may be interested in sharing very useful pointers. Let me know :) |
(If nothing else, please see my screen recording at bottom)
According to the idyll-embed readme, adding components to Idyll requires:
So extending
idyll-embed
requires having knowledge ofNode
,git
and of coursejavascript
. Then, to publish an Idyll article, authors also need to know how to host their article. That means that authors need be quite technical before they can write a sentence with an Idyll pen. This was to be expected, I suppose, as writing javascript alone requires more technical know how than most of my journalist friends have (no shame on them). And Idyll's developers have recognized as much:That said, I am very excited about Idyll's potential to lower the obstacle of writing rich, compelling, interactive stories. It is in that excitement that I ask the following question:
I'm not sure if this is even technically possible without an overhaul of the way
idyll-embed
works. But if it were, I could see this saving Idyllers a lot of time. As follows:Authors could interactively develop new components in observablehq.com or local text editor
In
idyll-embed
, we would then feed in a list of urls to where the components are hosted. In the case of having developed in observable, this could be the notebook-cell url. Otherwise, these scripts could be hosted on github, S3, or on Bubble which makes it almost trivial to stand up an Idyll backed publication(once this issue is solved).When it comes to publishing, all we'd have to do is store our
idyll-markup
, andcustomComponent
s in our database (or simply links to it if those resources are hosted elsewhere). Then when the client fetchs an article,idyll-embed
will mount and rendercustomComponent
andidyll-markup
.In this way, I believe we avoid needing a local node environment. We wouldn't need to re-build
idyll-embed
each time one wants to author an article with new custom components. We could use intuitive tools like observable to create node components. So adoption is easier, even among technical users, since there are fewer hurdles to get startedIdeally, we could mount not only components, but also data via URL. That would be fantastic! To convey the awesomeness of this idea, I went ahead and made a personal "Idyll Studio" type backend to show what type of publishing workflow this would enable. I put this together in about 2 or 3 hours in Bubble. ..Obviously I'm not actually mounting components or data like this, but everything else is real / shows how nice and quick Idyll and Bubble can be stitched together to produce an Idyll driven publication.
This is the dream :)
... and then the last 2 steps in that publishing flow would be to add the component and load the data within the idyll markup
The text was updated successfully, but these errors were encountered: