Better HN
topnewbestaskshowjobs
Log inSign up

thenorthbay

91 karma · joined Aug 4, 2023 (3y ago) · 25 submissions

Submissions

1.

Ask HN: AI Agents for Automated Web E2E Testing

1 points · by thenorthbay · 1y ago · discuss

2.

Ask HN: Is Serverless Overkill?

5 points · by thenorthbay · 2y ago · 20 comments

comment 2y ago · link · parent

Maybe not for editing per se. But for providing meta-functionalities to services built on top of revideo. Rendering, for instance, but maybe even reusable embeds, video watch analytics, download links, programatic re-rendering with webhooks and their configuration, etc. What other functionalities could you offer?

comment 2y ago · link · parent

Interesting stuff! Which use cases do you think developers will use you most for?

There could be really interesting abstractions that people might build on top of this. Like automatically creating and animating infographics, making background sounds, or video cutting and recycling. If you spin this 100x further an entire video creation studio might emerge.

Which parts of Video Infrastructure do you want to build first? Which other higher-level parts could be built by you or users? Where could this go?

comment 2y ago · link · parent

that's pretty cool! Would be great to have it for TS to configure my own backend

6.

Ask HN: Wouldn't it be cool to have a Supabase for SQLite?

26 points · by thenorthbay · 2y ago · 26 comments

comment 3y ago · link · parent

I just did a quick search and struggled to find anything about the performance issues you referred to - can you link something so I can take another look? Thanks for the suggestions.

comment 3y ago · link · parent

Hey! Thanks for the feedback. I'd just be worried people might not be using the correct libraries since I think they still provide different functionality.

So exporting one Database that allows people to pick which driver they want to use might be a simple and user-friendly solution (incl. better-sqlite3) which people have asked for.

comment 3y ago · link · parent

Yup! I doubt this project will naturally evolve into whatever you're describing. And that's ok! This project might help people who want to use SQLite like Firebase, with a similar API and experience but without letting network requests increase latency (see: https://news.ycombinator.com/item?id=31318708).

Addressing main points like implementing atomic transactions (read and write operation on a doc) seems warranted since it exists in Firebase as well.

comment 3y ago · link · parent

Yeah interesting. I'm wondering what happens when I'm starting to introduce things from "outside" the system that need async operations, like processing webhooks.

comment 3y ago · link · parent

Just didn't find it quickly enough after some browsing. Also, using SQLite seemed so simple.

comment 3y ago · link · parent

I'm using SQLites underlying Data Change Notification functionality. It's exposed by one of the libraries mine relies on.

comment 3y ago · link · parent

Thank you!

comment 3y ago · link · parent

If I understood you correctly, Documents in a database, and database as a file. If else please let me know.

comment 3y ago · link · parent

Thank you for the feedback. Seems this is important.

comment 3y ago · link · parent

Here's the source: https://github.com/thenorthbay/doculite

comment 3y ago · link · parent

Yup! I actually don't know about that. I figured this would be used for setting up newer, server-side Remix or Next projects rather than more dated ones. I could imagine that by keeping sqlite and sqlite3 up to date, people might also not be stuck on more dated versions of SQLite. The tracing/profiling functions were also only implemented recently in sqlite3 (node to C interface), in 2023.

comment 3y ago · link · parent

If you use the library on a server in a node.js environment, wouldn't it be useful to fetch data (e.g. Remix / NextJS)? Besides, I'm not sure if better-sqlite3 offers the listener functionalities I care about. Skimming the docs, it seems it doesn't.

comment 3y ago · link · parent

I guess it was sufficient to not have that kind of accuracy in most of the application to deliver user value. There probably were parts of the application where we used transactions. Could be a cool feature to build for this, though.

comment 3y ago · link · parent

Interesting. Updating values via incrementing them is a use case I barely had in Firebase. I mostly only dealt with 1-time updates to values, e.g. by the user or scheduled jobs. In which scenario would the current design cause you problems?

comment 3y ago · link · parent

Yes – I'm using JSON_extract and generated virtual columns https://www.sqlite.org/json1.html#jex Edit: the database is stored in a sqlite.db file in the cwd

22.

Show HN: Doculite – Use SQLite as a Document Database(npmjs.com ↗)

160 points · by thenorthbay · 3y ago · 56 comments