finds.dev← search

// the find

dot-agent/nextpy

★ 2,340 · Python · Apache-2.0 · updated May 2024

🤖Self-Modifying Framework from the Future 🔮 World's First AMS

Nextpy is a Python fullstack framework that compiles to React/FastAPI, positioned as a Streamlit replacement with better performance and an LLM-aware prompt engine. It targets developers who want to build AI-powered web apps in pure Python without touching JavaScript. The 'self-modifying software' framing is largely marketing — the actual product is closer to Reflex with prompt engineering utilities bolted on.

The compile-time prompt pre-processing idea is genuinely interesting — batching output tokens into prompt tokens is a real optimization for open-source models. The 4-10x perf claim over Streamlit is plausible given Streamlit's architecture, and the PageSpeed 99 screenshot suggests the compiled output is actually lean. The app examples are concrete and runnable, covering CRUD, charting, chat, and mapping — not just toy demos.

Last commit was May 2024; the README itself says it's still in 'just for friends' stage — this is effectively abandoned before it shipped v1. The KV cache and speculative sampling features are marked 'WIP' or 'only for open-source models', meaning the headline prompt engine benefits don't apply if you're using OpenAI or Anthropic. The architecture is a fork of Reflex, which means you inherit Reflex's WebSocket-for-everything state model — fine for demos, genuinely painful to debug under load.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →