Tsynamo – Type-friendly DynamoDB query builder for TypeScript
Tsynamo – Type-friendly DynamoDB query builder for TypeScript
Hello HN! I was recently introduced to Kysely ( https://github.com/kysely-org/kysely ), a type-safe Typescript SQL query builder, and instantly fell in love! I got inspired and wanted to make something similar for AWS DynamoDB. Thus, I developed Tsynamo! Instead of calling it type-safe, I decided to go with type-friendly, because the library is still in an early stage, and is not 100% type-safe. Under the hood, Tsynamo compiles the built queries into AWS SDK v3 commands. I feel that Tsynamo simplifies the AWS SDK API quite a lot since the developer doesn't have to mess around with condition/filter expressions or attribute names/values themselves, and as a bonus gets autocompletion for building the queries! There's also a playground to test it out in your browser: https://try.tsynamo.dev . It might not have the most up-to-date API of the library in use yet, but you can get the library's main idea from there. Since the project is still in its early stages, it doesn't yet have 100% support for all DynamoDB features, like querying indexes. The next steps will be increasing the support coverage and perhaps adding automatic type generation as inspired by kysely-codegen ( https://github.com/RobinBlomberg/kysely-codegen ). Would love to get some feedback, thanks in advance!
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Incorrect prediction on native model
Similar products
TypeScript query builder with full type inference
Kysely, a type-safe SQL query builder for TypeScript
Kysely, a type-safe SQL query builder for TypeScript
ORM for TypeScript with no query-builder, supporting full SQL queries
Node Typescript Postgres Query Builder
Fastify-zod, type-once, run everywhere (TypeScript/OpenAPI)
SQLBraid – Write SQL directly in TypeScript without a query-builder DSL
type-kanren – type-level microKanren in TypeScript
Lightweight and type-safe query builder for DynamoDB
Mongur – Define MongoDB models and query data using TypeScript classes