r/nicegui • u/falko-s • Aug 12 '26
NiceGUI 3.16.0 with modular 3D scene objects, CodeMirror line anchors, security fixes and lots of bugfixes
Security
- ⚠️ Prevent unauthenticated memory exhaustion via clients leaked on socket disconnect
- ⚠️ Prevent XSS via prop injection in
ColorPicker.set_color()andui.color_input
New features and enhancements
Refactor
ui.sceneto a modular object system, supporting custom three.js objects and fixing the whiteaxes_helperregressionBreaking change: The following patterns are deprecated and will be removed in NiceGUI 4.0 (they still work but emit a one-time warning): importing from
nicegui.elements.scene.scene_objects(usenicegui.elements.scene.objectsinstead), subclassingObject3Dwithout acomponent=argument, instantiating objects with a leading type string likeObject3D('group'), and theObject3D.dataandObject3D.typeproperties.- Add line-anchor tracking to
ui.codemirror, giving you stable references to specific lines that survive edits - Add
h2,h3,h4,h5andh6HTML elements - Sync
ui.table's fullscreen state back to the server when toggled from the client - Avoid downloading an unused font subset for the connection-lost popup's warning glyph
- Remove dead props from
ui.chip,ui.carousel_slideand theui.dateinput
Bugfixes
- Fix error when a repeating
ui.timer's client is deleted while waiting for the connection - Fix task leak by resolving awaited
ui.dialogs when they are deleted - Fix On Air reconnect when the relay silently drops the connection while Socket.IO's connected flag is stale
- Route mouse-button and
exactmodifiers of generic events correctly and preserve hyphenated key modifiers - Disconnect resize observers of
ui.headerandui.echartand document key listeners ofui.keyboardwhen the element is unmounted - Remove bindings when a
ui.sceneObject3Dis deleted and guard "dragend" events against deleted objects - Fix Redis storage so key deletions propagate across instances
- Fix
element.move()orphaning an element when the target slot is invalid and guard against moving an element into its own descendant - Handle parameter coercion errors in
ui.sub_pagesbuilders like builder errors - Fix error reporting when an async
ui.sub_pagesbuilder raises after its client has been deleted - Clean up the spilled temporary file when a
ui.uploadfails mid-transfer - Remove leaked auto-generated route when switching an element's source away from a local file
- Fix
ui.uploadunregistering the application's route instead of its own auto-generated route on delete - Support URL-encoded data-URL favicons
- Fix
ui.color_inputcrashing when the value isNonewith preview enabled - Fix
ui.number'sout_of_limitsraising aTypeErrorwhen the value isNone - Fix
ui.line_plot'spushcrashing on empty data with automatic limits - Fix lost "done" decoration when navigating a
ui.stepperbyStepobject - Fix
Event.emitted()timeout handling on Python 3.10
Documentation
- Document Socket.IO
client_idforging as a commonly misreported security pattern and explain which random IDs are secrets - Never show a fabricated GitHub star count on the website by baking it in at deploy time
- Fix ChromeDriver install instructions for Linux in tests/README.md
- Prefer behavior tests over tests coupled to implementation details in CONTRIBUTING.md
- Fix broken DiscoLike sponsor logo on the website
- Add pointer cursor to the
ui.popupdemo's anchor label - Fix
ui.pagination'sdirection_linksdocstring
Testing
- Add scoped
Userlookups and a pytest example
Dependencies
- Update echarts-gl to 2.1.0
- Move the lxml security pins to the website dependency group
Infrastructure
- Keep JavaScript source maps out of the wheel
- Add a Windows CI leg for the storage file-lock tests
Special thanks to our top sponsors DiscoLike Inc., TestMu AI and Lechler GmbH ✨
and all our other sponsors and contributors for supporting this project!
🙏 Want to support this project? Check out our GitHub Sponsors page to help us keep building amazing features!