biowith

Demo

This is a demo page to test the i18n routing. You can switch between English and Chinese by changing the URL prefix.

https://biowith.me

Server Component · searchParams

In Next 16, searchParams is a Promise — await it. Reading it makes this route dynamically rendered.

  • name = biowith
  • tab = overview

Client Component · useSearchParams

name = biowith · raw = name=biowith&tab=overview

Client Component · fetchApi (v1 API)

fetchApi demo
Calls /api/v1/test through the shared client wrapper. Any code other than 200 pops an error toast automatically.

—

Click a button to see the unwrapped data.

Client Component · R2 direct upload

R2 direct upload
Pick a file → the API issues a presigned PUT URL → the browser uploads straight to Cloudflare R2. Images, PDF, TXT, Markdown (*.md), common video and archive formats (zip/7z/rar/tar/gz/bz2/xz/zst) are allowed, up to 50 MiB per file. Sign in at /login first; the bucket also needs a CORS rule allowing PUT from this origin.
No file selected.

Client Component · R2 batch upload

R2 batch upload
Pick several files → one API call signs every URL → the browser PUTs them straight to R2 with up to 3 parallel requests. Failed files can retry with the same token while it is still valid. Max 10 files per batch, 50 MiB each.

No files selected.

    Client Component · Cookie consent Drawer

    Bottom modal Drawer with a visible overlay. The trigger can be a button, plain text, or programmatic state.

    Client Component · dayjs local time

    One absolute instant, shown in your browser zone and in a fixed IANA zone. SSR renders UTC first; hydration swaps to the browser zone.

    Browser zone:

    Asia/Shanghai:

    UTC ISO: 2026-11-17T00:10:06.019Z

    Navigate with query