/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

haseebmajid.dev
| | joyofcode.xyz

Learn SvelteKit user authentication using cookies.
1.4 parsecs

Travel
| |
| | chrisjayden.com

tRPC is a great tool for managing server-side procedures. However, it can be a bit tedious to import it in every `+page.server` file. In this article, I will show you how to optimize your code imports and avoid unexpected errors.
3.2 parsecs

Travel
| |
| | khromov.se

In this blog post we'll go over a lesser documented but powerful part of SvelteKit - event.locals. Locals are a way to register trusted, server-side, per-request state. The most common use case for locals is to associate some type of data with the current request. Example use cases for locals are: Since locals are per-request, they don't leak between requests, and disappear immediately when the request has been delivered to the user. Locals are common in other frameworks - you might already be familiar w...
1.8 parsecs

Travel
| |
| | til.simonwillison.net

I learned this trick today while browsing the code of Blacklite , a neat Java library for writing diagnostic logs to a SQLite database.
17.2 parsecs

Travel
|