News for hackers. Stuff that matters.

vfssantos

Show HN: Ominipg – Local-First Postgres for Deno

I built Ominipg, a PostgreSQL toolkit for Deno that lets you:1. Start with an in-memory database for quick prototyping/tests2. Switch to a local on-disk PGlite DB3. Move to a real remote PostgreSQL instance…all using the same API and code, with an optional local↔remote sync mode for offline-first apps.Why?Most apps go through these stages:1. Prototyping/Testing – you just want a fast,...

( Read More... | no comments | 2 points | on HN )

Show HN: Dengo – MongoDB API for Deno's Built-In KV Store

https://github.com/copilotzhq/dengo

Dengo is an open-source library that implements MongoDB's query API on top of Deno's native KV store. It provides the query capabilities of MongoDB without requiring an external database, making it perfect for serverless applications.Key features:- Full MongoDB query API (find, update, delete, aggregation) - Built on Deno's native KV store (no external DB) - Type-safe with...

( Read More... | 1 comment | on HN )
Re:Ask HN: Best Approach for MongoDB-Like Experience in Deno? on Wednesday March 12, 2025 @10:03AM (#43343372)
Thanks for sharing your project! Hoardbase looks really interesting - I appreciate you taking the time to link it.

Your experience of starting with the MongoDB API idea and then deciding SQL syntax was sufficient is really valuable feedback. It makes me wonder about the specific pain points that initially drove you toward a MongoDB API, and what aspects of SQL ended up working well enough for your needs.

For document-oriented workloads, did you find any particular patterns or techniques with SQLite's JSON functions that made working with nested data and arrays more manageable? Or did you end up modeling your data differently to better fit SQL's approach?

I'm also curious about your decision to use Rust for the implementation. Was that primarily for performance reasons, or were there other factors that led you in that direction?

Thanks again for sharing your experience - it's really helpful to hear from someone who's explored this space before.

Going straight to SQLite is a great option! The JSON1 extension is quite powerful (which are now part of sqlite core, right?). Are you using this with Deno currently?

I'm curious about your approach to deployment, especially for edge functions. Do you bundle SQLite with your application, or are you using a hosted solution?

Have you found any good abstractions or libraries that provide a document-oriented API over SQLite in Deno/Node? I'd be interested in how you handle things like nested document queries or array operations with the JSON1 extension in a friendlier manner.

Ask HN: Best Approach for MongoDB-Like Experience in Deno?

I've been building serverless applications with Deno and really appreciate its built-in KV store for simple data persistence. However, I'm finding myself missing MongoDB's query capabilities and document-oriented model.For those using Deno in production:1. How are you handling document-based data storage in Deno applications, especially for edge deployments?2. Have you found any...

( Read More... | 4 comments | 3 points | on HN )
Thanks for the comment. I'm glad that this work help other people as well!

Also, plan on improving it over time with other features.

Show HN: Simple API to Compress Large Audio/Video Files for AI Transcriptions

https://github.com/vfssantos/ffmpeg-deno-microservice

Hey HN,I built a lightweight API that compresses large audio or video files into tiny OGG audio files using the Opus codec.Why?AI transcription services often have strict file size limits, making it tough to transcribe lengthy recordings. Splitting files into chunks can lead to context loss.Solution:This API compresses entire files into small, high-quality audio without splitting, so you can...

( Read More... | 2 comments | on HN )