ChartDB - open-source database diagram visualization tool
from johnnyfish@lemmy.world to selfhosted@lemmy.world on 29 Oct 14:47
https://lemmy.world/post/21405778

Hi all, I’m one of the creators of ChartDB.

ChartDB to simplify database design and visualization, providing a powerful, intuitive tool that’s fully open-source. This database diagram tool is similar to traditional ones you can find: dbeaver, dbdiagram, drawsql, etc.

https://github.com/chartdb/chartdb

Key Features:

Tech Stack:

#selfhosted

threaded - newest

cabron_offsets@lemmy.world on 29 Oct 17:11 next collapse

Looks dope. I’ll give it a try.

johnnyfish@lemmy.world on 29 Oct 18:16 collapse

Lmk how was it pls :) Thank you!

Flamekebab@piefed.social on 29 Oct 17:36 next collapse

Amazing, I needed something like that a few months ago (and will need again in future).

johnnyfish@lemmy.world on 29 Oct 18:16 collapse

So happy to read that! Hope you will enjoy and find it as useful as you imagine! Thanks for sharing :)

kameecoding@lemmy.world on 29 Oct 20:59 next collapse

Why is this better than DBeaver?

Other than the fact that it mentions AI which makes it instantly infinitely worse?

johnnyfish@lemmy.world on 29 Oct 22:22 collapse

Hey! I get the AI hesitation - it’s everywhere, and I totally understand if you’re wary of buzzwords! With ChartDB, our focus is on making database diagramming simpler, faster, and visually intuitive without the bloat you sometimes find in other tools. The AI component is there mainly to speed up migrations and adapt the tool to specific SQL dialects, so it’s helpful but not in your face.

As for why it might work better for you than DBeaver, ChartDB shines if you’re looking for a minimal, open-source way to visualize schemas quickly without needing a full database management suite. It’s lightweight, community-driven, and designed to do one thing really well: diagram and share schemas with simplicity. Plus, we’re always open to feedback and building features that our community finds valuable!

AustralianSimon@lemmy.world on 29 Oct 22:08 next collapse

I’ll be installing this tonight to give it a go beside dbeaver

johnnyfish@lemmy.world on 29 Oct 22:24 collapse

That’s awesome to hear! Thanks for giving ChartDB a shot! We’d love to know how it stacks up for you and if there are any features you think would make it even better. Feel free to reach out here or join our Discord if you have questions or feedback along the way.

AustralianSimon@lemmy.world on 01 Nov 02:59 collapse

Pretty neat. I think its a really nice looking app and helps navigating the database much nicer. I think what is missing for me is some of the power of applications like dbeaver where you can run queries as you go and easily hop between databases.

Also mouse wheel scrolls page not zoom which I think would be better. Definitely will use this next time I build a db in parallel with dbeaver.

johnnyfish@lemmy.world on 20 Nov 09:21 collapse

Thanks for the kind words and great feedback! Query capabilities are on our radar, and your input reinforces its importance. The mouse wheel suggestion for zooming is a great idea - I’ll note it for future updates. Glad to hear you’ll give ChartDB a try alongside DBeaver - let us know if you have more ideas or feedback! (give a look to our next innovation - buckle.dev Would love to chat. feel free to DM me somehow :)

Krafting@lemmy.world on 30 Oct 00:23 next collapse

This looks awesome ! Open-source software needs good design, and you got this right! I might need it in the future, so I’ll keep this on my toolbelt :)

johnnyfish@lemmy.world on 30 Oct 07:28 collapse

Thanks a ton! Glad you like the design - keeping it and user-friendly is what we’re all about. We’ll be here whenever you’re ready to give it a spin!

fmstrat@lemmy.nowsci.com on 30 Oct 04:34 next collapse

Our AI-driven export feature allows you to generate the DDL script in the dialect of your choice.

So many other options without sending my schema to a third party. Why?

[deleted] on 30 Oct 07:28 next collapse

.

johnnyfish@lemmy.world on 30 Oct 07:28 collapse

Great question! You don’t have to send anything to a third party - exporting SQL scripts tailored to a specific dialect is optional. By default, we offer a generic SQL export, and only when you need precise, dialect-specific scripts does AI come into play. In the self-hosted version, you’d provide your own OpenAI token, so data stays entirely in your control. Hope that clears it up!

danielquinn@lemmy.ca on 30 Oct 14:25 collapse

So my first impression is that the requirement to copy-paste that elaborate SQL to get the schema is clever but not sufficiently intuitive. Rather than saying “Run this query and paste the output”, you say “Run this script in your database” and print out a bunch of text that is not a query at all but a one-liner Bash script that relies on the existence of pbcopy – something that (a) doesn’t exist on many default installs (b) is a red flag for something that’s meant to be self-hosted (why am I talking to a pasteboard?), and (c) is totally unnecessary anyway.

Instead, you could just say: “Run this query and paste the result in this box” and print out the raw SQL only. Leave it up to the user to figure out how they want to run it.

Alternatively you can also do something like: “Run this on your machine and copy/paste the output”:

$ curl 'https://app.chartdb.io/superquery.sql' | psql --user USERNAME --host HOSTNAME DBNAME

In the case of the cloud service, it’s also not clear if the data is being stored on the server or client side in LocalStorage. I would think that the latter would be preferable.

johnnyfish@lemmy.world on 31 Oct 07:53 collapse

Thanks for the thoughtful feedback, Daniel! You bring up a great point about the complexity of the current approach with the SQL script and the reliance on pbcopy. We’ll definitely consider simplifying it by providing just the raw SQL query, so users can run it in whatever way works best for them. As for the cloud version, we’re leaning towards using LocalStorage for data storage on the client side to keep everything local to the user’s machine, ensuring privacy and control. We’ll make this clearer in the UI and documentation. Appreciate the suggestions - they’re super helpful as we continue refining ChartDB!