frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Prefab – A generative UI framework for Python

https://prefab.prefect.io/docs/welcome
3•jlowin•1h ago
Hi HN,

I'm the author of FastMCP, the most popular Python framework for building MCP servers. I've been really excited about MCP Apps for a while. I think letting a server ship a fully interactive UI directly into the conversation is one of the most compelling additions to the protocol.

I wanted to make this a first-class experience in FastMCP, but I kept getting stuck on what it actually means for a Python framework to integrate with a frontend feature. The JavaScript ecosystem has extraordinary tooling for this. I didn't want to build a worse version of it just to stay in Python.

What changed my thinking was looking at how MCP is actually deployed. Most people think of it as a way to reach customers, but what we overwhelmingly see is companies using MCP internally — replacing dashboards, workflows, and internal tools. And for that, Python developers don't need the full JS ecosystem and its polished, branded, custom frontends. What they need is a way to compose the right components and data bindings.

So we built Prefab. It's a generative UI framework with 100+ shadcn components that you compose using Python context managers. It serializes to a JSON protocol that renders as a real React application, with full client-side interactivity, reactive state, actions, and no JavaScript required. And because context managers have no closing tags, a partial Prefab script is already a valid UI, which means an agent can stream an interface to the renderer as it generates, without waiting for the full program to complete.

Prefab is built right into FastMCP 3.2, but Prefab Apps can also run standalone or against any REST backend (like FastAPI).

Docs: https://prefab.prefect.io

Try the playground (no install required): https://prefab.prefect.io/docs/playground

GitHub: https://github.com/PrefectHQ/prefab

AI and the Human Voice

https://gilest.org/notes/2026/human-ai/
1•avernet•50s ago•0 comments

Edalex Celebrates Double Recognition at 2026 EdTech Cool Tool Awards

https://www.edalex.com/news/edalex-rich-skill-descriptor-rsd-library-openrsd-integrated-new-muzzy...
1•edalex•2m ago•1 comments

Codex overtakes Claude Code to become #1 AI coding tool (April 2026)

https://ai-coding.info/en
1•kotauchisunsun•4m ago•0 comments

I wrote a WebAssembly plugin system for my Wayland compositor

https://www.youtube.com/watch?v=Kohl9wy3S7g
1•matthewkosarek•4m ago•0 comments

0x021 – Durable Workflows

https://unzip.dev/0x021-durable-workflows/
1•vismit2000•6m ago•0 comments

Ask HN: Deterministic codebase maps vs. LLM inferred knowledge graphs?

1•IxInfra•12m ago•1 comments

Ask HN: Why don't frontier AI model providers continuously improve their models?

1•jballanc•12m ago•0 comments

The brazen rightwing plan to conquer American schools

https://www.theguardian.com/education/ng-interactive/2026/apr/08/prageru-university-conservatism
5•jethronethro•16m ago•0 comments

Show HN: Ptoe.org

https://periodictableofelements.org/
1•nadermx•18m ago•0 comments

Giving LLMs a Formal Reasoning Engine for Code Analysis

https://yogthos.net/posts/2026-04-08-neurosymbolic-mcp.html
1•zdw•18m ago•0 comments

ServerCrate – Zero-knowledge Restic backup hosting, from $15/mo

https://servercrate.net/
1•rambooon•20m ago•0 comments

New PC Gaming Handheld Canceled Due to Soaring Storage Prices

https://kotaku.com/new-pc-gaming-handheld-would-have-to-cost-4000-because-of-storage-prices-so-it...
1•PaulHoule•21m ago•0 comments

Trump administration orders dismantling of the U.S. Forest Service

https://www.hatchmag.com/articles/trump-administration-orders-dismantling-us-forest-service/7716263
33•dxs•22m ago•2 comments

Show HN: A simple no bloat character checker

https://charchec.netlify.app/
1•xppexx•23m ago•0 comments

Bevy game development tutorials and in-depth resources

https://taintedcoders.com/
1•GenericCanadian•25m ago•0 comments

Newly created Polymarket accounts win big on well-timed Iran ceasefire bets

https://www.theguardian.com/business/2026/apr/08/polymarket-trump-us-iran-ceasefire
8•mitchbob•28m ago•0 comments

Japan lessens privacy laws to become "The easiest county to develop AI in"

https://www.theregister.com/2026/04/08/japan_privacy_law_changes_ai/
3•Muhammad523•29m ago•0 comments

You Can Just Print an Air Purifier

https://aftermath.site/3d-printing-air-purifier-corsi-rosenthal/
1•zdw•29m ago•0 comments

Show HN: BakaBags, a tsundere AI that roasts yours Solana wallets

https://bakabags.xyz
1•massanishi•30m ago•0 comments

Layoff Thinking

https://blogs.newardassociates.com/blog/2026/layoff-thinking.html
1•zdw•31m ago•0 comments

Interview: EmDash, a CMS built on Astro with sandboxed plugins

https://www.youtube.com/watch?v=K8QvgXe9z-A
1•emot•33m ago•0 comments

Show HN: LadderRank: Rank anything with ELO ratings

https://ladderrank.app/ladder/77DTlDNxd2dsbmAAMO7o8/vote
1•douglaswlance•36m ago•0 comments

Stanley Jordan's Two-Handed Technique [video]

https://www.youtube.com/watch?v=ldT6yTralvk
1•sbuttgereit•38m ago•0 comments

Account Verification for Windows Hardware Program Begins October 16, 2025

https://techcommunity.microsoft.com/blog/hardware-dev-center/action-required-account-verification...
2•TiredOfLife•40m ago•0 comments

Ask HN: Advice for college grads starting careers in the AI era?

1•LostMyLogin•42m ago•2 comments

Little Snitch for Linux – Because Nothing Else Came Close

https://obdev.at/blog/little-snitch-for-linux/
3•Cider9986•44m ago•1 comments

Store Your Taxes in Git

https://blog.foks.pub/posts/store-your-taxes-in-git/
2•todsacerdoti•51m ago•0 comments

Claude Glass (Or Black Mirror)

https://en.wikipedia.org/wiki/Claude_glass
3•sram1337•52m ago•0 comments

Building a JavaScript runtime in one month

https://themackabu.dev/blog/js-in-one-month
1•franciscop•53m ago•0 comments

LittleSnitch for Linux

https://obdev.at/products/littlesnitch-linux/index.html
60•pluc•58m ago•25 comments