@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
@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.
About @promptbook/utils
🐙 Promptbook: Invisible AI Agents
Create persistent AI agents that turn your company's scattered knowledge into action - powered by the Agents Server
🚀 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
- Promptbooks are divided into several packages, all are published from single monorepo.
- This package
@promptbook/utilsis one part of the promptbook ecosystem.
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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)Similar npm AI SDKs plugins
All 20 @promptbook/utils alternativesData 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.