News for hackers. Stuff that matters.
Re:$ teebot.dev – from terminal to tee in 6 seconds by semiquaver on Sunday March 22, 2026 @11:10AM (#47478336)
Why does it take 20 seconds to composite a string onto a shirt? Are you using generative AI for something that can be done in milliseconds with traditional techniques?
Re:$ teebot.dev – from terminal to tee in 6 seconds by arjie on Sunday March 22, 2026 @11:59AM (#47478857)
It cannot be that, surely since the page prior to the CTA actually shows the shirt with the string composited. So is it perhaps doing some live pricing based on a collection of vendors on the backend? Better to show an initial price and then a progress bar that moves up as the vendors return prices I think. Either way, I reflexively almost clicked away as soon as the 20 s started.
Re:$ teebot.dev – from terminal to tee in 6 seconds by foxpress on Sunday March 22, 2026 @12:08PM (#47478955)
Damn, ok. Good feedback. I heard that from someone else, too. Our attention spans are fried, lol. Can't wait 20 seconds for a shirt preview! It's true though. So the first "preview" is just rendering text on top of a blank shirt mockup, and the the second one (after you click and go to /preview) actually sends the text to the Printful API to get a render of how the shirt will actually appear. That's the delay, waiting for the final image to come back from Printful.
Re:$ teebot.dev – from terminal to tee in 6 seconds by foxpress on Sunday March 22, 2026 @11:18AM (#47478422)
that's the Printful API. Once a phrase has been generated it's cached so it's instant next time. Do you have any suggestions on how to make it faster?
Re:$ teebot.dev – from terminal to tee in 6 seconds by foxpress on Sunday March 22, 2026 @11:29AM (#47478528)
it's often faster than that, that's just the longest it ever takes so I set the countdown timer to 20 seconds. if you can think of a better way to present that I'd love to hear it.