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

Anyone know how to get AIs to output valid sources?

I'm trying to use the following prompt: ``` After the content list out the Title, Quote from the source and URL for any sources you used. Wikiepdia should not be used as a citation source. Verify all sources have an accurate and functional URL....

T3 chat and websocket

If t3 chat has been ported to convex db why don't I see a websocket connection in the network tab when I use t3 chat? Did they not shoot the new version yet or am I missing something ?
Solution:
Im pretty sure the beta is the only version of T3 chat with the convex migration

How to visually see the react component re-render?

I saw in one video, but I forgot to save, and I don't know which one anymore The video example was on GitHub page, after scrolling, some components blink, and this means the re-render...

Lack of Type Safety When Extending Express API with Custom Response Methods

Hi Express community, I'm exploring the feature of extending the Express API, as documented here, to add custom response methods. While this is a powerful feature, I've encountered what appears to be a lack of type safety when implementing these custom methods, particularly when using TypeScript. For example, I've defined a custom AuthUser type:...
No description

Hono adapter for uploadthing

Is there any support for honojs?? in uploadthing?? how can i use uploadthing with hono...

quick org architecture question :thinking:

quick org architecture question 🤔 we have an agent console FE that talks to our agent console BE (works great) now our team wants us to hit other internal teams' APIs directly instead of proxying through our main BE...

file uploads but never executes onUploadComplete

My uploader was working when deployed on digitalocean but since ive moved to an OVH server my onUploadComplete handler isn't running (even though files are uploading). Does anyone have any idea why this might be happening?...

upload of 9 byte file failing

using the rest api to upload via curl. it shows the 'uploading' messages for many many minutes and then fails.....
No description

NestJS + React UploadThing Integration - Middleware Not Executing

I'm trying to integrate UploadThing with NestJS (backend) and React (frontend) but facing issues where the UploadThing middleware isn't executing properly. Here's my setup: Check attached images. ...
No description

What do you guys use to build internal tools?

The title says it all. What do you use when you build internal tools? I am personally looking for something that is extremely simple (something like NiceGUI or ComposeHQ), that is also easy to deploy. Trying to gauge all possible alternatives....

UploadThing -> Python FastAPI Server for LLM analysis?

Dumb question. Should we even try this or are there better options?

Route not revalidating even when forced

I am using Nextjs App Router all the other routes are working fine, they load the updated data when changed from database. I am making a word game. On the Home Page a random selection is to be made. But it never updates, looks like the server time also not changes which means the server is not rerendering. I am usign Netlify for hosting (hope that's not the issue). - It also works perfectly fine in Local Environment ```tsx...

Uploadthing is showing me a Warning, that i use a outdated version for one of my API Keys

Uploadthing is showing me a Warning, that i use a outdated version for one of my API Keys, so i updated the sdk and the uploadthing/react package. But the Warning is still showing. Do i need to generate a new Key to get rid of this warning?

SSR with TRPC on App Router

I have a TRPC instance that's using App Router and createTRPCNext, but when doing SSR, headers aren't passed properly, ctx.req is always undefined, and so my code always throws UNAUTHORIZED. Here's how I'm creating it: ```typescript...

Change error message

Is it possible to change that error message? I'm using next.js app router, tRPC and React Query.
No description

Integrating Tanstack Router into the T3 Stack

How can I intergrate tanstack router into the T3 Stack in the place of Next.js App router?

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