npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@protoqol/directus-extension-formatted-numbers

v1.0.6

Published

Directus extension: Format numbers in a easily readable way. With localisation available!

Readme

Title card

NPM NPM

Features

  • Smart Abbreviations: Automatically scales large numbers using standard signifiers (k, M, B, T, P, E, Z, Y).
  • Localisation Support: Correctly formats abbreviations based on the selected language (e.g., Mrd. for German Billions, for Japanese). Configure via the "Localisation" field option.
  • Full Value Tooltip: Hover over any abbreviated number to see the exact, unformatted value in a tooltip.
  • Customisable Appearance: Add custom prefixes (like currency symbols) and suffixes.

Installation

There are a few different ways to install this extension:

  • (Recommended) Via Directus Marketplace search for formatted-numbers or go to {{ YOUR_DIRECTUS_URL }}/admin/settings/marketplace/extension/bcbadf1e-c666-4351-b6f0-d914f62a3c53
  • Self-hosted: see Directus Docs to install extensions.

Configuration Options

When configuring a field to use the "Formatted numbers" display, you can customise the following options:

  • Decimals: Set the maximum number of decimal places to display (default: 2). This controls how accurate the displayed number is.
  • Localisation: Choose the formatting rules for a specific language. Supported languages:
    • English (en)
    • French (fr)
    • German (de)
    • Spanish (es)
    • Japanese (ja)
    • Chinese (zh)
  • Prefix: Add text or symbols before the number (e.g., $, ).
  • Suffix: Add text or symbols after the number (e.g., units, EUR).

Examples

Preview

| Raw Value | Config | Output | |:----------------------|:------------------|:------------| | 1,234,567 | en, 2 decimals | 1.23M | | 123,456,789,000 | de, 1 decimal | 123,5Mrd. | | 5,000 | en, prefix: $ | $5K | | 100,000,000,000,000 | en | 100T |


Supported Scales

The extension supports values from thousands up to septillions. Do you require more? Open an issue and we'll add it!

  • K: Kilo (10³)
  • M: Mega (10⁶)
  • B / G: Giga / Billion (10⁹)
  • T: Tera / Trillion (10¹²)
  • P: Peta / Quadrillion (10¹⁵)
  • E: Exa (10¹⁸)
  • Z: Zetta (10²¹)
  • Y: Yotta (10²⁴)

Feedback, suggestions or issues?

Please open an issue on this repository. We're happy to hear back from you!


Developed by Protoqol.