Rattail is a Vite+ oriented and AI Agent friendly front-end toolchain, currently at version 2.0.6. It provides presets for linting, formatting, pre-commit hooks, and git hooks, a CLI toolchain for publishing, logs, commit lint, and API generation, 140+ utility functions covering common, string, number, array, object, and math scenarios, an axios-based progressive request tool with Vue composition API support (Axle), a chainable validation rule factory (Ruler Factory), and type-safe enum utilities. It ships with TypeScript types, is tree-shakable, and has 90%+ test coverage. Rivals like Vite plugins and utility libraries often focus on one area, while Rattail bundles all these into a single Vite+ ecosystem package. Release cadence appears active with multiple minor versions.
npm install rattailVerified import paths — ran on the pinned version, not inferred.
Shows how to install, configure with defineRattailConfig, and use utility functions, Axle, RulerFactory, and createEnum.
Update imports to ESM syntax and use subpath exports (e.g., 'rattail/utils' instead of 'rattail'). If using CommonJS, consider migrating to ESM.
Change import { createAxle } from 'rattail/axle'.Use 'import { isString } from 'rattail/utils'' instead of 'import { isString } from 'rattail''.Install pnpm globally (npm install -g pnpm) and use pnpm for this project.
Ensure these are installed: pnpm add @voidzero-dev/vite-plus-core vite-plus
Use 'import rattail from 'rattail' in an ESM context, or enable ESM in your package.json by adding 'type': 'module'.
Change import to 'import { createAxle } from 'rattail/axle'.Upgrade to rattail >=2.0.0: pnpm update rattail
Run 'pnpm add @voidzero-dev/vite-plus-core' or use pnpm with auto-install-peers=true.