Skip to content
PluginStats

@promptbook/utils weekly downloads statistics

By promptbook (28 listings) · npm · AI SDKs

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

View on npm Fresh · Dec 6, 2026

@promptbook/utils has 2,577,923 recorded weekly downloads on npm, an increase of 5.5% over the past 30 days, ranking #212 of 3,247 tracked listings.

Weekly downloads
2,577,923
Official API · Dec 5, 2026
7-day growth
+18.5%
+402.5K weekly downloads
30-day growth
+5.5%
+134.8K weekly downloads
90-day growth
+58.8%
+954.3K weekly downloads
Rank
#212
▲ 1 in 7 days

About @promptbook/utils

<!-- ⚠️ WARNING: This code has been generated so that any manual changes will be overwritten -->

🐙 Promptbook: Invisible AI Agents

Create persistent AI agents that turn your company's scattered knowledge into action - powered by the Agents Server

NPM Version of Promptbook logo Promptbook Quality of package Promptbook logo Promptbook Known Vulnerabilities 🧪 Test Books 🧪 Test build 🧪 Lint 🧪 Spell check 🧪 Test types Issues

🚀 Quick deploy

Run the standalone VPS installer (for example on DigitalOcean) only on a fresh server. Interactive mode asks for the installation values:

sudo curl -fsSL https://raw.githubusercontent.com/webgptorg/promptbook/refs/heads/main/install.sh | bash

Non-interactive mode takes defaults from command-line options. Use --env live, --env preview, --env production, or --env lts to pick the installed environment; the default is preview. When --openai-api-key is provided with the default OpenAI Codex runner, the installer installs and configures Codex automatically; other runner authentication can be configured later from the UI or SSH:

sudo curl -fsSL https://raw.githubusercontent.com/webgptorg/promptbook/refs/heads/main/install.sh | bash -s -- \
    --non-interactive \
    --yes-i-understand-that-script-should-be-run-on-fresh-server \
    --env preview \
    --domain my-server.com \
    --openai-api-key sk-proj-xxx \
    --admin-password xxx
<blockquote style="color: #ff8811"> <b>⚠ Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>. </blockquote>

📦 Package @promptbook/utils

To install this package, run:

# Install entire promptbook ecosystem
npm i ptbk

# Install just this package to save space
npm install @promptbook/utils

Comprehensive utility functions for text processing, validation, normalization, and LLM input/output handling in the Promptbook ecosystem.

🎯 Purpose and Motivation

The utils package provides a rich collection of utility functions that are essential for working with LLM inputs and outputs. It handles common tasks like text normalization, parameter templating, validation, and postprocessing, eliminating the need to implement these utilities from scratch in every promptbook application.

🔧 High-Level Functionality

This package offers utilities across multiple domains:

  • Text Processing: Counting, splitting, and analyzing text content
  • Template System: Secure parameter substitution and prompt formatting
  • Normalization: Converting text to various naming conventions and formats
  • Validation: Comprehensive validation for URLs, emails, file paths, and more
  • Serialization: JSON handling, deep cloning, and object manipulation
  • Environment Detection: Runtime environment identification utilities
  • Format Parsing: Support for CSV, JSON, XML validation and parsing

✨ Key Features

  • 🔒 Secure Templating - Prompt injection protection with template functions
  • 📊 Text Analysis - Count words, sentences, paragraphs, pages, and characters
  • 🔄 Case Conversion - Support for kebab-case, camelCase, PascalCase, SCREAMING_CASE
  • ✅ Comprehensive Validation - Email, URL, file path, UUID, and format validators
  • 🧹 Text Cleaning - Remove emojis, quotes, diacritics, and normalize whitespace
  • 📦 Serialization Tools - Deep cloning, JSON export, and serialization checking
  • 🌐 Environment Aware - Detect browser, Node.js, Jest, and Web Worker environments
  • 🎯 LLM Optimized - Functions specifically designed for LLM input/output processing

Simple templating

The prompt template tag function helps format prompt strings for LLM interactions. It handles string interpolation and maintains consistent formatting for multiline strings and lists and also handles a security to avoid prompt injection.

import { prompt } from '@promptbook/utils';

const promptString = prompt`
    Correct the following sentence:

    > ${unsecureUserInput}
`;

The prompt name could be overloaded by multiple things in your code. If you want to use the promptTemplate which is alias for prompt:

import { promptTemplate } from '@promptbook/utils';…

Description from the npm listing.

  • ai
  • ai-agents
  • ai-application-framework
  • ai-assistant
  • ai-automation
  • ai-development
  • ai-framework
  • ai-ops
  • ai-orchestration
  • ai-pipeline
  • ai-platform
  • ai-scripting
  • ai-sdk
  • ai-workflow
  • api-integration
  • automation-framework
  • book-language
  • browser
  • chatbot
  • content-generation

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

@promptbook/utils weekly downloads on npm, last 90 days: 2,577,923 weekly downloads as of Dec 5, 2026, +58.8% over 90 days.@promptbook/utilsWeekly downloads on npm · Last 90 days2,577,923downloads / week+58.8% over 90 days0500K1M1.5M2M2.5M3MSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@promptbook/utils weekly downloads on npm, last 90 days: 2,577,923 weekly downloads as of Dec 5, 2026, +58.8% over 90 days.

7/30/90-day growth

@promptbook/utils weekly downloads growth on npm: +18.5% over 7 days, +5.5% over 30 days, +58.8% over 90 days.@promptbook/utilsWeekly downloads growth on npm2,577,923downloads / week now7-day growth+402,481 weekly downloads+18.5%30-day growth+134,827 weekly downloads+5.5%90-day growth+954,262 weekly downloads+58.8%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@promptbook/utils weekly downloads growth on npm: +18.5% over 7 days, +5.5% over 30 days, +58.8% over 90 days.

Ranking history

@promptbook/utils npm ranking history: currently #212 (by weekly downloads).@promptbook/utilsnpm ranking · by weekly downloads · Last 90 days#212current rank#195#200#205#210#215#220Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@promptbook/utils npm ranking history: currently #212 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 11, #12 (overall #212)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs378 listings · 19 pages · page 1, #10 (overall #10)
AI SDKs: 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 @promptbook/utils
Date (UTC)Weekly downloadsChange vs. previous
2,577,923+21.7K
2,556,189+118.5K
2,437,724+131.7K
2,306,069+48K
2,258,032+53.5K
2,204,544+27.6K
2,176,975+1.5K
2,175,442+4K
2,171,418-31.6K
2,202,981-74.1K
2,277,085-49.4K
2,326,486-45K
2,371,451-33.9K
2,405,365—

Similar npm AI SDKs plugins

All 20 @promptbook/utils 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/@promptbook/utils. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.