Installation
All protoutil packages are published to npm. Install only the packages you need.
Prerequisites
Section titled “Prerequisites”- Node.js 22 or later
- A package manager: npm, pnpm, or yarn
Buf Registry
Section titled “Buf Registry”Some packages depend on generated protobuf types from the Buf Schema Registry. You need to configure your package manager to resolve @buf scoped packages:
# npmnpm config set @buf:registry https://buf.build/gen/npm/v1/
# pnpmpnpm config set @buf:registry https://buf.build/gen/npm/v1/
# yarnyarn config set npmScopes.buf.npmRegistryServer https://buf.build/gen/npm/v1/Or add to your .npmrc:
@buf:registry=https://buf.build/gen/npm/v1/Install Packages
Section titled “Install Packages”# Core utilitiesnpm install @protoutil/core
# AIP SDK (includes core as a dependency)npm install @protoutil/aip
# AIP-160 to SQL/MongoDB translationnpm install @protoutil/aipql
# Database repository layernpm install @protoutil/repo
# Angular componentsnpm install @protoutil/angular
# Protoc SQL plugin (global install)npm install -g @protoutil/protoc-gen-sqlDatabase Drivers
Section titled “Database Drivers”If using @protoutil/repo, install the driver for your database:
# SQLitenpm install better-sqlite3
# Postgresnpm install pg
# MySQLnpm install mysql2
# MongoDBnpm install mongodb