Scouttlo
Todas las ideas/devtools/Plataforma SaaS que proporcione herramientas de análisis estático y generación automática de tipos TypeScript para bases de datos PostgreSQL con interfaz visual y APIs.
HNB2Bdevtools

Plataforma SaaS que proporcione herramientas de análisis estático y generación automática de tipos TypeScript para bases de datos PostgreSQL con interfaz visual y APIs.

Detectado hace 6 horas

7.3/ 10
Puntaje general

Convierte esta senal en ventaja

Te ayudamos a construirla, validarla y llegar primero.

Pasamos de la idea al plan: quien compra, que MVP lanzar, como validarlo y que medir antes de invertir meses.

Contexto extra

Ver mas sobre la idea

Te contamos que significa realmente la oportunidad, que problema existe hoy, como esta idea lo resolveria y los conceptos clave detras de ella.

Comparte tu correo para ver este analisis ampliado.

Desglose del puntaje

Urgencia6.0
Tamano de mercado7.0
Viabilidad8.0
Competencia8.0
Dolor

Los desarrolladores luchan con ASTs no tipados de PostgreSQL, sintiéndose como en los días pre-TypeScript.

Quien pagaria por esto

Desarrolladores backend y equipos de desarrollo que trabajan con PostgreSQL y TypeScript en startups y empresas medianas.

Senal de origen

"working with an untyped AST feels like you're back in the days of JavaScript"

Publicacion original

Show HN: Parse your Postgres queries into a fully-typed AST in TypeScript

https://github.com/pg-nano/pg-parser Hey all, I&#x27;m the creator of @pg-nano&#x2F;pg-parser. I&#x27;m using it in pg-nano[1] to statically analyze Postgres schemas spread across multiple SQL files for a couple of reasons:<p>1. Each CREATE statement needs to be in topological order, so pg-nano&#x27;s dev command can execute them without issue.<p>2. pg-nano has a plugin system like Vite that allows SQL generation based on the parsed schema.<p>Probably to the surprise of no one, working with an untyped AST feels like you&#x27;re back in the days of JavaScript, because well... you are. Most of you know by now just how great TypeScript and static types in general are, especially if you appreciate SQL.<p>So why is this project worth sharing with you?<p>Well, writing the AST type definitions by hand would have taken me way too much time. It would also be a bear to keep up-to-date as Postgres continues to evolve.<p>To my surprise, I discovered that libpg_query, the C library used under-the-hood, includes JSON definitions in their &#x2F;srcdata&#x2F; folder. I figured I could use them to <i>generate</i> the type definitions. Genius, right? Okay... maybe not <i>genius</i>, but still cool, I think.<p>You see, those JSON definitions provided by libpg_query? They don&#x27;t exactly contain the TypeScript definitions (was that obvious?). No, no. I had to <i>translate</i> them into TypeScript definitions. (I&#x27;m sure <i>you</i> could have done it, yes yes. But did you? No siree bob)<p>It was pain-staking, but overall really not too hard. Time-consuming? Yes, but not as much as writing the type definitions by hand. So... was it worth it? Only time will tell. I hope you find it as useful as I do. And that&#x27;s all I&#x27;ve got, so thanks for reading.<p>P.S. The build for Windows is broken, so if anyone could lend a hand, you would be a true hero.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;pg-nano&#x2F;pg-nano">https:&#x2F;&#x2F;github.com&#x2F;pg-nano&#x2F;pg-nano</a> (not ready for production use)