Sign in

Neil 🐧

@nook.sh
110 followers 316 following 50 posts

Still figuring out how to introduce myself this year. Following closely anything related to @vuejs.org @nuxt.com or @unjs.io Currently learning Korean 🇰🇷 @_nooooook on Twitter 🐦

PostsRepliesMedia
Neil 🐧 @nook.sh · 05/01/2026
Missed him so much ❤️ (Banana for scale)
Big (not fat) cat with a banana on him.
010
Neil 🐧 @nook.sh · 20/11/2024
Need to replace that one dangling cable behind the screen because it's too short, and the two below are ethernet and main power cable. Pretty happy of the result.
Picture of my desk. 2 x 27'' QHD screens on a 160x80cm desk. Cable management behind the screens. Cable management under the desk
000
Neil 🐧 @nook.sh · 14/11/2024
Same vibe as this meme hahahaha
010
Neil 🐧 @nook.sh · 12/11/2024
Forgot the second screenshot:
A preview of the viewer in the devtools
000
Neil 🐧 @nook.sh · 12/11/2024
Update: you can also use @rphlmr.com 's visualizer (which seems cooler than mine tbh) with the following piece of code. I'm not sure there is a need to create a Nuxt module for that, or maybe I could create one to pass options to the viewer (and also embed Drizzle studio at the same time !)
import { addCustomTab, startSubprocess } from "@nuxt/devtools-kit";
import type { Nuxt } from "nuxt/schema";
import { consola } from "consola";

export function setupDrizzleVisualizer(nuxt: Nuxt) {
  const { getProcess, terminate } = startSubprocess(
    {
      command: "npx",
      args: ["drizzle-lab", "visualizer", "--port", "64738"],
      env: {
        NODE_ENV: "production",
      },
      cwd: nuxt.options.rootDir,
    },
    {
      id: "nuxt-drizzle-lab--visualizer",
      name: "Drizzle Visualizer",
    },
  );
  const { stderr, stdout } = getProcess();

  stdout?.on("data", (data) => {
    consola.log("`Drizzle:`", data.toString());
  });

  stderr?.on("data", (data) => {
    consola.error("`Drizzle:`", data.toString());
  });

  addCustomTab({
    name: "dizzle-visualizer",
    title: "Drizzle Visualizer",
    icon: "simple-icons:drizzle",
    view: {
      type: "iframe",
      src: "http://127.0.0.1:64738",
    },
  });

  nuxt.hook("close", () => terminate());
}
240
Neil 🐧 @nook.sh · 12/11/2024
So ... I made a thing for @nuxt.com. Don't know when it will be ready tho 🙄
5371
Neil 🐧 @nook.sh · 11/11/2024
Haven't posted my cat yet, so there he is! I love him so much His name is Lumo because "J'ai appelé mon chat Lumo"
My cat, his head lying on a table, with a duck in the backgroundMy cat looking at meMy cat hugging a tree
010