Cloudflare has open-sourced its internal UI framework, cf-ui, built on React and Redux. This framework includes over 50 packages with dozens of components, utilities, and test helpers. It utilizes Lerna for managing a multi-package repository structure, enabling independent versioning and code sharing. The framework introduces 'builder' components that can be directly tied to Redux state, simplifying integration. It also includes integrated test utilities for Mocha, Sinon, and Redux, and wraps external APIs to allow for confident changes to underlying modules. Accessibility improvements were a key focus during the rewrite, with open-sourced libraries for keyboard navigation and focus management.
All Cloudflare trails