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

Am I breaking terms of service for T3Chat?

I'm running n8n locally and I found myself wanting to integrate t3chat as an llm provider since I pay for membership. I found a router app on github that will allow me to use my session token to proxy t3chat back and forth between n8n, but I'm wondering if this is a breach of TOS?

automating changelogs, git workflows

so i wanted to get advice on both topics automating changelogs How do ya'll usually deal with this? I specifically want to automate/semi-automate changelogs for our users/client to see. We/I already use semantic commits. For the documentation tool itself, found out about fumadocs, but the automating of changelogs part is something im not sure how to go about...

Custom domain configuration in your application (shopify like)

I'm building an application for a client where users create their own stores and list them on the internet, I'm required to build a feature of custom domain configuration where users can enter their domain name and I give them som DNS records back so they can point their domain to my app and I can load the correct store and rewrite it in the URL something like theirdomain.com -> mydomain/stores/[id]. I'm using SST v3 to deploy my application on AWS I have a lot of queues and IOT for realtime buc...

NextJS with ESLint and pnpm - breaks ESLint configuration?

Does anyone use NextJS with ESLint AND pnpm here? I am trying to get this working, but it seems like the configuration I get from the create-next-app CLI out of the box doesn't work. E.g. creating a next app like this: npx create-next-app@latest → Running npm run lint works, also VSCode integration works but npx create-next-app@latest --use-pnpmpnpm lint doesn't work, VSCode integration doesn't work. ...

github website default to ssh when opening clone menu

anyone got any idea how to have it default the SSH tab and not HTTPS? pls @ me when replying...
No description

Kubernetes + Monorepo + Nx / Turborepo

I have been pulling my hair out recently over trying to get this system to work. Does anyone have any examples of getting a microservice type architecture going with kubernetes? Looking for something that auto deploys from GitHub. I just need something relatively simple to explain how to create new microservices or write documentation on the matter without it being 1000 lines of docs. I’ve tried a few ways of doing it, namely FluxCD but getting it setup so shit builds on GitHub using dockerfiles is just blah. Wondering if anyone has any better ideas?...

How to pass arbitrary data from client to middleware in Uploadthing?

Just as the title said. I found this from stackoverflow, but I don't use the component. Here is my code, I am using sveltekit ``` <script> const { startUpload } = createUploadThing("pdfUploader", { ... })...

Data fetching strategy

Using nextjs 15 app dir do you fetch on server components, use react query for example to fetch on client or prefetch on server component and hydrate to client using react-query? I am so used to fetch using react-query so thinking if i should change my idealogy: I have app that is behind auth, just forms etc, tables (paginated) and in my brains its better to prefetch+react-query suspensequery for clientside...

How is LLM streaming done at scale for users?

How is LLM streaming done for like 100-200 users so that IO is not blocked on every request sent to the LLM? Is there like a worker/queue pool and the workers handle requests to the LLM asynchronously? Or..? I'm kind of doing this now myself and I am curious as to how this is done at a scale so that IO does not get blocked when we are streaming chunks from the LLM to the UI. Also, how are the chunks sent from LLM to the UI most optimally? I am now using Redis to stream them....

UploadThing: Removed Image from Team without a trace

Hey Guys, so I am developing a Website and I am using UploadThing to store images for the Website. I do not allow any users to upload any sort of images. I am the only admin on the project, thus only I can upload images or have access to the UploadThing Account/Team. 30 Minutes ago I finished development of the Project (NextJS) I have been working on. Prior to commiting the changes to GitHub I ran some tests and that's when I noticed that one Image that was on the Website previously has just vanished. Now to be clear, the Image was on UploadThing the whole time. Just now the Image completely vanished....

Caching in nextjs with supabase

Hey guys i have a question about a project im building, for context i am building a CRM type of app and i have a few tables like customers, customers_services etc.. all these tables have an officeId from a table called offices, Offices is the way i seperate data for my users which will have their own customers ,this means that for almost every page of my app i need to do the auth.getUser from supabase, then use that user to find the office in which he belongs and get his office id, and then use...

How can I use Unduck on iOS?

Curious whether anyone has figured this out.

Questions on prefetching in NextJS

I have this productPage in my products/[id]/page.tsx file ```ts import { getProduct } from "../../../utils"; ...

PDF ebook Builder with AI

at job they gave me standalone project for me to build well long story short I've to build PDF ebook, user answers the questions and uploads images and with AI i must generate PDF, well in first place I tried to give AI that image links and question and answers what user filled, but AI fucks up whole layout, now I moved on templates, AI now just gives me content text and I insert them in html templates, but its still little fucked up because in some questions user can upload different ratios of...

help with a leetcode problem

Trying to complete leetcode 14 and keep running into the DEADLYSIGNAL error. I know the code is very messy and brute force but I am trying to do it without copy pasting solutions.
Solution:
so yeah, personally, just to avoid any out of bounds index issues, my process would - sort by shortest string - set a string that you update with the shortest[0]->shortest[i] - iterate through the strings horizontally first - iterate through the array vertically. comparing the strings to shortest at the index of the first loop...
No description

React.gg Concurrent Rendering lesson bug

I was looking through the preview of React.gg course, specifically the first Concurrent Rendering lesson, and I think that examples that showcase the chat UI are bugged in that selecting a chat from the sidebar is not interruptible: if you select a slow chat and then immediately select a fast one, it will wait until the slow chat finished rendering instead of switching as soon as possible. I recreated it in Codesandbox, fixed the issue, and then I tried to contact ui.dev team about it but to no success. This happened in May, and I still can't throw it out of my head. So I thought I could ask here, maybe you guys could confirm that it's actually a bug, and if it is help me find a way to report it to ui.dev team....

How does WorkOS AuthKit tell a staging environment from a production one?

I’m trying to run WorkOS AuthKit on my production server, but AuthKit won’t bring up the sign-in page. It complains I’m using the wrong client id for the environment. Does anyone know how to convince AuthKit it’s running on my production server?

Theo's Desk Mic Stand

Hi Guys, do anyone knows which model is this mic stand that Theo has been using in the last year?
No description

Sycophancy Settings?

I'd really like to turn off all the "that's a genius and insightful question" crap and the inverse, "Ahhh yep - [repeating my issue] can be a headache, and it's not just you." I remember a year ago being able to customize the personality of GPT4x, is there an option/setting for that either in GPT5 or T3.chat?...

Did they fix claude?

got so tired of using claude because of the "bugs" that made it less intelligent. How has your experience been with it since they fixed it?...