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

High bill for Sanity

Hello all, Recently, the invoices of our Sanity started to increase (see image 1). The used framework is Next.js (hosted on Netlify). First, we paid less than 50 euros, but now we get wills of 300 or even 700 euros. It seems that the Bandwidth (see image 2) and the API CDN requests (see image 3) have increased, causing this explosive bill. I started working on converting the website from Page Router to App Router on December, 20th (and I have to find my Theo Twitch clip to see when I was done), but the Sanity increase already started in November, so the conversion will likely not be the cause. According to Google Analytics, there is no increase of traffic on the website. It even seems that less people visited the website than the months before....
No description

real time video stream that gets served to multiple users

Hi all, this is at least what I found to be a very unique issue or problem I am facing and is a react client side issue and need and I'll do my best to explain the issue but for work we work with other companies and integrate rstp/http cameras into our software, and we need to be able to serve these cameras video feed onto our webapp. I am using ffmpeg to convert the rtsp/http stream to mp4 and I am taking that output and piping it to a rabbit mq and publishing the messages using pub/sub. My NextJs API Route Handler is the subscriber of the RMQ message broker which consumes the messages from rmq and streams that to my client component in the browser. It also could be my lack of understanding of how NextJs API Routes work too...

limits of the free tier t3chat?

what is the limits of the free tier t3chat?

custom login page does not work

i made a custom page for sign in and it does not give any error but it does not work either. can someone check my code to see what is wrong?
No description

NextAuth.js is now part of the Auth.js

Recently started using t3 and get errors after setting up the project regarding NextAuth.js. The documentation next steps and getting started with Discord Auth example don't match what T3 creates. Does an update need to happen as NextAuth.js is now auth.js?...

T3 Chat Image and File Upload

Does the Pro tier support image and file uploads?

Next.js 15 App Router vs. React Router:

Which is the better option for handling real-time routing in heavy web applications? Should you use Next.js 15's App Router for navigation or stick with React Router?

Which E-Mail (marketing) software/platform do you use? (Clerk for Email)

I'm looking for a library/platform for email notifications in my webapp, that should ideally also bring some automations, nice email templates and a bonus would some prebuilt components for my react-app. Any suggestions? #questions...

T3 chat getting image gen?

This is the only thing stopping me from canceling my ChatGPT plus membership

Question about ARGs/Envs in dockerfile suggested in T3 website.

I am not a docker veteran however on this page the example seems a bit wrong. so on this block ``` ##### BUILDER...

useQuery or useMutation?

What's the best way to handle side effects with React Query when making API calls in a chat application? I'm building a chat app where each API response needs to update a conversation array in state. Currently using useQuery with side effects in the queryFn, but I know this isn't ideal. Here's my current code: ```js...

Personal inventory system

My friend want me to create a database system for his inventory system to save the products, sale, expense and loans. Now i want to create the database in drizzle orm and sqlite. I have just one question will create separate table for loan or add the isLoan column to the sale table.

Suspense boundary trigger

I'm having some trouble understanding when a suspense boundary would be triggered or not. I have RSC that fetches some data and in my expectation when the URL changes with some filter options and the components starts to fetch again the fallback of the suspense should be activated. Thats not the case. The suspense boundary is only triggered on a full page refresh....

Hello

Hello, first I would like to thank the developer of t3.chat, I even purchased your PRO version and I am like surprised, I have a question, are you thinking of adding support for vscode?

custom login page error

i made a custom page for sign in and it does not give any error but it does not work either. can someone check my code to see what is wrong?

What Ollama models do you use? Is there a good repository of rankings?

So I imagine this community has a bunch folks on the Ollama train, and I admit that I have a bit of choice paralysis in this. I've tried a half dozen 8b-14b models, but would love to get some kind of consensus on things. I am aware of hugging face and the like, but I'll openly admit I don't know how most of these benchmarks work, and haven't found a really solid "Plain English ranking" for selfhosted models. I know that https://openwebui.com/leaderboard Open Webui's leaderboard exists, but it goes too far the other direction, why are you at the top? TL;DR: What models are you using at home? Ideally one that can be run on consumer cards. Love to know if you're using it cause its faster, or if its the most accurate, or both?...

Will there be a linux desktop app for T3 Chat?

If so how do you think it will be packaged? A different binary for each distro? An appimage? Will linux users have to build from source?

What are you all looking for in typesafety of storage library?

So I am working on an SDK for a headless CMS API. The idea is that you are setting up data structures on dashboard, and then you can use them in your TS/JS project with an SDK library. I drafted an idea of a library, that works like this: - Typing is not required, you can use the SDK without your data types - Once types are generated with your API key, they are saved into single d.ts file, that can be referenced both in JS and in TS. Depending on your workflow, you can add it to git, or generate dynamically on localhosts/during CI....

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...