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

New Pro plan user. Which models have access to acquire realtime info via web sources?

I guess T3 is different to to it using API access. Do any of the models have access to retrieve realtime info from the web? For example, Grok (from it's own interface) will retrieve and even provide the reference(s) where it's getting info from (if from a source outside the model itself). Inside T3 it doesn't, and when asked if it can it says it can't. I've randomly tried a few different models yet none seem to work. Any insight?

UploadThing + Next.js (App Router) + Kinde Auth middleware → Failed to parse response (InvalidJson)

Hi everyone 👋, I’m using Next.js (App Router) with TypeScript, Prisma, and Kinde Auth middleware, and I keep hitting this error when trying to upload an image with UploadThing: UploadThingError: Failed to parse response from UploadThing server Caused by: InvalidJson ...

closure in javascript

so i am learning javascript and i came across a section that side we should generally try to avoid side effect but upon reaching the closure part it seems like every closure i have seen has side effect so my question is in what cases should we use closure ?

How to do payments on mobile?

Sorta specific question: how are we doing payments? I have an rn expo app using supabase for db/auth and a nest js backend on railway. Sometimes call straight from db for reads but backend for most complex stuff. I’ve seen people talk about how stripe is painful rn, and clerk is a nice wrapper for that. So I have 2 options: ...

Vercel & v0

Is Vercel verboten now? If not, is anyone talking about the cluster that is the v0 agentic update?

Vercel deployment route /.env did not result in redirect.

I have an application deployed via vercel and notices something somewhat concerning earlier. A log indicated that a visit to my domain with the route /.env returned a successful 200 response. I tried to recreate this behavior by visiting this endpoint to see what was returned, and if I should frantically change my environment keys, but I was redirected to a 404 not found. You can see my visit in the logs. I am curious what is behind this behavior and if I should be concerned. My .env is gitignor...
No description

Anyone here good with tailwind and package bundling? I need some assistance 🙏

I have a bit of a complex issue, basically i have set up a workspace using npm workspaces. And im using this in a bit of a strange way. Basically i have broken up a monolith of a frontend up in to a workspace, where what would previously have been 2 apps is now 1 app with 2 application packages, 1 auth package and 1 design library. The issue is that this is bundled. So i have a routes defined in the packages, where i intended to use this for loading the component structure as if it was an app. T...

Help with T3 Stack. Next.js 15 + tRPC + Tanstack Query

Hi, I use the T3 stack with Next.js, tRPC, and Auth.js. I have an issue in my app where whenever my user's session expires, we get the UNAUTHORIZED error from our protectedprocedure, but I want to automatically redirect the user to our /login page after the session expires. How is this usually done efficiently?...

Can we set custom sys prompt in T3.chat and when creating new chat select prompt ? is that possible

I was trying to set Custom prompt but seems there is no option, provided. Can we get this feature if possible ? Feature flow: I can set or create System prompts in my profile, and for every new chat i can set a prompt, per chat or per question if possible ?...

I want to hear about people's bad experiences with AI models while coding

Just watched Theo's latest video about him being wrong about GPT-5 and I want to hear about people negative experiences using AI models. I want to know because I don't quite understand the outrage. My experience with GPT-5 has been quite good, I appreciate reading what the model is thinking about before it gives me an output and it seems feel a little more helpful compare to the standard cursor defaults. Thus far I've had quite an enjoyable experience with AI models and haven't been all too picky, just using what ever is the default in cursor. I'm mostly using it to make suggestions and sometimes explain syntax that I'm unfamiliar with. I've had it make some quirky suggestions sometimes but I've been able to mostly edit them away if I don't like it....

Linking account loop

I'm getting this weird error where my screen is stuck in a loop when logging into uploadthing. It goes from the "Linking account, this might take up to 10 seconds. Please wait..." screen, to "Team linked successfully" (screenshot), to https://uploadthing.com/dashboard/theamanm-personal-team, after which it goes back to https://uploadthing.com/link-team and says "Linking account, this might take up to 10 seconds" I've tried clearing my cookies and local storage, I'm not sure where to go from here....
No description

Am I the only one using Intellij?

I started working with it in corpo, mainly java/spring boot, JSP🤢 . Even when working on my own with TS, Angular, React, NextJS I couldn't switch. I tried so many times, but it doesn't click. ...

Effect Trace ID Inquiry

so in t3.chat, I presume effect is being used and some sort of external OTEL is used for fetching logs with a trace ID. I am attempting something similar in a NestJS app, just that I want to return a response to the user with the traceId so when the user get's the feedback, I can also use the traceId to find the detailed logs. here's a sample UserService. I would appreciate any help...
Solution:
solved with this implementation, thank you! ```ts import { Injectable } from '@nestjs/common'; import { Tracer } from '@effect/opentelemetry';...

Feedback/Question: disable max-w-3xl on chat

Is there a way to disable the max-w-3xl on the chat. It feels really odd that I have to scroll code examples and other stuff when there is plenty of room. My workaround is removing max-w-xl in the chrome devtools...
No description

Do T3 Chat extra premium messages carry over ?

I was wondering if when I purchase extra premium messages if the extra ones carry over to the next billing month or if any extra unused premium messages get reset aswell.

which platform should i use to store user profile images

I'm working on a chat app for my portfolio i wanted to store users profile images in mysql database as a blob i am using the platform tidb as mysql database host https://www.pingcap.com/tidb-serverless-pricing-details/ this is there free quota
customers can store 5 GiB of row-based data, 5 GiB of columnar data, and consume 50 million RUs for one month. In total, each Organization can get 25 GiB of row storage, 25 GiB of column storage, and 250M Request Units (RUs) for free per month. Customers can take advantage of this offer and optimize your operations without worrying about initial costs
...

Question Regarding Storing Videos

Hi everyone, Let’s say I have a webapp that takes a video input, converts it to audio and just sends that audio to an api to get a transcript. I was wondering whether I should be using S3 storage or a similar approach for such a use case. Thing is I don’t need the video file beyond getting the transcription, and there aren’t any regulatory things in which I do need to keep the video files. So it does feel like storing it in a S3 might be overkill, since we simply delete the video afterwards. I was wondering what the best/most efficient way to tackle this problem would be. I apologize if this is a stupid question, I’ve just started creating webapps and want to learn about general design patterns and architecture/approaches....

I cooked a new way of AI coding (Claude Code required)

Just shipped something special for all the Claude Code users out there! The AB Method transforms how we tackle complex software projects by breaking them into focused, incremental missions. https://github.com/ayoubben18/ab-method...

Can t3.chat work with zed?

I've seen cursor in action and it looks great, but I want an open source alternative, e.g. zed. Can t3.chat work like this, as an editor extension?

Nextjs firebase apphosting help

Hey anyone hosted netxjs app using Firebase apphosting ? I want to use it but I don’t know how to hide environment variables as it doesn’t have a place to put env files, as in vercel we have a place to put all the envs. Firebase said Nextjs app can use the regular .env ( ignored when pushed to github btw ) but i am pushing my code to github which then triggers the build in apphosting also if i use apphosting.yaml file i am still sendinv that file to github again for firebase apphosting to use it, which defeats the point of hiding the envs...
No description