Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kwhitley
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
1.
▲
by
kwhitley
2y ago
Good tip - not really sure about the rules here? What do you mean by page title though?
2.
▲
Show HN: New NPM library itty-time is much smaller/faster than the popular ms.
(npmjs.com)
1 points
by
kwhitley
2y ago
|
3 comments
3.
▲
by
kwhitley
2y ago
Love to hear it! Btw, itty-router v5 just dropped a couple days ago, with a fun batteries-included (still ultra-small) router, that should make your code even leaner. How is the integration w/ zod anyway, and how can we make it better?
4.
▲
by
kwhitley
3y ago
Yeah, definitely recommend you try it before discounting... I too have been super jaded with the current Node import ecosystem (esp. as an author), but Bun has basically become something of a silver bullet, with some small exceptions. If I
5.
▲
A different kind of JavaScript router
(npmjs.com)
2 points
by
kwhitley
3y ago
|
1 comments
6.
▲
by
kwhitley
3y ago
itty-router is different than other routers... and not just by being smaller (450 bytes for the Router itself, or 1.6k for the entire library... roughly ~140x smaller than express.js). It takes a somewhat novel approach to routing, allowing
7.
▲
by
kwhitley
3y ago
Look in the openai.ts file for an example of prepending messages... in this case, I actually prepend one just to embed a random seed (otherwise the same input always gives the same response).
8.
▲
by
kwhitley
3y ago
I'm about to start hosting apps that need a preconfigured AI context (basically feed it an opening script/instructions), for users to interact with. This is really just to test the concept, watch the token usage rates, etc. Since
9.
▲
by
kwhitley
3y ago
While working on my latest project, I wanted a simple GPT chat bot API hosted on Cloudflare Workers. I decided to make this skeleton a template for future projects and to share it with the community. Instructions to get started inside the
10.
▲
Template: OpenAI GPT chat bot API running on Cloudflare Worker
(github.com)
1 points
by
kwhitley
3y ago
|
4 comments