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

Can I dump the graph data to a single file ? #308

Open
hikerpig opened this issue Oct 30, 2020 · 4 comments
Open

Can I dump the graph data to a single file ? #308

hikerpig opened this issue Oct 30, 2020 · 4 comments
Labels
foam-dataviz Related to data visualization

Comments

@hikerpig
Copy link
Contributor

hikerpig commented Oct 30, 2020

I want to find a way to analyze my foam notes project and use the graph data for later site-generation.

Would be very helpful if this can be integrated to the foam-cli or some other package. I will be able to build a Gatsby/Gridsome plugin and theme on top of it.

BTW, for what I can find, foam-gatsby-template is really great. But Foam can provide a more general solution.

@riccardoferretti
Copy link
Collaborator

hi @hikerpig, this is a very good idea and definitely in the works. as the core model is still in flux, there might be changes to it so we have refrained from having people build things on top of it, but we could use an "experimental" approach similar to the local plugins to expose the graph data

@riccardoferretti riccardoferretti added the enhancement New feature or request label Oct 30, 2020
@riccardoferretti riccardoferretti added this to the 0.6.0 milestone Nov 6, 2020
@riccardoferretti riccardoferretti added this to To Do in Sprint Nov 9, 2020
@riccardoferretti riccardoferretti added foam-dataviz Related to data visualization and removed enhancement New feature or request labels Nov 9, 2020
@riccardoferretti
Copy link
Collaborator

hi @hikerpig, I was looking into this and I had a couple of questions/thoughts:

  • as I said the model is very much in flux, I am a bit hesitant to make it public, people will start building things on top of it, and making changes would be problematic. I can add it behind an experimental feature flag, but be very aware that I mean it when I say experimental ;)
  • is a vscode command something you'd be interested in? or is this meant to be a CLI feature, to be used e.g. in CI?

@hikerpig
Copy link
Contributor Author

@riccardoferretti Thanks for your response, personally I prefer this to be in the CLI so I can use it for automatic deployment - in CI or Netlify, etc.

And I am also comfortable with this provided as a local plugin (if not as a CLI command).

BTW I found that Obsidian keeps a cache file in the .obsidian directory. And it also has a plugin API, maybe we can have a look and have some inspiration?

@riccardoferretti
Copy link
Collaborator

Thanks for the pointer to the Obsidian API, definitely a great source of inspiration.
Local plugins can't define CLI commands yet (there is some rework to do in the core CLI framework before going there).

Yeah, I agree it makes sense to have it in the CLI.

So, this probably needs a bit more thought, but it's definitely on the feature list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
foam-dataviz Related to data visualization
Projects
None yet
Development

No branches or pull requests

2 participants