React Postgres Components
Briefly

Using esbuild and PLV8 (a Postgres extension that embeds V8), the functions in the rpc/ folder are bundled and inserted into Postgres as part of the Vercel deployment process.
The function source is extended with a minimalist yet useful runtime: A sql template tag literal that wraps plv8.execute, A TextEncoder polyfill fittingly named fastestsmallesttextencoderdecoder, A console polyfill that buffers logs and returns them as part of the rpc protocol so that they end up in the app logging context.
Read at An experiment of deploying functions directly inside Postgres
[
add
]
[
|
|
]