タグ

2024年1月16日のブックマーク (2件)

  • React Postgres Components

    An experiment on deploying remote functions that run inside Postgres using v8, run React SSR, and are easily defined in a rpc/ directory: rpc/hello-world.tsx export default function helloWorld () => { const [{version}] = sql`SELECT version()`; // no `await` needed! return <h1>Hello from <em>inside</em> Postgres: {version}</h1>; }And then using them in frontend SSR like this: app/page.tsx import He

    React Postgres Components
    yosuke_furukawa
    yosuke_furukawa 2024/01/16
    はー面白い。PLV8っていうPostgresのプロシージャをv8(JS)で書くっていう拡張があって、それを使ってv8 エンジンで JS procedure を動かすと。で、それで rpc/ フォルダ内に置くと vercel deploy 時に rpc として create functionしてくれる
  • When "Everything" Becomes Too Much: The npm Package Chaos of 2024 - Socket

    Application Security When "Everything" Becomes Too Much: The npm Package Chaos of 2024 An NPM user named PatrickJS launched a troll campaign with a package called "everything," which depends on all public npm packages. Happy 2024, folks! Just when we thought we'd seen it all, an npm user named PatrickJS, aka gdi2290, threw us a curveball. He (along with a group of contributors) kicked off the year

    When "Everything" Becomes Too Much: The npm Package Chaos of 2024 - Socket
    yosuke_furukawa
    yosuke_furukawa 2024/01/16
    おもしろいけど、すごいこと考えるな。"全部"の npm package を依存したものを用意してみたらどうなるか。混沌が生まれたと。 npm で everything をインストールするだけでシステムリソース枯渇でDoSさせられる。