Theo's Typesafe Cult

TTC

Theo's Typesafe Cult

Join the community to ask questions about Theo's Typesafe Cult and get answers from other members.

Join

Blockchain Big Data Engineer (Polygon-Focused)

I'm currently building on-chain analytics tools and real-time dashboards on the Polygon chain. Tech stack: - PostgreSQL, ClickHouse for analytics - ELT pipelines, JSON/JSONB event handling...

When do I move to/start learning AWS (or similar)?

Hey! I'm looking for some perspective here. I've been self-hosting everything for a while. Started with a VPS, added a few more when needed, and now running a dedicated server with Proxmox. Coolify handles app deployment across VMs. This setup works really good for hosting a bunch of websites, web apps, and a few small game servers. Now I’m wondering:...

Custom system prompt?

Are entire custom system prompts still not available on t3.chat? Saw online it's not a feature but there were considerations of it. Wondering if that was ever added. Very important feature imo.

UTAPI uploadFiles failing. Invalid URL

I'm building a mobile app using Expo + React Native. I'm working with server actions so that I can easily use prisma etc. The plan is to have a server action that lets me upload a file to Uploadthing. I can't use the provided expo package since all it exposes is a hook to open a camera or a file picker. In my use case this does not help me. I need to manually upload the file. That's why I landed on using the UTAPI....
Solution:
Fixed: Turns out this is happening because of two reasons: 1. Uploadthing uses and relies on the UPLOADTHING_TOKEN env variable even when you hardcode the token (I didn't know that)...

Temperature setting = 0

Will there be a temperature setting feature in the future?

Having issues with ToolKit.Dev

Hello, i will provide the error shortly

should i use socket io to handle my app chat events

I am building a chat app kinda of a discord clone using socket io i am thinking a lot about creating global listener using socket io for things like notifications , friend requests , users connection status or anything that should be handled in real time i have noticed in discord that when any of these events happen they happen in real time and quite fast actually for example if a friend connects to the app you immediately see the friend connection status change from offline to onlin...

How do you globally handle auth errors for tRPC Procedures in Server Components (clean cookies & red

I'm using Next.js App Router with a standalone tRPC server, and I'm hitting a wall with authentication error handling in Server Components. Goal: I want to catch 401 errors from my tRPC procedures called in server components, clear cookies, and redirect the user to the login page — globally and cleanly. What I Tried...

what's an ideal way to get path of a caller file

i've found the method that works for me, but it's too hacky to be true lmao ```js function() { let callerPath = new Error().stack!.split("\n")[2]!; for (let i = 2; i > 0; i--) {...
Solution:
whatever, i use process.cwd()

Patterns for streaming AI responses to client without leaking API keys

When using services like Fal.ai or OpenRouter for big AI models, these providers usually implement streaming (which is awesome) - but it seems like a lot of effort and hand-rolling is still required to make streaming work without exposing API keys to the client. This is especially annoying with serverless backends like Next.js + Vercel. To get LLM streaming working without client-side API keys, I've been using a pattern where one API route starts the stream and another route handles polling for updates. So I'll have an endpoint called something like startStream which does something like:...

How on earth do I create an convex API Key?

Theo talks about it alot, using their ai, docs, my AI, etc; I can't find way to do so...

React Native question

Theo in the past has metioned (and demoed!) the differences between controlled and uncontrolled inputs in react native / Expo and showed how slow they can be. It seems this is only really affects iOS, i am an android user so I have no way to verify. It looks like Dan Abramov made some noise about this, the team stated it was a regression, and it's (maybe?) no longer an issue....

How do you test pull requests beyond just reading code? (Research)

Hey developers! I'm researching how teams review and test pull requests, especially when you want to actually try out changes rather than just read the diff. Looking specifically for folks who: ...

DEV mode like arc in Zen

Does someone know a extension to Mac in zen the dev mode look similar like in arc? Trying to switch to zen again and this is the only thing I miss for know.

Can I specify the model of new chat through the url?

does anyone know whether i can specify which model i want to use through the url, i wanna add like a double bang to unduck like "!t3@o4m" or something similar

Advice: Better-Auth as a Backend noob?

So I've been working on developing an app for my church to use as a member portal. It's just me developing this app and I have very limited monetary resources. That's okay though because our church is also relatively small. Anyways, besides the point. I have very little backend experience, but am somewhat experienced with frontend stuff. I've setup Clerk for my app already (it's a Next.js app I've built over the last couple of weeks, I'm currently hosting on Vercel's free plan), but I'm beginning to regret my choice considering the limitations they place on free users (and there's absolutely no way that I would have the funds to pay for their paid plans.) (see above)...

Why radix-UI headless component render internal components if they're not mounted

After running the react profile for one of my page, I noticed this deep nested renders after using a RadixUI Dropdown component. As of now, I am only rendering the Button 👇 ```tsx /* ------- page/book.tsx ------- */...

Component Design Principle

Hello, I've been assigned a task to create a side menu that is responsable for creating or editing an entity. What I thought the models and inner workings of component shouldnt know about the API. That lead me to the need of mapping API models to side menu component's models. I would like to know how you or would you approach to this?...

Cookie deleting immediately after setting

When I sign in, it responds with a Set-Cookie in the HTTP Headers. So, it ofc sets the cookie. Then, the next time my code runs something that calls /api/auth/session, the request responds with a set-cookie with Max-Age=0, deleting the cookie. Why is it deleting the cookie?