Blog

In this blog, I share my thoughts, ideas, and insights on various programming topics. It's a space where I explore different aspects of coding, from practical tips to personal reflections, offering a glimpse into my journey and the things that inspire me in the tech world.
application
blog
hono
sveltekit
tutorial
javascript
design
Integrating Hono inside SvelteKit
Oct 19, 2024 (Oct 19, 2024)
I've been trying to find a way to integrate Hono inside SvelteKit for quite a while now, and I have finally found a way to do it. Basically it involves using hooks.server.ts and hijacking the request if it needs to be a hono request. I will be outlining the process on how I did it and some caveats you might encouter and how I fixed some of it. You can also follow along this tutorial. If you
Prisma vs. Drizzle
Oct 17, 2024 (Oct 17, 2024)
Honestly, they're both really good ORMs. I've used Prisma for quite awhile now, almost a year or so and so far my developer experience with it is superb. Especially if you work with local SQLite, PostgreSQL, MySQL, and other databases that don't rely on an HTTP connection. Here's the catch, dont-rely-on-an-HTTP-connection.I super interested in using Turso with libSQL as the libSQL embedded d
Surprising use of a String Obfuscator
Oct 1, 2024 (Oct 1, 2024)
I found a surprising use of a string obfuscator in JavaSript. When I compile a JavaScript file to a binary package using @yao-pkg, if this js file contains secret strings, these strings are entirely viewable when you open the binary package in notepad or some similar text software.Consider a .env variable that looks like this:In an example api endpoint, these environment variables are being
Building separate folders with different adapters in SvelteKit
Oct 1, 2024 (Oct 1, 2024)
I wanted to create an NWJS SvelteKit template different from the one that edde746 made, that is capable of building the API and Frontend separately for NWJS to run. I was originally considering just using Tauri, but I was not ready to delve into the world of Rust just yet. I wanted to make it so that I am still in the same language regardless if whether I am in the frontend or backend, as I can en
Underrated Tool: DaisyUI Theme Builder
Sep 17, 2024 (Oct 1, 2024)
We all know now how useful Tailwind is as a tool for rapid prototyping and design implementation, and with lots of plugins being able to interface with tailwind, this is such a godsend. DaisyUI takes this further by implementing themes. However, I do find it a bit troubling to generate themes, especially using their tool in their own website as it would be nice to know what the theme looks like ro