ui

Dependency policy and audit

Beyond-UI keeps runtime dependencies minimal and uses optional peer dependencies for features that not every app needs. This document summarizes the current state and the policy.

Required dependencies

Peer dependencies (required in consuming app when used)

Dev dependencies

All Storybook, testing, type, and build tools are devDependencies. They are not installed when consumers install @unicornlove/beyond-ui.

Policy

  1. No required heavy runtimes – No theme compiler, charting lib, rich-text editor, or map library as a required dependency.
  2. Optional/peer for platform or feature-specific libs – React Native, Reanimated, Gesture Handler, and Safe Area are optional peers so web-only or minimal apps don’t pay the cost.
  3. react-native-svg – Currently a required peer for chart and SVG-based components. Making it optional would require runtime checks and fallbacks; for now it remains peer (and many RN apps already have it).
  4. New features – Prefer optional or peer dependencies for new capabilities (e.g. maps adapter, rich text, DnD). Document in this file when adding.

Summary table

Package Type Optional Used for
react peer No Core
lucide-react-native direct No Icons
react-native peer Yes RN-only features
react-native-svg peer No Charts, SVG icons
react-native-reanimated peer Yes Advanced animation
react-native-gesture-handler peer Yes Gestures
react-native-safe-area-context peer Yes Safe areas

This audit reflects the state as of the last update. When adding or changing dependencies, update this file and keep optional/peer usage for anything that isn’t needed by every consumer.