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

[FEATURE] Add support for JSON Canvas #3201

Open
Routhinator opened this issue Jan 2, 2025 · 5 comments
Open

[FEATURE] Add support for JSON Canvas #3201

Routhinator opened this issue Jan 2, 2025 · 5 comments

Comments

@Routhinator
Copy link

Is your feature request related to a problem? Please describe.

After migrating away from Obsidian as I prefer an open source solution, I find myself missing the Canvas feature a lot. It would be excellent to have support for this spec in QOwnNotes now that it has been open sourced.

Describe the solution you'd like

Add supporting implementation of https://jsoncanvas.org/docs/apps/

Describe alternatives you've considered

Not really any alternative here yet. Out side of Obsidian, only a few web apps support it - though there are a ton of libraries for it already https://jsoncanvas.org/docs/apps/

Additional context

The canvas feature is really fantastic for creating a mind cloud of relations in a set of notes and scripts and helps one put everything back together quickly after stepping away from them for a bit.

Output from the debug section in the settings dialog

Not Applicable

@pbek
Copy link
Owner

pbek commented Jan 2, 2025

Add supporting implementation of https://jsoncanvas.org/docs/apps/

Can you please describe what you mean by that? What does it do, and how is it used from a user perspective?

@Routhinator
Copy link
Author

Routhinator commented Jan 2, 2025

@pbek The info page for the feature in Obsidian is probably the best way to understand the power of the canvas. https://obsidian.md/canvas

This was originally Obsidian closed source only, but they have open sourced the spec and support for the same capability can be added to other clients https://obsidian.md/canvas

The spec has been released under MIT https://github.com/obsidianmd/jsoncanvas/blob/main/LICENSE

@pbek
Copy link
Owner

pbek commented Jan 2, 2025

That's nothing the QPlainTextEdit of the editor or the QTextBrowser of the preview will ever be able to support. You need a full-fledged web browser to render that. https://github.com/ossldossl/jsonCanvas is not helping with that (as it states in the README).

If there is some web-service that is able to create an image out of the JSON Canvas code when you could do the same as it was done with Mermaid: https://github.com/qownnotes/scripts/tree/master/mermaid

@Routhinator
Copy link
Author

Ah, so something only something like an electron based app could so or it would require embedding a browser. I'm guessing Obsidian must do one of those.

Too bad, thanks!

@pbek
Copy link
Owner

pbek commented Jan 2, 2025

Yes, most of the popular note apps are web apps (and thus slower and more resource hungry 😉).

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

2 participants