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

UploadThing: Overwrite files

Hi, Is there a way to overwrite files with same name instead of creating a new version of it? thanks,...

How effective is portfolio website?

Do I have to create a portfolio website?
Solution:
depend on the goal… when you ask about efficiency, it’s really depend on what you aim for

What is the best practice of package.json & tsconfig.json in a NodeJS Appliation to use typescript?

I'm Exploring the best practices for package.json & tsconfig.json combo in a Node.js + TypeScript setup — figuring out about ESM, ts-node, proper compiler options, and runtime compatibility. Still unsure if I’m doing it “the right way” but digging deep and learning fast. Open to any feedback or corrections 🙌. For dev should I still use nodemon or are there any alternatives available ?- Some of the difficulties I faced was improper imports with usage of extensions or not.- Idk if transpiling is...

Can I host a local UploadThing?

A dumb question is one not asked (generally) I love uploadthing but if I want to use my own server (I have 3tb ssd I'd like to use), is there a way to make it upload to my personal server? I just want to be able to point to my own files as well and upload directly to my servers. A goal is to supplement it with a warm and cold storage of sorts....

Failing Theos 3h Tutorial in the first 10min :peepoCrying: Pls help

I just tried following Theo on his 3h Next Tutorial (Google Drive Clone) and he got to the point where did npx shadcn@2.3.0 add "https://v0.dev/chat/b/b_fFQhsfElqQi" Error: ✔ You need to create a components.json file to add components. Proceed? … yes No Tailwind CSS configuration found at /home/taugust/sandbox/drive-tutorial....

search query URL for t3

I'd like to start a conversation in t3 chat directly from the URL bar. For perplexity, I have the shortcut :p which is short for https://www.perplexity.ai/search?q=%s (using Brave). Does t3 have a search URL? I tried https://www.t3.chat/chat/seach?q=%s but the page loads blank instead of with a search query. Anyone have luck with this?...

Can we get the android device mac address in react native application (expo)

is there any packages or anything or any suggestion on how to do it

uploadthing - Integration with authjs

When creating middleware for uploadthing, I noticed that there's no easy way to get a request that can be passed to authjs. The auth function seems like it should work, but the signature taking requests expects a NextApiRequest rather than a NextRequest, and also expects a NextApiResponse as the second argument, which the uploadthing middleware method does not provide AFAIK. Does the uploadthing sdk provide a way to get information in a format that makes authjs happy, or is there other authjs methods I can use for this?...

Video of Convex Migration supposed to come out today? What happened

I saw that a video was supposed to come out today on youtube that looked like it was about the migration to convex. Did that live stream ever happen? Is there a way to get access to it?

Anyone use Twilio to send and receive SMS messages

why the eff is it so hard to get a webhook to trigger when a number receives an SMS message? been trying for a couple days and it does no worky work. Can anyone please help 😭
Solution:
my A2P campaign isnt approved :mikebruh:

Multi-language to Next.js website

Hey! Wasn't there a tool that does multi-language support for a website with llm? I know there is an i18next, but it still requires rewriting half of an app and making translations myself. Wasn’t there any fancy AI autotranslator that does it? The closest thing I found is to add a script to load the google translator to the client. Would really appreciatee advises...

Prisma deprecation warning about not specifying path to generator in schema.prisma: what to do?

Hi guys, I understand that right now Prisma is saving the generated client inside of node_modules, and I understand this feature is gonna be deprecated soon. Do you have any suggestion on where is the best place to save it to maintain the compatibility with T3 App scaffold? Thank you all!...

Accessing Uploadthing Routes in Expo

If I have a website with nextjs and it has the api route setup how should I go about accessing it in an expo app? Can I use the uploadthing hook in expo by specifying a url like (https://website.com/api/uploadthing) or would I need to use the vanilla javascript...

Do I need createHydrationHelpers with the new React Query intergration?

Can someone help me understand createHydrationHelpers, and what it exactly does? I'm also wondering, if it's still needed, in the new way of handling react query with tRPC. I saw a PR on the ct3a github, where they said that the legacy integration package is still necessary, for that specific function. Also that it could be remvoed once this https://github.com/vercel/next.js/discussions/60640 is resolved, but I don't think that's going to happen any time soon. Would love to know if I still need it...

Is DeepSeek-R1T-Chimera, like Grok 3 Mini, in the most attractive quadrant?

DeepSeek-R1T-Chimera merges the intelligence of R1 with the token efficiency of V3 and might be similar to Grok 3 mini! (https://x.com/tngtech/status/1916284566127444468) Theo wrote Grok 3 Mini is the only model with both a "cost to run intelligence index", less than 128 and an "artificial analysis intelligence index" more than 56 (https://x.com/theo/status/1920949723017412699) R1T got a lot of traction, (e.g. on Reddit https://www.reddit.com/r/JanitorAI_Official/comments/1k96qbs/new_deepseek_r1t_chimera_through_openrounter/ and Hugging Face https://huggingface.co/tngtech/DeepSeek-R1T-Chimera), but how about incorporating it in t3 chat?...

TypeScript Diagnostics Not Working in VSCode — Missing Imports & Typing Errors Ignored

Hello, the errors in VSCode have stopped showing up — things like missing imports or type errors. Could you tell me what I should do? The more complex the project got, the more these issues started happening, and now they seem to be gone completely, for no clear reason. At this point, it feels permanent. Should I package my repo using project references, or is there another way? I'm having a hard time understanding how to diagnose where TypeScript is slowing down — even with the official performance tracing guide https://github.com/microsoft/TypeScript/wiki/Performance-Tracing , it’s still pretty obscure to me. Have a great day !...

Uploadthing - can't add metadata when uploading files

I see metadata is an option in the docs but its not part of the UploadFilesOptions interface and I'm getting type errors. Docs with metadata as an option https://docs.uploadthing.com/api-reference/ut-api#parameters ...

Drive tutorial V0 import issue

i have tried all the methods but didnt find help can some one help me with this
No description

Using Obsidian Zettelkasten for Software Dev

I'm finding it a little tricky and overwhelming to keep track of all the areas that I need to know about in terms of Full Stack Javascript engineering. Currently job hunting so a lot of the areas that I'm rusty on are being uncovered in rapid succession. I was wondering if anyone had any experience in using the Zettelkasten method for learning about different considerations and tech? Obviously I won't know everything about everything, but even just some 'here's the basics to consider' would be great across the stack....

Why double auth call on server pages?

Why do server pages call auth() after calling a router but before page render if the router context already checks for auth? ```ts export default async function Home() { const hello = await api.post.hello({ text: "from tRPC" }); // this calls auth internally also...