# rattail

> A Vite+ oriented, AI Agent friendly front-end toolchain

Latest version **2.6.1** (published 2026-11-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install rattail
pnpm add rattail
yarn add rattail
bun add rattail
```

Provides the command `rt`.

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.6.1 |
| Published | 2026-11-16 |
| First published | 2024-10-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 10 |
| Unpacked size | 116.2 KB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 90 |
| Author | haoziqaq |
| Maintainers | haozijunqaq |
| Keywords | ai-agent, cli, presets, toolchain, typescript, utilities, vite-plus |

## Links

- npm: https://www.npmjs.com/package/rattail
- Repository: https://github.com/varletjs/rattail
- Homepage: https://github.com/varletjs/rattail#readme
- Issues: https://github.com/varletjs/rattail/issues
- npm.io page: https://npm.io/package/rattail

## Dependencies (10)

- [mitt](https://npm.io/package/mitt.md) 3.0.1
- [uuid](https://npm.io/package/uuid.md) 13.0.0
- [rimraf](https://npm.io/package/rimraf.md) ^6.0.1
- [unconfig](https://npm.io/package/unconfig.md) ^7.5.0
- [commander](https://npm.io/package/commander.md) ^13.0.0
- [js-cookie](https://npm.io/package/js-cookie.md) 3.0.5
- [api-farmer](https://npm.io/package/api-farmer.md) 0.1.6
- [@varlet/axle](https://npm.io/package/@varlet/axle.md) 1.1.1
- [ruler-factory](https://npm.io/package/ruler-factory.md) 0.0.14
- [@varlet/release](https://npm.io/package/@varlet/release.md) ^2.3.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 2.6.1 (latest) — 2026-11-16
- 2.0.9-alpha.1779702509979 (alpha) — 2026-05-25
- 2.6.0 — 2026-11-12
- 2.5.0 — 2026-10-30
- 2.4.0 — 2026-10-19
- 2.3.2 — 2026-10-16
- 2.3.1 — 2026-10-15
- 2.3.0 — 2026-10-15
- 2.2.1 — 2026-10-14
- 2.2.0 — 2026-08-29
- 2.1.2 — 2026-08-12
- 2.1.1 — 2026-07-24
- 2.1.0 — 2026-07-24
- 2.0.9 — 2026-05-25
- 2.0.9-alpha.1779700131311 — 2026-05-25
- … 88 more at https://npm.io/package/rattail/versions

## README

<div align="center">
  <a href="https://rattail.varletjs.org">
    <img src="https://rattail.varletjs.org/logo.svg" width="150">
  </a>
  <h1>Rattail</h1>
  <p>A Vite+ oriented, AI Agent friendly front-end toolchain</p>
  <p>
    <a href="https://rattail.varletjs.org">Documentation</a> |
    <a href="https://github.com/varletjs/rattail/blob/main/README.zh-CN.md">中文介绍</a>
  </p>
  <p>
    <img src="https://img.shields.io/npm/v/rattail?style=flat-square" alt="version">
    <img src="https://img.shields.io/github/stars/varletjs/rattail" alt="stars">
    <img src="https://img.shields.io/npm/l/rattail.svg" alt="license">
    <img src="https://img.shields.io/codecov/c/github/varletjs/rattail" alt="coverage">
  </p>
</div>

---

### Features

- ⚙️ &nbsp; Out-of-the-box [Vite+](https://viteplus.dev) presets covering linting, formatting, staged linting, git hooks, and more.
- 🔧 &nbsp; CLI toolkit for release, changelog, git hooks, commit lint, and API codegen.
- 🧰 &nbsp; 140+ utility functions for general, string, number, array, object, math, and more.
- 🚀 &nbsp; Progressive HTTP client based on axios, with Vue Composition API support.
- 📏 &nbsp; Chainable validation rule factory that adapts to any UI framework.
- 🏷️ &nbsp; Type-safe enum utility.
- 🤖 &nbsp; Provides [Agent Skills](https://github.com/varletjs/rattail/tree/main/skills) for AI coding assistants to understand and use Rattail.
- 🌲 &nbsp; Tree-shakable, lightweight, and fully typed with TypeScript.
- 💪 &nbsp; 90%+ unit test coverage.
- 📄 &nbsp; MIT licensed.

### Installation

```shell
# npm
npm i rattail -S
# yarn
yarn add rattail
# pnpm
pnpm add rattail
```

### Official Docs

- [Documentation Home](https://rattail.varletjs.org)
- [Getting Started](https://rattail.varletjs.org/getting-started)
- [Why Rattail](https://rattail.varletjs.org/why-rattail)
- [Vite+ Presets / CLI Getting Started](https://rattail.varletjs.org/cli/getting-started)
- [Axle Getting Started](https://rattail.varletjs.org/axle/getting-started)
- [Ruler Factory](https://rattail.varletjs.org/ruler/ruler-factory)

---
_Source: https://npm.io/package/rattail · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
