UPLOADTHING_TOKEN ticks don's seem to work on railway.com
I am trying to run uploadthing on an app hosted on railway.com. Railway's management system for environment variables does not work with but works with
However, doing this the ticks encapsulating the token cause issues:
- if i leave the ticks in the token is too long by 2 characters, uploadthing complains: A token is a base64 encoded JSON object matching { apiKey: string, appId: string, regions: string[] }., ..Length must be a multiple of 4, but is 170 (full error is shown below)...
import.meta.env.UPLOADTHING_TOKEN
import.meta.env.UPLOADTHING_TOKEN
process.env.UPLOADTHING_TOKEN
process.env.UPLOADTHING_TOKEN
Solution:
figured it out. added node:crypto to vite in app.config.ts:
```
optimizeDeps: {
include: ['node:crypto'],
},...
When does the Cloneathon start?
Read that we have 10 days to do it, so I want to assume now, but registration isn’t open yet, so don’t want to start too soon (before registering) and risk disqualification.
Also, can we setup a chat channel dedicated to the Cloneathon?...
What is an LLM memory layer under the hood
I'm struggling to understand what applications like Mem0 actually do. Are they just an api layer that allows you to add information to a vector database?
When I go to the Mem0 website their explanation is pretty convoluted but to me it just seems to be a way to easily integrate rag and nothing else. I was wondering if anyone here can shed some light as to what it really is and if there's more to it....
Where can I extend the input type for trpc router?
Hey, I wrote a tRPC recaptcha v3 middleware for my public procedures, I am making use of the input object to pass the recaptchaToken, how can I extend the input object to include this as an optional attribute?
Also on a sidenote, is there an alternative other than input that I could use, my requests will be from client components...
...
React Routing Question.
hey yall! im currently working on a side project with a react frontend and typescript/node backend. here is the router configuration:
```jsx
import { createBrowserRouter } from "react-router";
import Login from "./ui/Form/AuthForm/LoginForm";
import Landing from "./ui/Landing/Landing";...
trpc types sharing non-monorepo project
What is your solution for types sharing using trpc but withouth a monorepo? I have 2 completly separate folders: client & server and I would like to have one source of types truth from the server. But it seems that trpc cannot manage and they just recommend to use a monorepo for that. Anyone has an idea please? ty
Supabase as a full backend
Context:
we are using supabase as a back end but what i don't like is defining rls and having to juggle permissions especially when weird role-based access is needed for the application
proposal 1:
using rls as is...
T3 chat api for VScode copilot
If I subscribe to T3 chat would I be able to use the api key for copilot in VScode? sorry if this sounds stupid i have no idea what i am doing
Solution:
No, they don't provide API keys, it's intended to use as an chat app. OpenRouter is their recommended provider, otherwise you can get API keys directly from OpenAI etc.

TRPC Fetching pattern
Question about helpful trpc patterns.
Does .useQuery on the client side render multiple times (initial data state, isLoading state, error or promise fulfilled state)?
Right now I'm fetching SSR an initial data state, and then passing that into the client component, as the initial data- and then doing a useQuery for my useUtils invalidate will work correctly and data wont be stale....
Idiomatic way to deploy static assets on uploadthing
I'm looking for the idiomatic way to deploy static assets on uploadthing from my deploy script. Does something similar to serverless-s3-sync exist for uploadthing?
Other Email Options?
Is there a way to not use google for the service?
I really dislike google as a whole and would like to know if there is a way / a planned feature to be abled to use another email provider. ( I really do not like to create a google mail account just for this service )...
How SSH works
I'm building a project that also allows you to SSH but I was trying to learn a little bit more about how the network protocol actually works.
I understand the gist of it, and I understand that it's a way to push encrypted data via TCP from a client to a server but I'm confused regarding the encryption process.
I know the packet is made up of Packet length, padding amount, payload, padding, and message authentication code but couldn't someone just intercept the packet and decrypt it themselves since they would have all the information....
Solution:
but couldn't someone just intercept the packetYes
and decrypt it themselvesNo
since they would have all the information....
AI Editors/Extensions
So, i've been using Copilot for a year now, and it seems like it gets worse over time. I have a student discount, so i get decent models there. Or i had.
Recently i started using Gemini models and they legit just suck inside copilot, not using tools or missing the files.
So, the question from the title: What AI Editor(Cursor) or Exnesion(Cline,Roo,Kilo) are the best and why? I will be using them with my Gemini API Key
...
How do people handle logging in a Next.js app?
I have experience in logging on backends with winston and pino, but have never had to log in a full-stack production app. What are the do's and don'ts, and how should the logging work?
create-t3-app vs. T3 Chat stack
Hello,
I'm curious to build an AI agent chat application with some tool calling that mimics what Theo has put together with T3 and his move to Convex.
I'm wondering what the delta is with create-t3-app as a starting point and what has ended up being selected in T3 Chat....
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?
...