bosok-shared
v1.0.108
Published
Shared TypeScript library containing types, hooks, and API functions for Bosok frontends.
Readme
Bosok Shared
Shared TypeScript library containing types, hooks, and API functions for Bosok frontends.
Installation
npm installBuild
npm run buildDevelopment
npm run watchStructure
/src/types- TypeScript type definitions/src/api- API client and endpoint functions/src/hooks- React hooks using TanStack Query and Zustand stores
Usage in Frontend Apps
Install this package in your frontend applications:
npm install ../bosok-sharedThen import what you need:
import { useLogin, useAuthStore, User } from 'bosok-shared';Features
- API Client: Axios-based client with interceptors for auth
- TanStack Query Hooks: Pre-configured query and mutation hooks
- Zustand Stores: Global state management for auth and app settings
- TypeScript Types: Shared type definitions across all frontends
