Happy (Chinese) New Year

The month of January has certainly passed us so very quickly and we are now in squarely in the Year of the Rabbit!


祝大家 恭喜发财 万事如意 心想事成 财源广进!

The Lucky Cat Project


Context

Started this project by challenging myself to build a complete application using SvelteKit 1.0 and was scratching my head for ideas until I chanced upon this idea: what if I built on top of all the craze around ChatGPT and built something that generated auspicious phrases for folks during CNY? And that was what I did.

Tech Stack

  1. openai - I used the davinci-003 model as it was available through the OpenAPI and ChatGPT wasn't
  2. typescript - Really can't do without this one
  3. svelte - I wanted to see how far SvelteKit 1.0 go with this, especially on the ability with CSR/SSR and the ability to have a "server" serving API routes without having to spin up a separate service
  4. midjourney - With all the hype on GANs and image generation, I had to try this too. The image of the cat was generated by midjourney!

It worked really really well! What I particularly enjoyed about this was the ability to:

  1. Serve APIs - `nuff said about having to deal with CORS and the need to maintain a separate API service
  2. Performance - SSR made things fast, real fast
  3. Developer Experience - Let me go into that even more below:

It's not all a bed of roses and I'm sure Svelte itself will go through more iterations but the criticism that it wasn't in 1.0 and in a stable state should be safely put to rest. Squarely putting this as a tool of choice when I next have to build an web app!

Created: Tue, 24 Jan 2023 23:12:38 GMT
Return to all posts