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

theo uwaterloo talk when?

In his latest video he said that someone appraoched him to do a talk at waterloo, does anyone have details about this? and if not how can I make sure I get the details when they drop?

what stack should i go with for LLM wrappers?

so lets put it like this: I've got a nextjs frontend already in place now i’m working on some pretty heavy LLM tasks like evaluating full github repos (something like using openai's codex) and even speech2speech stuff (like openai's whisper) now i’m kinda stuck on what language/stack i should be using to build this LLM wrapper part becuase vercel’s ai-sdk maybe doesn’t give me everything i need....

Using AI To decompile

Anyone tried using AI to decompile older software/video games? Stuff like Wii and Gamecube games have a large community already and there are tons of possibilities with AI helping out. I was just wondering if anyones looked into it

Querying a table with a timestamp returns an incorrect time with drizzle

Hi there, i'm using drizzle with a postgresql database. In one of my tables i have a timestamp. When a row gets created, the value is stored correctly in UTC time. However when I query the same row, the returned date object has an incorrect time (likely adjusted for my timezone) however it should be in UTC. table: ```ts export const sessions = pgTable("session", {...
No description

Qwen the least restrictive model in T3 chat ?

hi guys, quick question, what Model do you guys think would be the least restrictive as possible, i am not saying we should have models that allow hackers to create malicious code i am just trying to talk with an AI who would have the least amount of restriction as possible so like i could discuss NSFW themes with it or things that may seen non ethical somewhat without having it pulling on me the generic answer of "oh i cannot help you with that sorry." or "oh i cannot answer that etc" it is just annoying sometimes and defeats the purpose of the tool. so what do you guys think ? what ai model would you suggest that you might think would fit in this category ?...
No description

Sharing the tRPC client across a monorepo

Okay so bare with me because I'm really new to monorepos, and I haven't ever messed with the typescript config so this is all new to me. So I have my router defined in my apps/server, and I'm exporting the routers in my package.json: ``` "exports": { "./routers": "./src/routers/index.ts"...
No description

Is there any way to signup with email (and not Google) for T3Chat?

I've been looking around but could only see the Google Signup button. I want to make an account and subscribe, but I actively avoid linking accounts with a Google account. Is there any way around the Google Signup?...

Stop getting new build errors in production

When I use pnpm dev I get no errors, and the page loads and works perfectly, when I pushed it to production I keep getting lots of different errors, how can I make it so I only get the errors I get in dev?
Solution:
Think about what you're experiencing, and how to troubleshoot it. First step is to diagnose the problem. Your app in production doesn't match your app in development. Why? The shortcut to that question is -> the way you push to production isn't the same way you start your dev server (pnpm dev). So, the answer is to follow the steps the production deployment takes to find the problem. The next shortcut I'll give you is run pnpm build and you'll probably have errors on your machine too. Probably with the Webpack configuration or some other build tool. Once you start duplicating the production errors on your machine, you can adjust your config files to correct the errors. Note that once you get it building without errors locally the production server might still need adjustments to its setup such as environment vars or other settings....

How to implement continuous alert sound even the screen is locked in expo react native

I am working on a food ordering vendor app, in this i have to implement feature of new order alert sound which will play until the user accepts or rejects the order from the app. I want to play this sound even the screen is locked or in background

Next.js/Vercel new deployment notification.

Does anyone know how the update notification/toast on T3 chat is implemented? By default when there's new update the page just automatically refreshes. I would like to display the update toast to the users with the refresh button so that they can manually refresh the page instead of it refreshing automatically....

How do I get a refund when I have not used a single credit

I wanted to try t3chat from all the hype about chat experience but when I uploaded a couple of documents, only 3 of them got uploaded and I got the "Max 8mb" upload limit error. Feel so scammed. I canceled the subscription, I don't even what to use the app anymore. It would be great if I can get back my $8.

Can you guys explain why SSG still runs on use client components with NextJS?

I always thought use client meant the component runs on the client side. But now I'm unsure what that means as I recently got an error saying components using useSearchParams() should be wrapped in Suspense react components to make sure that NextJS skips SSG'ing the component. Is there a better way of stopping the SSG & why does SSG run on client components? I always thought if I add use client then that means that code is being executed in the browser only Thanks!...

Help on a Shadcn Form default value

I have a shadcn Form Number input with a default value of 40 (this value comes from database). Because i was having an issue with”Expected a number, received string” error on my number input i added a parseInt to the field onChange. But now when I delete the value so that the input is empty it defaults back to 40 instead of being empty. This is bad ux and i’ve been trying to fix this for hours but no LLM has been able to help me… seems a simple fix....

Cannot get pre-release ribbon/banner to show properly.

Anyone know how to fix this? If you try it, it always seems to be poitioned super weirdly and always off the screen.```typescript export const PreReleaseBanner = () => ( <div className="fixed top-0 left-0 w-20 h-20 overflow-hidden z-[100] pointer-events-none"> <div className="absolute top-0 left-0 w-64 h-6 bg-gradient-to-br from-pink-400 via-purple-400 to-blue-400 bg-opacity-70 backdrop-blur-sm border border-white/30 transform origin-top-left -rotate-45 flex items-center justify-center text-xs font-bold uppercase text-white"> Pre-Release Build...
No description

react native content question

does anyone have a good idea for engaging react native videos? i need to make an app and just wanted to see some examples of how to do things, made a new expo project and told cursor to do things and explain the files and things its making. it worked for the most part except now where i wanted a little card thing that can either be turned on or off on a touch. like a category card. but it can not do it at all seemingly. i dont really have the mind to sit there and read documentation. for small things yes but ground up learning things i hate it. i have written what feels like a fair amount of vanilla javascript, only ever with alpinejs which doesnt seem super related to react. Additionally component libraries that work with react native on phones and web? i tried looking around but nothing really seems that good or nice yet just on a surface value. i got a expo project set up with gluestack and added components i thought i would need but that just seems to confuse cursor too. ai for learning is good because its engaging but not when its bad. and i dont really want to repeat the error of just letting it write things, which partially i did on the bad web version...

Clerk testing without a frontend

Hi, I'm currently working on a project where we will use Clerk. I'm working on the backend and I'm starting the work earlier than the frontend. I'm going to use an API Gateway authorizer to validate requests. I was wondering if there is a way to generate access tokens without having a frontend integration? I would like to test all my authenticated endpoints using postman but not sure what's the best way to get an access token that I can use for all of my endpoints within Postman....

PDF Generation

Hi, it appears T3 Chat cannot generate PDFs? If I ask Gemini, it spits out some <tool_code> stuff but not PDF. Is it not supported rn?

t3 chat yearly subscription

is there an option on t3 chat to buy service for the whole year? currently im only seeing per month payments