As

AsyncFast – a typed, message-driven framework inspired by FastAPI

Hacker News

AsyncFast – a typed, message-driven framework inspired by FastAPI

Hi HN, I've been working on AsyncFast, a Python framework for building message-driven APIs with FastAPI-style ergonomics. The goal is to let you write handlers once and run them unchanged across different brokers and runtimes (Kafka, SQS, MQTT, Redis, containers, Lambda, etc.). Under the hood it's built on a small spec (AMGI) that plays a similar role to ASGI, but for message-based systems instead of HTTP. Minimal example from asyncfast import AsyncFast from pydantic import BaseModel app = AsyncFast() class Payload(BaseModel): id: str name: str @app.channel("channel") async def handle_channel(payload: Payload) -> None: print(payload) Running it locally (Kafka example) pip install asyncfast amgi-aiokafka asyncfast run app:app kafka --bootstrap-servers localhost:9092 The same application code can be run against different brokers by swapping the runtime adapter. Key ideas: - broker-agnostic application code - explicit, typed address parameters / payloads / headers - portability between long-running consumers and serverless environments Docs: https://asyncfast.readthedocs.io Source: https://github.com/asyncfast/amgi AMGI: https://amgi.readthedocs.io This is still early and evolving - I'd be especially interested in feedback from people who've built Kafka or event-driven systems and had to deal with portability, or tight broker coupling issues.

Share card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: para · Missing: supports, reddit linkedin, podcasting
73%73% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: model, code, apis · Missing: mac, agents, macos
66%66% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide, io · Missing: https docs, excited, just released
51%51% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: para · Missing: mobile apps, ios, personal
46%46% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
23%23% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: host · Missing: plus, platform, intuitive
20%20% predicted probability of success on AppSumo, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Us
Usher – Golang REST framework inspired by K8s apimachinery52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Usher – Golang REST framework inspired by K8s apimachinery

Hacker News1
A
A framework inspired by rejecting React, that's less code61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A framework inspired by rejecting React, that's less code

Hacker News2
Du
Dumbo – Hono inspired framework for PHP65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Dumbo – Hono inspired framework for PHP

Hacker News76
Ra
Rails-Inspired PHP Framework45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Rails-Inspired PHP Framework

Hacker News28
Sp
Spiral 2.0 – A Coachella-inspired local message board app43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Spiral 2.0 – A Coachella-inspired local message board app

Hacker News6
Ka
KafkaLite – A simple message broker inspired by Kafka47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

KafkaLite – A simple message broker inspired by Kafka

Hacker News39
oo
oosh – Annotation-driven CLI framework for Bash50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

oosh – Annotation-driven CLI framework for Bash

Hacker News2
XK
XKCD-inspired StackSort52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

XKCD-inspired StackSort

Hacker News948
Ex
Experimental Hyperdocument System Inspired by Doug Engelbart51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Experimental Hyperdocument System Inspired by Doug Engelbart

Hacker News1
He
Heresy, a BASIC-inspired functional Lisp62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Heresy, a BASIC-inspired functional Lisp

Hacker News34