Skip to content
joinery / catalog

@joinery/portfolio

Xifré Font's personal site: the five rules, the method behind them, the project maps and the work they produced. It shows what the developer portal builds, without building any of it.

🪪 @joinery/portfolio

Xifré Font's personal site: the five rules, the method behind them, the project maps and the work they produced. It shows what the developer portal builds, without building any of it.

Development

CommandWhat it does
pnpm dev portfolioStart the site, from the workspace root
pnpm exec nx build-static @joinery/portfolionuxt build --prerender, the build that deploys
pnpm exec nx test:e2e @joinery/portfolioPlaywright over the build: axe in light and dark, keyboard, motion, SEO tags, sitemap
  • build delegates to build-static, so CI builds what deploys.
  • With NUXT_PUBLIC_DATA_URL unset, as it is locally and in CI, every page renders without figures or maps.

The portal's payload

Every count, map and benchmark comes from the portal's /embed/data.json, fetched at build from NUXT_PUBLIC_DATA_URL through useSiteData.ts. The portal README lists the keys, and SiteData types them.

  • A figure is as fresh as the portal's last deploy.
  • Set but unreachable, the URL fails the prerender rather than shipping a page without figures.
  • Each composable is its own cut under its own key, so a page's payload carries only what it shows.
  • A link into the portal goes through portalUrl, since a path alone would 404 here. A live.href path in content/work/ is read the same way.

Structure

PathWhat lives there
app/pages/Front page, Method, About, Project maps (/agentic-workflows), Work and its case studies
app/components/The sections those pages share, and the workflow map and glyph
content/work/One markdown file per Work entry: the frontmatter holds the facts, the body the case study's story, and caseStudy: false marks a tool that links straight to its live URL
app/assets/work/Case-study screenshots at 1440 × 900, served as WebP at 480, 960 and 1440 px
i18n/locales/en.jsonThe copy; rules holds the five rules both the front page and Method number

Deploy

deploy-portfolio.yml runs after each successful portal deploy, or by hand. It downloads that run's developer-portal-site artifact, serves it on localhost so the prerender can fetch /embed/data.json, copies it into .output/public/portal/, and publishes both to the xifre-dev Cloudflare Pages project with wrangler pages deploy. Cloudflare only hosts.

  • A run by hand takes the artifact from the portal's last successful master deploy.
  • The site is served from the root of SITE_URL in nuxt.config.ts, which canonical, sitemap and share-image URLs are built on.
  • NUXT_PUBLIC_REPO_URL is baked in at build time, derived by the workflow.

Search and speed

ConcernWhere
Title, description, canonical, OGuseSeoMeta on each page; nuxt-seo-utils signs the title with the site name
Share imagepublic/og-image.png (1200×630) by default; a case study uses its own screenshot, cropped to that size
Structured dataA Person identity in schemaOrg
First paintStyles inlined; no script preload or chunk prefetch; links prefetch on interaction
HydrationDeferred to load or the first input by deferHydration.ts, copied from huella-legal; a click made before then is replayed
Page changesPages rise in; a title or screenshot named with carried() flies to its namesake on the next page
Visitor ↔ DevThe view switch reveals the other app in a circle from the click, a cross-document view transition run by siteReveal.js; it needs the portal on this origin at /portal/, and hovering the switch prerenders it

Boundaries

type:app, scope:portfolio. Depends only on @joinery/configs; nothing depends on it.