惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
Google Developers Blog
阮一峰的网络日志
阮一峰的网络日志
IT之家
IT之家
人人都是产品经理
人人都是产品经理
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 【当耐特】
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
博客园 - 叶小钗
罗磊的独立博客
宝玉的分享
宝玉的分享
月光博客
月光博客
V
V2EX
博客园 - 司徒正美
Vercel News
Vercel News
量子位
Y
Y Combinator Blog
美团技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Tailwind CSS Blog
博客园 - Franky
小众软件
小众软件
I
InfoQ
A
About on SuperTechFans

HN's home page

Rainbow Query Language | Hacker News Exec into Node via Kubectl An AI native hedge fund The Seven-Action Documentation Model | Hacker News Package Manager for Kubectl Plugins Tongan Castaways | Hacker News Tech overlords plan for conscious AI to conquer the cosmos. What could go wrong? Data Breach Disclosure Lag Is Getting Worse How LLMs Work | Hacker News I Dropped PRDs for Shape Up Go Experiments Explained | Hacker News FCA's Palantir deal could expose UK financial data to Trump's US, critics fear WebXR BCI for Neural-Adaptive Avatar Control in Mixed Reality The first murder conviction via DNA analysis Tom Interviews Theo de Raadt of the OpenBSD Project (2019) [video] Show HN: Replace shell commands with bun shell typescript scripts Quay.io Is Down | Hacker News AI driven analysis of brokerage account fees in the UK Bill Gates Spent Years Crafting His Image. Now It's Cracking Using LLMs to secure source code Wi-Fi 8 in the Lab [video] The household battery revolution that could change energy bills and the world Is Python Becoming Pinyin? | Hacker News Livia – Executive Assistant | Hacker News FindMyPipe – Query Apple Find My from Linux for AI Agents Show HN: Agent skill for creating product launch videos with Remotion RecruitMyself – AI job search copilot for resumes and applications AI coding agents and the erosion of system understanding The 'Resting' Generation and South Korea's Youth Recession AMD Computex 2026: 10 Years of AM4, AM5 Support Through 2029
Show HN: CoshUI – A back end-agnostic UI engine for Pytho...
jylefv · 2026-06-20 · via HN's home page

CoshUI is a UI engine that's built to wrap around different game frameworks and easily slot into existing game loops. It is backend-agnostic, meaning the same UI code runs across different frameworks and graphics bindings with minor visual discrepancies.

The current supported backends are Pygame, Raylib, PyOpenGL, and ModernGL, switching backends is a one parameter change (PygameBackend(screen) to RaylibBackend() and etc.) the UI code stays identical.

To note, CoshUI technically acts like an immediate-mode UI library, but it takes a page out of React's book and reconciles state per frame, which lets it function like a retained-mode system.

Its features include: - An API that uses context managers for the "declarative" feel - A built-in interaction system through "signals" - An animation system through tweens - Custom and pre-made themes - Styling Nodes as you want - and more

CoshUI is a project I've been working on for a little less than 2 months, I started it by wanting to research UI systems for another lower-level project I'm working on that eventually grew too big in idea that I just had to publish it.

I would love feedback on not just the code, but also the API design, which was the main reason for this "research".

Reminder that this project is extremely young, I'm a self taught solo developer making all of this (the project and the documentation) in my free time before freshman year of college. There's a lot I probably missed, better and cleaner ways in doing things, and many features that could elevate the project. But it's ultimately learning material, and I would be grateful if you guys gave some thoughts on it.

Repository: https://gitlab.com/jylefv/CoshUI (Primary) https://github.com/JyleFV/CoshUI (Mirror)

Documentation: https://terrarizer03.github.io/coshui-docs (there are unfinished pages)

Installation: [pip install coshui]