@biqpod/app
v0.4.1
Published
Biq Pod UI For Desgine π¦
Readme
Biq Pod UI Library
A comprehensive React-based UI library and application framework for building modern web and desktop applications.
π Features
- Rich Component Library: 70+ pre-built React components
- Multi-platform Support: Web, Desktop (Electron), and Mobile (Capacitor)
- Theme System: Built-in dark/light theme support with customizable colors
- Internationalization: Multi-language support with easy translation management
- Type-safe: Full TypeScript support
- Modular Architecture: Tree-shakeable components and utilities
π¦ Installation
npm install @biqpod/appποΈ Project Structure
src/
βββ core/ # Core application logic and infrastructure
β βββ app/ # Application setup and initialization
β βββ config/ # Configuration files and constants
β βββ models/ # Data models and business logic
β βββ services/ # External services and APIs
β βββ store/ # State management (Redux store)
βββ shared/ # Reusable components and utilities
β βββ ui/ # UI components and layouts
β β βββ components/ # Reusable UI components
β β βββ layouts/ # Layout components
β β βββ styles/ # SCSS/CSS styles
β βββ hooks/ # Custom React hooks
β βββ utils/ # Utility functions
β βββ types/ # TypeScript type definitions
β βββ functions/ # Utility functions
β βββ assets/ # Static assets (images, fonts, etc.)
βββ features/ # Feature-specific modules
βββ auth/ # Authentication feature
βββ demo/ # Demo pages and examples
βββ settings/ # Settings management
βββ notifications/ # Notification systemπ Read the Architecture Guide for detailed explanations of the new structure.
π¦ Getting Started
Basic Usage
import { Button, Card, Input } from "@biqpod/app/components";
import { startApplication } from "@biqpod/app/app";
const MyApp = () => (
<Card>
<Input placeholder="Enter your name" />
<Button>Submit</Button>
</Card>
);
// Start the application
startApplication(<MyApp />, {
isDev: process.env.NODE_ENV === "development",
projectId: "your-project-id",
});Available Packages
Core Modules:
@biqpod/app/core- Core application logic and services@biqpod/app/core/app- Application initialization@biqpod/app/core/services- API services and integrations
Shared Modules:
@biqpod/app/shared/ui/components- UI components@biqpod/app/shared/ui/layouts- Layout components@biqpod/app/shared/hooks- Custom hooks@biqpod/app/shared/utils- Utility functions@biqpod/app/shared/types- TypeScript types
Legacy Compatibility:
@biqpod/app/components- UI components (mapped to shared/ui/components)@biqpod/app/hooks- Custom hooks (mapped to shared/hooks)@biqpod/app/utils- Utility functions (mapped to shared/utils)@biqpod/app/layouts- Layout components (mapped to shared/ui/layouts)@biqpod/app/types- TypeScript types (mapped to shared/types)
π¨ Components
Form Components
- Input, TextArea, Button
- DateField, ColorField, FileField
- ArrayField, ObjectField, EnumField
- Form validation and management
Layout Components
- Card, Panel, Tabs
- Grid, Flex utilities
- Responsive layouts
Data Display
- List, Tree, Table
- Charts and visualization
- Loading states
Navigation
- Router integration
- Breadcrumbs, Menu
- Command palette
π§ Development Scripts
# Development server
npm run dev
# Build library
npm run build.lib
# Build web app
npm run build.web
# Type checking
npm run compile
# Linting
npm run lint
# Testing
npm run e2eπ Platform Support
Web
Standard web application deployment with Vite.
Desktop (Electron)
npm run build.electronMobile (Capacitor)
Supports iOS and Android via Capacitor integration.
π― Configuration
The library supports extensive configuration through the startApplication function:
startApplication(<App />, {
isDev: boolean,
projectId: string,
timeLoading: number,
onPrepare: () => ({
colors: Color[],
settings: Setting[],
commands: Command[],
translations: Translation[]
})
});π Documentation
π€ Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
π License
MIT License - see LICENSE.md for details.
