Skip to content
PluginStats

unplugin-atscript weekly downloads statistics

By moostjs · npm · Webpack plugins

Atscript: Configuration and build plugins.

View on npm Fresh · Dec 6, 2026

unplugin-atscript has 3,291 recorded weekly downloads on npm, an increase of 143% over the past 30 days, ranking #1696 of 3,247 tracked listings.

Weekly downloads
3,291
Official API · Dec 5, 2026
7-day growth
+35.0%
+853 weekly downloads
30-day growth
+143%
+1.9K weekly downloads
90-day growth
+11654%
+3.3K weekly downloads
Rank
#1696
▲ 29 in 7 days

About unplugin-atscript

<p align="center"> <img src="https://atscript.dev/logo.svg" alt="Atscript" width="120" /> </p> <h1 align="center">unplugin-atscript</h1> <p align="center"> <strong>Define your models once</strong> — get TypeScript types, runtime validation, and DB metadata from a single <code>.as</code> model. </p> <p align="center"> <a href="https://atscript.dev">Documentation</a> · <a href="https://atscript.dev/packages/typescript/build-setup">Build Setup Guide</a> </p>

Build tool plugin that compiles .as files during development. Works with Vite, Webpack, Rollup, Rolldown, esbuild, Rspack, and Farm via Unplugin.

Installation

pnpm add -D unplugin-atscript @atscript/typescript @atscript/core

Quick Start

// vite.config.ts
import atscript from 'unplugin-atscript/vite'
export default { plugins: [atscript()] }

// rollup.config.js
import atscript from 'unplugin-atscript/rollup'
export default { plugins: [atscript()] }

// webpack.config.js
const atscript = require('unplugin-atscript/webpack')
module.exports = { plugins: [atscript()] }

Also available: unplugin-atscript/esbuild, unplugin-atscript/rolldown, unplugin-atscript/rspack, unplugin-atscript/farm.

Options

Same options on every bundler entry:

OptionTypeDefaultEffect
strictbooleantrueFail the build on parse/diagnostic errors. false = log errors but keep building.
rootstringbundler root or cwdDirectory atscript.config.* is discovered from (searching upward). Absolute, or relative to the cwd.

Vite picks the root up automatically (from configResolved); other bundlers need root when the working directory is not the project root.

root is not the config's rootDir: a relative rootDir is relative to the config file's directory, and a config without one uses that directory — the same folder asc and the editor use. Without a config file, root is the project root.

Features

  • Universal bundler support via dedicated entry points
  • Automatic atscript.config.* loading
  • Strict validation — build fails on .as errors by default (strict: false to disable)
  • Tree-shaking aware — marks non-mutating modules as side-effect-free
  • On Vite, prebundles @atscript/typescript/utils so the first .as-backed route does not trigger a dep re-optimization reload
  • Watch-safe in dev — a changed .as file is dropped from the document cache and every transitive .as import is registered as a watch file, so dependants are re-checked against the new definition on the next reload (esbuild excepted: unplugin has no watchChange for it, so under esbuild watch a changed .as import still needs a restart)

Documentation

License

MIT

Description from the npm listing.

  • annotations
  • atscript
  • esbuild-plugin
  • rolldown-plugin
  • rollup-plugin
  • rspack-plugin
  • unplugin
  • vite-plugin
  • webpack-plugin

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

unplugin-atscript weekly downloads on npm, last 90 days: 3,291 weekly downloads as of Dec 5, 2026, +11654% over 90 days.unplugin-atscriptWeekly downloads on npm · Last 90 days3,291downloads / week+11654% over 90 days05001K1.5K2K2.5K3K3.5KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
unplugin-atscript weekly downloads on npm, last 90 days: 3,291 weekly downloads as of Dec 5, 2026, +11654% over 90 days.

7/30/90-day growth

unplugin-atscript weekly downloads growth on npm: +35.0% over 7 days, +143% over 30 days, +11654% over 90 days.unplugin-atscriptWeekly downloads growth on npm3,291downloads / week now7-day growth+853 weekly downloads+35.0%30-day growth+1,938 weekly downloads+143%90-day growth+3,263 weekly downloads+11654%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
unplugin-atscript weekly downloads growth on npm: +35.0% over 7 days, +143% over 30 days, +11654% over 90 days.

Ranking history

unplugin-atscript npm ranking history: currently #1696 (by weekly downloads).unplugin-atscriptnpm ranking · by weekly downloads · Last 90 days#1696current rank#1400#1600#1800#2000#2200#2400Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
unplugin-atscript npm ranking history: currently #1696 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 85, #16 (overall #1,696)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 3, #5 (overall #45)
Webpack plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for unplugin-atscript
Date (UTC)Weekly downloadsChange vs. previous
3,291+723
2,568-57
2,625-588
3,213-245
3,458+230
3,228+234
2,994+556
2,438+46
2,392+229
2,163+939
1,224+629
595+182
413+179
234—

Similar npm Webpack plugins plugins

All 20 unplugin-atscript alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/unplugin-atscript. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.