shahankk42 Profile Banner
Shounak Ghosh Profile
Shounak Ghosh

@shahankk42

Followers
84
Following
6K
Media
71
Statuses
762

opinionated web dev || building https://t.co/WKUwAT2JAi

denial
Joined September 2023
Don't wanna be here? Send us removal request.
@shahankk42
Shounak Ghosh
2 months
lfggggg!!!. PDF uploads finally here! now what's your excuse to not use @sophist_ai?.
@sophist_ai
SophistAI
2 months
🎉 We've just hit 500+ users! To celebrate, we're dropping a feature you've ALL been asking for. Introducing PDF SYLLABUS UPLOADS!.Upload your multi-subject PDF, pick your course, and BOOM - instant interactive study map!. Stop wrestling with PDFs & start MASTERING your exams!
0
0
5
@shahankk42
Shounak Ghosh
2 hours
i'm in love with live query options, it's sooo good.
@unnoqcom
unnoq — oss/acc
4 days
🚀 oRPC v1.6.3 is live with live query options. Compatible with all kind of Event Iterator, Durable Event Iterator, Hibernation Event Iterator, .
Tweet media one
2
0
3
@shahankk42
Shounak Ghosh
2 hours
i got a crazy idea for an app. it might even be borderline stupid and unethical, but imma make it and see what happens ⊙⁠.⁠☉.
0
0
5
@shahankk42
Shounak Ghosh
2 days
guys we have sync! i'll update tomorrow because i'm wau too tired rn.
@shahankk42
Shounak Ghosh
6 days
i'm attempting to build a sync engine. this will either be the best thing ever or go horribly wrong, no in-betweens.
0
0
3
@shahankk42
Shounak Ghosh
3 days
nvm i figured it out.
@shahankk42
Shounak Ghosh
3 days
anyone know how to create a typescript library to publish on registries?.
0
0
2
@shahankk42
Shounak Ghosh
3 days
repo.
0
0
3
@shahankk42
Shounak Ghosh
3 days
we did it guys. now you can create typesafe dexie objects from your @kysely_ schemas too!.
@shahankk42
Shounak Ghosh
3 days
fixed the first part— creating a dexie object from a @kysely_ schema. this time the type inference is so perfect it's like you manually wrote up the types!. left: @kysely_ database schema.right: dexie object inferred from the @kysely_ schema!
Tweet media one
1
1
4
@shahankk42
Shounak Ghosh
3 days
anyone know how to create a typescript library to publish on registries?.
0
0
2
@shahankk42
Shounak Ghosh
3 days
wrote tests for this using @bunjavascript's testing library
Tweet media one
@shahankk42
Shounak Ghosh
3 days
fixed the first part— creating a dexie object from a @kysely_ schema. this time the type inference is so perfect it's like you manually wrote up the types!. left: @kysely_ database schema.right: dexie object inferred from the @kysely_ schema!
Tweet media one
0
0
2
@shahankk42
Shounak Ghosh
3 days
the actual reason i'm doing this is so i'm able to capture the type when it's narrowed by the "satisfies" and transfer that to my Dexie instance. simple function args would widen the type, which removed a bunch of type inferences in my previous post's implementation.
0
0
1
@shahankk42
Shounak Ghosh
3 days
i'm using a factory to create a builder to create the inferred dexie object. why? because @typescript XD.
@shahankk42
Shounak Ghosh
3 days
fixed the first part— creating a dexie object from a @kysely_ schema. this time the type inference is so perfect it's like you manually wrote up the types!. left: @kysely_ database schema.right: dexie object inferred from the @kysely_ schema!
Tweet media one
1
0
1
@shahankk42
Shounak Ghosh
3 days
had to stay up the whole night just to get that very type on hover (⁠╥⁠﹏⁠╥⁠).
@shahankk42
Shounak Ghosh
3 days
fixed the first part— creating a dexie object from a @kysely_ schema. this time the type inference is so perfect it's like you manually wrote up the types!. left: @kysely_ database schema.right: dexie object inferred from the @kysely_ schema!
Tweet media one
0
0
2
@shahankk42
Shounak Ghosh
3 days
fixed the first part— creating a dexie object from a @kysely_ schema. this time the type inference is so perfect it's like you manually wrote up the types!. left: @kysely_ database schema.right: dexie object inferred from the @kysely_ schema!
Tweet media one
@shahankk42
Shounak Ghosh
4 days
screwed everything up and the entire thing imploded like a giant ball of types (⁠╥⁠﹏⁠╥⁠)(⁠╥⁠﹏⁠╥⁠)(⁠╥⁠﹏⁠╥⁠). i got frustrated and started working on my freelance gig (which i was casually ignoring). gotta start from scratch on this one.
0
0
3
@shahankk42
Shounak Ghosh
4 days
screwed everything up and the entire thing imploded like a giant ball of types (⁠╥⁠﹏⁠╥⁠)(⁠╥⁠﹏⁠╥⁠)(⁠╥⁠﹏⁠╥⁠). i got frustrated and started working on my freelance gig (which i was casually ignoring). gotta start from scratch on this one.
@shahankk42
Shounak Ghosh
5 days
update: i created an ultra simple CRUD wrapper over the kysely-inferred dexie db. and it's (almost) fully typesafe!!!. this is now officially waaay cooler
0
0
2
@shahankk42
Shounak Ghosh
5 days
out here tokenmaxxing this shii (⁠╥⁠﹏⁠╥⁠)
Tweet media one
0
0
7
@shahankk42
Shounak Ghosh
5 days
update: i created an ultra simple CRUD wrapper over the kysely-inferred dexie db. and it's (almost) fully typesafe!!!. this is now officially waaay cooler
@shahankk42
Shounak Ghosh
5 days
i think i cooked something really cool
Tweet media one
0
0
4
@shahankk42
Shounak Ghosh
5 days
RT @shirish_arya16: Building SaaS in 2025? A few things you must know:. > Offer Google login. Most users won’t bother creating an account o….
0
68
0
@shahankk42
Shounak Ghosh
5 days
explanation: i wrote a helper function that converts @kysely_ db schema types into a properly typed dexie.js object! all you gotta do is specify the primary keys. it's fully typesafe (Tanstack-level type safety) and it allows you to reuse schemas between the client and server.
0
0
4
@shahankk42
Shounak Ghosh
5 days
i think i cooked something really cool
Tweet media one
2
0
5
@shahankk42
Shounak Ghosh
6 days
this. this is huge.
@PlanetScale
PlanetScale
6 days
Convex is already running PlanetScale for Postgres under the hood. Starting today, all new databases on @convex_dev get the blazing fast performance of PlanetScale Metal.
0
0
1
@shahankk42
Shounak Ghosh
6 days
my ideal local-first fullstack setup would be:. - schema for tbe db shared b/w client and server.- client consuming data instantly (like as a react state, no async).- local db syncing with the remote db on mutation.- local db listening for remote updates. this is gonna be painful.
@shahankk42
Shounak Ghosh
6 days
i'm attempting to build a sync engine. this will either be the best thing ever or go horribly wrong, no in-betweens.
0
0
2