frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

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

https://asyncfast.readthedocs.io/en/latest/
1•jackwburridge•1h ago
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.

The K-Shaped Future of Software Engineering

https://www.ian.so/writing/k-shaped-future-software-engineering
1•ian_dot_so•2m ago•0 comments

Body Censorship

https://www.youtube.com/watch?v=FcpRrytvYYo
1•barrister•2m ago•0 comments

AI diagram looks great and nobody will read it

https://jpcaparas.medium.com/your-ai-diagram-looks-great-and-nobody-will-read-it-f1e34fe9c8f1
1•birdculture•3m ago•0 comments

Nvidia helped DeepSeek hone AI models later used by China's military

https://www.reuters.com/world/china/nvidia-helped-deepseek-hone-ai-models-later-used-by-chinas-mi...
2•DustinEchoes•5m ago•0 comments

Major grid operator for Pa., East Coast predicts energy shortfall by mid-2027

https://www.spotlightpa.org/news/2026/01/pjm-grid-short-fall-power-plants-data-centers-environment/
1•bikenaga•7m ago•0 comments

A Mild Take on Coding Agents

https://meelo.substack.com/p/a-mild-take-on-coding-agents
2•milowata•8m ago•0 comments

Show HN: A constraints based IaC decision tool

https://whichiac.com
1•batemanchris•8m ago•1 comments

Common Lisp Extension for Zed

https://github.com/etyurkin/zed-cl
1•mike_ivanov•9m ago•0 comments

The K-Shaped Future of Software Engineering

https://twitter.com/ian_dot_so/status/2013316676637294890
1•mji•10m ago•0 comments

Claude Code hacks its way to success

https://www.theeggeadventure.com/2026/01/recovering-ssh-on-a-headless-raspberry-pi-through-a-priv...
1•brother_corp•14m ago•0 comments

Ask HN: How do you measure AI adoption within your teams? (Best Practices)

1•nemath•14m ago•0 comments

Show HN: LSP and Grammar for HTML and Mustache Templates

https://github.com/reteps/tree-sitter-htmlmustache
1•spicypete•16m ago•0 comments

Show HN: A novel pattern for handling in-flight requests in distributed caches

https://www.infoq.com/articles/durable-objects-handle-inflight-requests/
1•gkoos•17m ago•0 comments

Trump voters support military intervention in more countries

https://www.politico.com/news/2026/01/28/trump-is-threatening-strike-iran-his-supporters-wouldnt-...
3•doctor_radium•17m ago•2 comments

Reframing Agents: Why I Don't Think Agents Are the Future of AI Software

https://valtetu.framer.website/blog/reframing-agents
2•valtetu•18m ago•1 comments

SeqMem – New update. Specified details. V2

https://drive.google.com/file/d/1PgAdnsFrHaataORGucauLjLbn-jkLp42/view?usp=drive_link
1•goofgef•19m ago•0 comments

Haskell Hangman (Surveillance)

https://www.youtube.com/watch?v=bGHMET8knv4
1•barrister•21m ago•0 comments

Elon Musk's SpaceX, Tesla, and xAI in talks to merge, according to reports

https://techcrunch.com/2026/01/29/elon-musk-spacex-tesla-xai-merger-talks-ipo-reuters/
5•gfortaine•21m ago•2 comments

In car safety, why some companies merely meet a standard and others exceed it

https://anderson-review.ucla.edu/in-car-safety-why-some-companies-merely-meet-a-standard-and-othe...
1•hhs•22m ago•0 comments

I Hope This Email Finds You Before I Do

https://www.lastweekinaws.com/blog/i-hope-this-email-finds-you-before-i-do/
1•dabinat•23m ago•0 comments

Nvidia PersonaPlex: Natural Conversational AI with Any Role and Voice

https://research.nvidia.com/labs/adlr/personaplex/
2•smusamashah•24m ago•0 comments

A lock-free, high-performance IPC channel inspired by Firedancer's Tango

https://crates.io/crates/rust-tango
1•amineelqaraoui•24m ago•0 comments

Show HN: GitViral – Turn technical READMEs into social media threads

https://git-viral.vercel.app
1•Helios999•25m ago•1 comments

Transport for London Interchange Signs Standard [pdf]

https://content.tfl.gov.uk/tfl-interchange-signs-standard.pdf
1•susam•25m ago•0 comments

Original Oil Painting

https://twitter.com/i/status/1902923432997658918
1•barrister•26m ago•2 comments

RlmUI- the HTML/CSS User Interface Library

https://github.com/mikke89/RmlUi
1•kreco•26m ago•0 comments

Bluesky 2025 Transparency Report

https://bsky.social/about/blog/01-29-2026-transparency-report-2025
1•emschwartz•27m ago•0 comments

How do you surface real confidence before execution?

https://www.cognu.app/confidence-check
1•anticlickwise•28m ago•2 comments

Sasha

https://twitter.com/i/status/1962525429530525967
1•barrister•28m ago•1 comments

Simpler Declarative Project Setup with Mill 1.1.0

https://mill-build.org/blog/17-simpler-jvm-mill-110.html
1•lihaoyi•29m ago•0 comments