Sota Misaki Writing

A Terminal-Style Link Page

November 4, 2026

I published me.sotamisaki.com on November 5, 2026. It is a link page — the kind of thing that usually lists a few buttons — except it is a fake terminal. You type ls, cat links.txt, open github, or run something silly like sl and matrix.

It is a toy, but a few parts of it are reusable ideas. This post walks through them.

What it is

Try help first. Then ls, cat readme.md, tree, neofetch, links.

One data tree, two interfaces

The part I like most: the files you see with ls are also real files on the web.

// src/data/files.ts
export const files = {
  "readme.md": "# Sota Misaki ...",
  "links.txt": "GitHub    https://github.com/...",
  projects: { /* one .md per project */ },
}

The shell reads this tree for ls, cat and cd. A single catch-all route turns the same tree into static files at build time:

// src/pages/[...path].ts
export const getStaticPaths = (() =>
  flatFiles().map(([path, body]) => ({ params: { path }, props: { body } }))
) satisfies GetStaticPaths

export const GET: APIRoute = ({ props }) =>
  new Response(props.body + "\n", {
    headers: { "content-type": "text/plain; charset=utf-8" },
  })

So cat links.txt in the terminal and curl https://me.sotamisaki.com/links.txt always return the same thing. There is no second copy to keep in sync, and people who prefer curl to a browser get a clean plain-text answer.

Two small details make this work well:

ask: on-device AI grounded in open data

The most experimental command is ask. It answers questions about me using the AI model built into Chrome, so nothing is sent to an AI API.

❯ ask what does Sota work on?

It uses Chrome’s Prompt API (LanguageModel), which runs Gemini Nano locally. The flow:

  1. Fetch my open data from https://sotamisaki.com/data/me.json.
  2. Turn it into prompt sections in priority order: profile, experience, skills, projects, blog posts.
  3. Create a session with that text as the system prompt, and tell the model to use only those facts and say “I don’t know” otherwise.
  4. Stream the answer back into the terminal.

A few lessons from building it:

The model can still be wrong, so every answer ends with a note that it was generated on-device and may be inaccurate. Grounding it in structured data makes it much better than asking a model with no context, but it is not a guarantee.

To try it you need desktop Chrome with the Prompt API and Gemini Nano available. Other browsers just show the hint.

Small things I enjoyed

Tips if you want to build your own

  1. Start from a single source of truth. Define your links and profile once, and derive the terminal, the plain-text files and the metadata from it.
  2. Publish plain-text versions. It costs one catch-all route and makes the site useful to scripts and AI tools.
  3. Respect motion and keyboard users. Gate animation on prefers-reduced-motion and give interactive elements a visible focus style.
  4. Treat on-device AI as progressive enhancement. Feature-detect, show progress, and have a graceful message when it is unavailable.
  5. Budget your prompt. Prioritize your data, then trim from the bottom until it fits.