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

How to handle Monthly quota on Semi Annual and Annual Plans (Stripe/ Payment related)

Hey, I am building an saas application, for subscription we will give monthly quota for the user. How to handle this monthly quota for the annual and semi annual users. Is there is way to handle this easy? Or we have to use some cron or event triggering service to do this. Thanks...

CSR, SSR or server components?

I have to create an application that is highly interactive, featuring many reusable components that can be configured in different ways within the UI. I'll be presenting data with various filters, charts, etc. I'm considering which approach to use, and CSR (with Vite + React Router) seems to make the most sense. Am I thinking along the right lines? Initial loading isn't as important as ensuring smooth interaction with the application later on.

How did T3 Chat manage to make Dexie load data so fast?

I'm using Dexie, but it's getting slow when dealing with large datasets per table. Any tips or insights?

How does T3 Chat cost only 8 bucks a month?

Hi, I have seen Theos new Video about his Chat App, it really looks awesome and im strongly considering paying for the pro tier, but i still have a hard time understanding how the paid tier is only 8 bucks a month for Chatgpt 4o, while the original monthly subscription for the OpenAIs models are 20 bucks a month, before taxes. Is there a catch to it?

15in MBA vs 14in MBP

Currently on the lookout for a new laptop, and wondering if i should go for which one any of ya'll have experience with both? tbh i'm a bit more inclinced to pick the MBA just for the bigger screen while still being portable only thing that makes me second guess is that i live tropical country (so higher ambient temp), and i also do ML (although i'll prob outsource higher workloads to the cloud)...

Github Workflows NPM publishing issues

Hey, would anyone be familiar with why npm publish returns 404's in actions? https://github.com/arduano/trpc-chat-agent/actions/runs/12729068420/job/35480419410 It works fine locally, I have an npm automations key supplied, and the page it's 404'ing on definitely exists...
Solution:
Figured it out had to set NODE_AUTH_TOKEN instead of NPM_TOKEN even though basically all docs told me to use NPM_TOKEN...

Python issue with inheritence

I'm trying to check if a inherited class is an instance of it's superclass. But the inherited class and the super class are in separate files. I'm importing the inherited class with importlib as a dynamic import. So for example:...

Data fetching & dynamic routing Next JS (newest)

So I'm building a store website, I'm trying to use Dynamic routing to do /bundles/[id]/[bundleName] like I did for the store dynamic routing. but when I go back to it, It's fetching the database (Supabase) but returning a json error Console Error [ Server ] Error loading product: "JSON object requested, multiple (or no) rows returned" ...

What's t3?

Hi there, so I've been watching Theo's videos because they are very interesting and he covers topics very gracefully. So what's the "hype" about T3? Because everything he does is T3 related. It's a stack but I haven't found WHY he uses the things he uses....

EXA ai - T3 chat

support for EXA ai model would be awesome for research usage

How many messages do free users get? – T3 Chat

Pro users get 500 but how many do free users get? Just trying to see how "careful" I should be.

Issue with UploadThing after updating from v5.5 to v7

Hi everyone! 👋 I recently updated UploadThing from v5.5 to v7 and followed the documentation to update my code. However, I’m encountering an issue when trying to upload an image using a custom component. Here’s my setup: Custom Component: ```ts...

Next.js dynamic routing link component not working

I'm trying to make an online marketplace for plants and gardening accessories for a uni course project and i made the page for the products in a dynamic folder where when you click on a product the link sends the id of the product from the database (which is in supabase) to the product's params so that it pulls all the information of the product from the database and shows it (right now i only coded to show the image) but its not working.
Solution:
replace the " with backticks

t3chat development

How many cumulative dev hours did this take to develop?

Storing Payment Status of Customer on the frontend

[NextJs 15] - What's the go-to/best practice approach to storing and accessing the payment status of a customer across all components in the frontend? Local storage? Global State like Zustand ? React context? React Query? I'm already using the status on a server component but I need the status on an unrelated client component

Uploadthing: Type-error when sending custom field data to the client

So i want to send some data down to the client upon image upload. api/uploadthing.core.ts ``` .onUploadComplete(async ({ metadata, file }) => {...

Uploadthing muti image generation from a single image

I want to upload a single image and have 2 copies generated which are smaller than the original image (for mobile 400x400 and tablet 600x600). I want this process to be automatic, when the original image (1000x1000) has been done uploadthing. Any help on how should i complete this task (T3 stack: App router, tRPC, uploadthing)...

How to send messages to large number of people and is there ways for doing it

Hey everyone, I need some advice on optimizing how we show notifications to users. Here's the scenario: Current Setup: Our database has over 1.5 million messages stored....

How do i take logs & analysis about how my web application is performing.

I am new to logging and analysis of applications. I have created an application with 3 backends which communicate to each other using http api. There are a lot of activities going on in the application. How do i know what i need to log , where to store and how to analyze and how do i get notified if something is wrong. I came across open telemetry but i have not read about it.

Playwright page.goto in next js

Has anyone here worked on playwright with next js? What is the reccomended aproach for waiting for the page to load with server components? I was thinking of using network idle but it is apperantly discouraged. Maybe next js signals if it is loading with some aria attribute? Idk, help would be welcomed...