Skip to content
PluginStats

prettier-plugin-aiken weekly downloads statistics

By aniadev · npm · Prettier plugins

A Prettier plugin for Aiken language

View on npm Fresh · Oct 18, 2026

prettier-plugin-aiken has 9 recorded weekly downloads on npm, a decrease of 18.2% over the past 30 days, ranking #2071 of 2,322 tracked listings.

Weekly downloads
9
Official API · Oct 18, 2026
7-day growth
-10.0%
-1 weekly downloads
30-day growth
-18.2%
-2 weekly downloads
90-day growth
-18.2%
-2 weekly downloads
Rank
#2071
Among tracked npm listings

About prettier-plugin-aiken

Prettier Plugin Aiken

A Prettier plugin for the Aiken smart contract language.

Overview

This plugin integrates Aiken's built-in formatter (aiken fmt) with Prettier, allowing you to format Aiken smart contract code using Prettier's workflow and editor integrations.

Features

  • 🎯 Format .ak files using Aiken's official formatter
  • 🔧 Seamless integration with Prettier
  • ⚡ Works with popular editors (VS Code, Vim, etc.)
  • 🔄 Supports Prettier's CLI and API

Installation

Prerequisites

Make sure you have Aiken installed on your system:

# Install Aiken (if not already installed)
curl -sSfL https://install.aiken-lang.org | bash
Install the Plugin
# Using npm
npm install --save-dev prettier prettier-plugin-aiken

# Using pnpm
pnpm add -D prettier prettier-plugin-aiken

# Using yarn
yarn add --dev prettier prettier-plugin-aiken

Usage

CLI

Format a single file:

npx prettier --write validator.ak

Format all Aiken files in your project:

npx prettier --write "**/*.ak"
Configuration

Add to your package.json:

{
  "prettier": {
    "plugins": ["prettier-plugin-aiken"]
  }
}

Or create a .prettierrc.js:

module.exports = {
  plugins: ["prettier-plugin-aiken"]
};
VS Code Integration
  1. Install the Prettier extension
  2. Add this plugin to your project dependencies
  3. Configure Prettier as your default formatter for .ak files

Add to your VS Code settings.json:

{
  "[aiken]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true
  }
}

How it Works

This plugin acts as a bridge between Prettier and Aiken's built-in formatter:

  1. Prettier detects .ak files using this plugin
  2. The plugin passes the file content to aiken fmt --stdin
  3. Returns the formatted code back to Prettier

Requirements

  • Node.js >= 14
  • Aiken CLI tool installed and available in PATH
  • Prettier (peer dependency)

Example

Before formatting:

validator my_validator{
pub fn spend(datum: Data,redeemer: Data,context: ScriptContext) -> Bool {
let Spend(output_reference) = context.purpose
True
}
}

After formatting:

validator my_validator {
  pub fn spend(datum: Data, redeemer: Data, context: ScriptContext) -> Bool {
    let Spend(output_reference) = context.purpose
    True
  }
}

Configuration

Setting up Aiken Binary Path

The plugin will automatically try to find your Aiken binary in the following order:

  1. Environment Variable: AIKEN_BIN (recommended for custom installations)
  2. PATH: Using which aiken command
  3. Default Location: ~/.aiken/bin/aiken (standard installation path)
Using Environment Variable

If you have Aiken installed in a custom location, set the AIKEN_BIN environment variable:

# In your shell profile (.bashrc, .zshrc, etc.)
export AIKEN_BIN="/path/to/your/aiken/binary"

# Or set it per project in .env file
AIKEN_BIN="/usr/local/bin/aiken"
For VS Code Users

Add the environment variable to your VS Code settings:

{
  "terminal.integrated.env.osx": {
    "AIKEN_BIN": "/path/to/your/aiken/binary"
  },
  "terminal.integrated.env.linux": {
    "AIKEN_BIN": "/path/to/your/aiken/binary"
  },
  "terminal.integrated.env.windows": {
    "AIKEN_BIN": "C:\\path\\to\\your\\aiken\\binary.exe"
  }
}

Troubleshooting

"aiken command not found"

Make sure Aiken is installed and available in your PATH:

aiken --version

If not installed, follow the Aiken installation instructions.

Custom Aiken Installation

If you installed Aiken in a custom location, make sure to set the AIKEN_BIN environment variable as described in the Configuration section above.

Plugin not working in VS Code
  1. Ensure the plugin is installed in your project (not globally)
  2. Restart VS Code after installing the plugin
  3. Check that Prettier is configured as the default formatter for .ak files

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Development
  1. Clone the repository
  2. Install dependencies: npm install
  3. Make your changes
  4. Test with a sample Aiken project

License

MIT License

Related Projects

  • Aiken - A modern smart contract platform for Cardano
  • Prettier - An opinionated code formatter

Changelog

See CHANGELOG.md for release history.

Description from the npm listing.

  • prettier-plugin
  • aiken

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

prettier-plugin-aiken weekly downloads on npm, last 90 days: 9 weekly downloads as of Oct 18, 2026, -18.2% over 90 days.prettier-plugin-aikenWeekly downloads on npm · Last 90 days9downloads / week-18.2% over 90 days05101520Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
prettier-plugin-aiken weekly downloads on npm, last 90 days: 9 weekly downloads as of Oct 18, 2026, -18.2% over 90 days.

7/30/90-day growth

prettier-plugin-aiken weekly downloads growth on npm: -10.0% over 7 days, -18.2% over 30 days, -18.2% over 90 days.prettier-plugin-aikenWeekly downloads growth on npm9downloads / week now7-day growth-1 weekly downloads-10.0%30-day growth-2 weekly downloads-18.2%90-day growth-2 weekly downloads-18.2%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
prettier-plugin-aiken weekly downloads growth on npm: -10.0% over 7 days, -18.2% over 30 days, -18.2% over 90 days.

Ranking history

prettier-plugin-aiken npm ranking history: currently #2071 (by weekly downloads).prettier-plugin-aikennpm ranking · by weekly downloads · Last 90 days#2071current rank#2020#2030#2040#2050#2060#2070#2080Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
prettier-plugin-aiken npm ranking history: currently #2071 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 104, #15 (overall #2,075)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins244 listings · 13 pages · page 7, #7 (overall #127)
Prettier 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 (122)
Recent weekly downloads observations for prettier-plugin-aiken
Date (UTC)Weekly downloadsChange vs. previous
9+4
5-1
6+1
50
50
50
5-5
100
10+1
90
9-1
10-2
12-2
14—

Similar npm Prettier plugins plugins

All 20 prettier-plugin-aiken 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/prettier-plugin-aiken. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.