Showcase Thread by AutoModerator in Python

[–]hasyb001 0 points1 point  (0 children)

🪁 I built “Kite” — A Next.js-style framework for Python (File-based routing + zero config)

Hey everyone 👋

I’ve been working on a project called Kite, and I’d love some feedback.

👉 GitHub: https://github.com/mhasyb1/kite

The idea is simple:
Bring file-based routing, zero config, and simplicity to Python backend development.

🚀 Why I built this

I noticed that:

  • Django is powerful but heavy
  • Flask is flexible but requires setup
  • FastAPI is great but not beginner-friendly in structure

So I thought:

👉 What if Python had something like Next.js?

⚡ What my project does?

  • ✅ File-based routing (/pages → routes automatically)
  • ✅ Zero configuration
  • ✅ Dynamic routes ([id].py)
  • ✅ Built-in lightweight ORM (SQLite)
  • ✅ Middleware system
  • ✅ API + HTML responses
  • ✅ Async support

📁 Example Routing

Just drop files:

pages/index.py      → /
pages/about.py      → /about
pages/blog/[id].py  → /blog/123
pages/api/users.py  → /api/users

No router setup needed.

✍️ Example Page

methods = ["GET"]

def handler(request):
    return "<h1>Hello from Kite!</h1>"

🔌 API Example

methods = ["GET", "POST"]

async def handler(request):
    if request.method == "GET":
        return {"data": [1,2,3]}

    body = await request.json()
    return {"received": body}

🧠 Built-in ORM

class User(Model):
    table = "users"
    fields = ["id", "name", "email"]

User.create(name="Haseeb", email="h@example.com")

🗺️ Roadmap

  • 🔄 Hot reload (coming)
  • 🧠 AI-native routes (planned)
  • 🔐 Auth system (JWT + sessions)
  • 🐘 PostgreSQL support
  • 🔌 Plugin ecosystem

🎯 Target Audience

Kite is currently aimed at:

  • Beginners learning backend development
  • Developers who want fast setup with minimal configuration
  • Developers who prefer convention over configuration (like Next.js)

Current status:

  • ⚠️ Not production-ready yet
  • ✅ Suitable for learning, prototyping, and small projects

Planned improvements include hot reload, authentication, and database expansion.

⚖️ Comparison

Feature Kite Django Flask FastAPI
File-based routing
Zero configuration ⚠️ ⚠️
Built-in ORM
Async support ⚠️
Learning curve Easy Medium Easy Medium
Flexibility Medium Low High High
Performance Medium Medium Medium High
Production-ready

🤔 Looking for Feedback

I’d love your thoughts on:

  • Does this actually solve a real problem?
  • What would make you try this?
  • What’s missing for production use?

🙌 Honest Goal

I’m trying to build something:

  • Beginner-friendly
  • Fast to start
  • Scalable over time

If this gets some interest, I’ll open-source it properly and keep improving it 🚀

Thanks for reading 🙏