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

A simple plan to increase your userbase and profits while benefitting users as well

I have made you a personalized referral system (and some other improvement suggestions) It is similar to what other AI tools use but this one is more improved for an LLM Aggregator. If you implement every feature that I suggested (whole plan is in an image), you will probably increase your userbase and profits much faster....
No description

DnD Kit

Anyone here have experience with DND Kit that may be able to help me solve a bug? The issue is on click events not working properly. If anyone does have experience with dnd kit and can help I would really appreciate that!

Give t3Chat Specific Sources

Can i ask the models with search feature (or other models) to use specifc webpages to search in as additonal sources, like fandom pages to get more lore accurate results. If yes how ?...

Monetize vs public repo

Hey, guys, I currently have idea for website (or maybe extension) and I have it for while in progress, but now I was thinking about if I should keep the project private and try monetize from it or make it public, so I will have decent project in cv (The reason why I am asking this is because I dont I will came up with another good idea that people can would really use) Any tips what should I do and why?...

UT: Issues with completion callback in dev

Everything is working fine in production, but I'm unable to get the onComplete callbacks to work properly in dev. I think I'm getting close, but I got the following error in console. I reached out to support via email, but I linked this thread since its a bit easier to communicate and share code via discord opposed to email. Error: Something went wrong. Please contact UploadThing and provide the following cause: "TypeError: records[0].serverData is undefined"...

Weird encounter using T3

I asked gemini 2.5 pro to translate this image thats from a screenshot of a presentation and... it gave me this response. I am struggling to understand why or how I could even get a response like this. If anyone could help me understand or clarify, that would be great 😭 this was so strange and scary to see this.
No description

NextJS customId support in /api/uploadthing route

Hi everyone, I've checked the docs and I can't find the correct way to use customId values in nextjs app router. @theo (t3.gg) what an I doing wrong? Here is my core.ts:...

Are there any tools/articles/repos that could teach me the inner workings behind web app builders?

Hi, I am interested in learning more about how products such as Cursor, Lovable, Bolt and other similar tools, work. Could anyone point me in the right direction?
Solution:

Why is server-trpc's createContext react-cached?

Hello Why is createContext (in src/trpc/server.ts , which is used to create a context for every trpc call from server-side) cached per SSR request (cache(async () => ...)? I have no issue or bug. I just wanna learn, please....

CORS error in react vite and express

When uploading an image it starts correctly then I get this cors error. I've this cors settings in vite.config.ts ``` proxy: { '/api': {...
No description

t3 env vercel deployment

attempting to use t3env and keep having build errors for vercel, any help would be appreciated next config below `import {createJiti} from 'jiti'; import { fileURLToPath } from 'node:url';...
Solution:
Resolved with the next.config.ts below got the import syntax from create-t3-app boilerplate code `/**...
No description

Steam Provider with nextauth

Hey im trying to figure what the best way is to implement steam openid with nextauth - does anyone have experience with this?

How to pass trpc useQuery into a component

Hello, I'm wondering how I can tell typescript what type my useQuery is when passing it into a react component? I want to avoid using any. I am aware of RouterOutputs, but this doesnt work for the entire useQuery response, only for the data that is returned. ```ts const { data: activeSubscriptions } = api.premium.getActiveUserSubscriptions.useQuery();...

Use ts type in Zod

i have a type that i am importing from a 3rd party package. is there a way i can use this type and put it my object schema. if i just make it an enum and i update the 3rd party package and they change these types, my code would be wrong ```ts // imported type: type EmailOtpType = 'signup' | 'invite' | 'magiclink' | 'recovery' | 'email_change' | 'email' ...

Limits

For the AI models like Claude for example in T3, does it still have the same limitation where it cant write more than 100+ lines of code? Additionally, is there any limit chat per day for the paid users?

Password Handling

I have a simple site with an input for a password and then on submit, it goes to this: ```typescript import { NextResponse } from "next/server"; export async function POST(request: Request) {...

In your opinion, what are the best-written open source React projects?

Hi there, I've been looking for popular open source React projects to learn from and found some - like for example cal com, uploadthing, and pancakeswap. Here's the thing though: i'm not an expert, so I can't say if they are well written or not. So I ask folks here: in your opinion, what are the best-written open source React projects? ideally ones that are not on my list

trpc caching procedure calls for queries in the same batch

Hello, I am using nextjs and trpc server components, using trpc to prefetch queries. All of the requests on this page are protected by a procedure called protectedGuildPermissionsProcedure which essentially checks that the user has the right permissions to access the data that is returned. ```ts await Promise.all([...

32K tokens limit on 4.1 model

I am trying to upload a file which more then 32K tokens which should ideally work for the 4.1 model yes?
No description

Bookmarks for T3 Chat?

I can't be the only one using AI for very long form conversations on a subject or coding project. It would be super nice if somehow T3 could allow you to add bookmarks, and quickly jump to that part of the conversation. Also would be nice to have a quick easy list of bookmarks for the current thread.
Next