supabase-community / postgres-new

In-browser Postgres sandbox with AI assistance
https://database.build
Apache License 2.0
2.45k stars 192 forks source link

Add Diagram Export Capabilities #55

Open pouya-loyall opened 3 months ago

pouya-loyall commented 3 months ago

Feature request

Empower Users with Diagram Export to share and reuse their work effectively.

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

No.

Describe the solution you'd like

Implement a feature that allows users to export diagrams in various image formats (e.g., PNG, JPEG, SVG) and potentially also in editable formats (e.g., PDF, Visio).

Describe alternatives you've considered

In download file it can be exported, and added as a diagram file as well.

Additional context

Currently, there are no alternatives to exporting diagrams within the application.

krisnaw commented 1 month ago

Hi @pouya-loyall, for reference, could you please provide an example of the exported diagram? I'm curious to see how complex database schemas are represented in the diagram.

pouya-loyall commented 1 month ago

Hi @krisnaw

image

krisnaw commented 1 month ago

Okay, I just checked the React Flow documentation. It seems like there is a way to download the diagram using HTML-to-image. Here's an example:

reactflow

What do you think, @gregnr?