Blog

#Frontend

Posts tagged #Frontend

WebMCP: how your page talks to an AI agent through navigator.modelContext

WebMCP: how your page talks to an AI agent through navigator.modelContext

navigator.modelContext still returns undefined, but behind that word hides a new way for the web to expose tools straight to an agent — no server. Turn on the flag, register a tool, and test it.

Jakub Kontra
Jakub KontraDeveloper
CSS Grid Lanes — masonry in CSS without a single line of JS

CSS Grid Lanes — masonry in CSS without a single line of JS

Pinterest layout used to mean Masonry.js or CSS columns with broken reading order. display: grid-lanes changes that — native masonry with a two-line @supports fallback.

Jakub Kontra
Jakub KontraDeveloper
Why Your Website Should Serve Markdown to AI Agents

Why Your Website Should Serve Markdown to AI Agents

AI agents waste tokens parsing your navbars and cookie banners. I built an open-source library called next-markdown-mirror that fixes this — and it costs $0.

Jakub Kontra
Jakub KontraDeveloper