25 karma · joined Sep 2, 2024 (2y ago) · 27 submissions
1.
Show HN: DataRamen, navigate your DB without a single line of SQL (no AI)
1 points · by oleksandr_dem · 7mo ago · discuss
comment 1y ago · link · parent
> I don't get this part. What special characters?
For example let's look at this code:
```
class ProductsController < ApplicationController before_action :set_product, only: %i[ show edit update destroy ]
def index
@products = Product.all
end
...```
You can see a bunch of special characters: < : , % [] @
For example, if I wanted to write the same code in Typescript, based on my setup I might just need do something like this:
```
instance.get("/products", () => ProductsRepository.find());
```
Where instance is my router instance (fastify, express, whatever) and ProductsRepository is a TypeORM repository. My before_action might just be a middleware I pass to the callbacks chain or register as global middleware
comment 1y ago · link · parent
> "I don't know databases, so I found one way that worked and ran with it as an ORM"
This doesn't really play in favor of Ruby on Rails, the same applies to Typescript and Java (and I'm quite sure to any language that is popular with web developers).
4.
Ask HN: DHH on Lex, a multi-hour ode to Ruby on Rails, but is it any good?
1 points · by oleksandr_dem · 1y ago · 5 comments
comment 1y ago · link · parent
So hypothetically yes, you can build trust overtime (Navicat has over 20 years of development), for every N users who don't trust it now, there is 1 yolo guy who just said "Yeah, this might help me do my job".
I should've presented this post in a different way. A lot of people that came here expected production ready tool, while the reality is that I did this in my free time to help me do my job, I wrote landing page in 10 minutes, and I published this post to get some feedback to see if it is something that may be interesting.
And based on what I read, I think there is interest for this tool.
comment 1y ago · link · parent
I have a question: assume I moved the webapp into the CLI (so now everything is localhost), would you prefer using a CLI + webapp or an actual app you have to install (no more CLI, you open the app and do your stuff)?
comment 1y ago · link · parent
I see your concern about running it locally and then visiting a remotely hosted webapp. The way it works is that app.dataramen.xyz will call a localhost server (running on your machine, there is no remote code executed) to connect to the database. So all the data stay on your local machine, plus some webapp stuff stored in browser localstorage.
I went for this setup for essentially 2 reasons:
- I didn't want to ship webapp as part of the CLI tool due to the webapp size (it uses React, so the bundle is 800kb or so, while the entire local server code is 45kb).
- In the long term I want the users being able to connect to multiple servers from one webapp. For example you may have a local server running to interact with your local DB, but at the same time you might have configured a remote self hosted server within your company VPN.
It is a weird setup, but you end up doing weird things when you run an app on $0.00 budget
comment 1y ago · link · parent
I think koolba's point was not as much about the tool being open-source as it is for a tool that runs on your machine and accesses your database with write permission, not having any guarantees it does the job it promises.
I could not agree more with him. This tool was born as a side project for my personal need, so I obviously use it without hesitation. But obviously, there is nothing to ensure you the tool won't drop your DB out of nowhere, or dumps your data somewhere else.
I think going open source will allow me to build some credibility for now.
PS. I use this tool daily, but I have to admit, in prod env I have read only user.
comment 1y ago · link · parent
After reading all the comments, I can see there are two big issues here:
- The code is not open-sourced, and some people don't trust running it locally
- The landing page does not clearly show/explain what DataRamen is and how it works
I should've seen it coming. I will take the following actions to tackle these problems:
1) Open-source the CLI code. There are no super sophisticated algorithms behind it, so no need to keep it private.
2) Improve the landing page with screens and videos to showcase its features.
In addition to this, I will keep working on new features. I saw multiple comments mentioning SQLite support. Since it is possible to run SQLite directly in the browser, I might as well use it as a live demo where you can try the tool with a dummy DB without installing it locally (can't promise it, I have to see the feasibility of this project).
comment 1y ago · link · parent
- Local database: it stores some stuff locally, like saved queries or DB configurations
- Query runner: when you run a query in the webapp it will call your localhost server, which will connect to the database and execute the SQL statement
It is technically possible to host it elsewhere, but I wouldn't recommend it (there is no documentation).
comment 1y ago · link · parent
comment 1y ago · link · parent
This seems like a yargs compatibility issue (I kind of expected it to be problematic), I will probably switch to commander to handle CLI.
comment 1y ago · link · parent
> I would like to see sqlite support Indeed, it is something I'm planing to add, but following all the feedback I got so far this will have to wait (landing page needs some work, plus a lot of people are having concerns regarding CLI tool not being open sourced)
> any value of having the frontend loaded from a website instead of just opening it in localhost ? I want the CLI package to be as small as possible, and including 600kb React bundle in it is the exact oposite of small. Moreover, the idea in the future is for you to be able to connect to any host (be it cloud, localhost or selfhosted) from the same page (for example I have company self hosted server and a local server for my local databases).
comment 1y ago · link · parent
I hadn’t initially planned to open source it, but this feedback is making me seriously reconsider. At the very least, more transparency is clearly needed, and I’m thinking through the best way to approach that.
Curious though, would you feel any more comfortable if it were a packaged desktop app (with no source) instead of a CLI? Or is open code the baseline no matter the form?
comment 1y ago · link · parent
And yes, you're absolutely right about the lack of screenshots. I realize now how important that is for trust and clarity. I’m working on improving the landing page with proper visuals, and I’m also exploring the idea of a live demo using an in-browser SQLite DB — that should let people try it instantly without setup. It’ll take a bit of time, but it’s now high on the priority list. Appreciate the feedback!
comment 1y ago · link · parent
I'll prioritize getting some clear screenshots and maybe even a short demo video up soon. Thanks for pointing it out, appreciate the feedback.
27.
Show HN: DataRamen, a Fast SQL Explorer with Automatic Joins and Data Navigation(dataramen.xyz ↗)
48 points · by oleksandr_dem · 1y ago · 54 comments