@zayne-labs/toolkit v0.8.47
@zayne-labs/toolkit
A powerful collection of utility functions, types, and composables designed to accelerate development across various JavaScript/TypeScript projects. Built with modularity and type-safety in mind.
๐ฆ Packages
@zayne-labs/toolkit
- Umbrella package that includes all toolkit packages@zayne-labs/toolkit-core
- Core utility functions and helpers@zayne-labs/toolkit-type-helpers
- Advanced TypeScript type utilities and helpers@zayne-labs/toolkit-react
- React-specific hooks, utilities, and Zustand integrations
โจ Features
- ๐ฏ Modular design - Import only what you need
- ๐ Full TypeScript support with advanced type utilities
- โ๏ธ React hooks and utilities for common patterns
- ๐ Zustand store integrations and helpers
- ๐จ Zero runtime overhead for type utilities
- ๐ฆ Tree-shakeable exports
- ๐งช Thoroughly tested utilities
- ๐ Support for Vue, Svelte, and Solid coming soon!
๐ฅ Installation
# Using pnpm (recommended)
pnpm add @zayne-labs/toolkit
# Using npm
npm install @zayne-labs/toolkit
# Using yarn
yarn add @zayne-labs/toolkit
๐ Quick Start
// Core utilities
import { someUtil } from '@zayne-labs/toolkit/core'
// React hooks
import { useToggle } from '@zayne-labs/toolkit/react'
// React utilities
import { cn } from '@zayne-labs/toolkit/react/utils'
// Zustand utilities
import { createStore } from '@zayne-labs/toolkit/react/zustand'
// Type helpers
import type { Prettify } from '@zayne-labs/toolkit/type-helpers'
๐ ๏ธ Development
This project uses pnpm as the package manager. To get started with development:
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run development build
pnpm build:dev
# Run tests
pnpm build:test
# Lint code
pnpm lint:eslint
# Format code
pnpm lint:format
๐ Project Structure
toolkit/
โโโ packages/
โ โโโ toolkit/ # Main package that exports all utilities
โ โโโ toolkit-core/ # Core JavaScript/TypeScript utilities
โ โโโ toolkit-react/ # React-specific hooks and utilities
โ โโโ toolkit-type-helpers/ # TypeScript type utilities
โโโ dev/ # Development utilities
โโโ package.json # Root package.json
๐ค Contributing
We welcome contributions! Please check out our contribution guidelines for details on how to get started.
๐ License
MIT ยฉ Ryan Zayne
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
9 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
9 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago