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

Any good resources/collections for react native design/animations.

I'm super nooby but i'm halfway done building a expo react native app. But I was a designer first and I'm used to good examples of mobile apps, I don't necessary need a component library like Shadcn but there are lots of apps that use shadcn and I was looking for a board for inspiration. So far my best bet has been looking on appstacks, mobbin, and threads weirdly enough for most likely native apps, and everyone says the micro interactions aren't something they would do in react native. Figured...

NextJS streaming: use(<data_promise>) in CC or await data in parent SC?

`` page.tsx (SC) -> <Suspense fallback={<Spinner/>}> <DataWrapper.tsx> // This SC does the await fetchSettings()` -> <DataForm.tsx settings={resolvedData} /> (CC)...

I am trying to better understand Tools within the context of LLMs.

I know what they do, thats not hard. BUT I am having issues finding the proper documentation for OLLAMA for them. There isnt a formal workflow, so it seems after you get info from your model, you will then execute all your tools that the model thinks it needs, and then you resubmit them to the model to process. The problem i come into is: Is there a format for the tool content? ...

Framework for small bits of interactivity on otherwise static page?

One thing that web components frameworks enable is adding a small bit of interactivity to an otherwise static page. Either strictly static, or from a static-site-builder, or from a CMS. Are there other frameworks that work well for that application? From my attempts on the angular playground, it looks like you can do it, at least with the most recent angular.

What was that video where Theo talked about the shadcn-like UI component library

I have searched through his videos with YouTube channel search and filmot but couldn't find it. I remember an animation where there was a laptop that changed perspective when scrolled, and Theo said it was pretty amazing that they had replicated the laptop with html divs.

Upload security

Hi, quick question here. So we can specify a mime type for our route handler. How is this mime type verified? Is it just the reported mime type or do you check the file magic numbers? Follow up question: Is there any other security on uploaded files or is the rest up to us? (Assuming this is gonna be a no)...

T3 chat history in context

I like the "memories" and "reference chat history" features of ChatGPT where it can use more knowledge about me in its responses. Does T3 chat have similar features?

Typecheck works locally but fail during CI\CD on new T3 project

Hey community, please help with following I've created a new T3 project with 1 page and have a problem importing images. My repo is here (difference from template: 4 pictures, images.d.ts, ci\cd config file) ...
No description

EAS deploy error with uploadthing

I just copied the documentation but when I try to host, I get the below error ```powershell EAS Hosting is still in preview and subject to changes.
Project export: server
βœ– Failed to create deployment...

hello. i have a problem at uploadthinf

i done all steps uploadthing to upload image. when i upload image it show at console is uploaded but still keep uploading state at the browser.
No description

Next.js or something else?

Hi everyone, I'm new here but have been watching theo's videos on YouTube for a while and sometimes he roast next.js and sometimes compliment. Now I was gonna push my team in office to start using next.js typescript based to create websites but now I'm thinking is should we use next.js? Or is there something much better? Because we usually do a direct deploy to server not using vercel/netlify etc like an EC2 instance of AWS. So what are your thoughts Next.js or some other framework we should go with?...

onComplete doesn't work in production but works in development

I have an express app that looks something like this ```ts import express from 'express'; import cors from 'cors' import { uploadRouterHandler } from './routes/uploadthing.route';...

Where to report a security concern for UploadThing?

I've found a place where UploadThing is leaking SQL statements in SDK responses, which exposes the table structure/etc. Not an immediately exploitable vuln, but probably something they'll want to fix. Where's the right place to responsibly disclose the details? (looks like UT doesn't have a /.well-known/security.txt or /security.txt file, though I did look for them...)
Solution:
id dm theo on twitter

$1 GPT Image Model Credits

Is anyone generous enough to give me an API with $1 worth of credits? I want to use the GPT-image model in my app. I'll be happy to tell you guys what I'm working on - it's a "whiteboard" in which you connect nodes to create workflows. In return, I'd be glad to give you a shout-out when I launch, or even offer you early beta access to the app! Thanks πŸ™‚...
No description

t3 stack w `usePersistQueryClient`

im using t3 stack (w trpc, reactquery, pages router), do yall have any working examples of it w usePersistQueryClient

T3 Premium 100/100 full until 2 days! ??

Does anyone know what exactly is included in the premium 100 credits? My credit started up again 2 days ago and I'm at 100/100!! I don't use anything but grok2.5 pro! Can anyone explain this? πŸ™‚ Does coding also eat up premium credits? Is there a description somewhere about how much each model eats?

Uploadthing onUploadComplete not triggering nextjs 15I am using Supabase Auth in Next.js,

I couldn't figure out the solution for more than 6 hours now. I am using Supabase Auth in Next.js, tried to implement uploathing for saving user avatar. The onUploadComplete method is not triggering, although the image is successfully uploaded on the dashboard....
No description

What browser is this? The 'Helium' browser?

I'm searching for it online but can only find an old Helium floating browser from 2015
No description

Uploadthing Duplicate File Detection

How should one handle duplicate file uploads? for example, if I upload test.pdf and then try uploading it again, how do I make sure that the duplicate doesn’t get stored inside uploadthing? (If page is refreshed then the file wouldn’t be considered a duplicate) More worried about the backend part Also, should I rate limit file uploads? if so whats a suggested frequency/interval...

Upload Thing Get All Files

I read the documentation and i have to say i dont quite understand if its possible and how to get all the files.