Bundles TypeScript/JavaScript input into SQL files containing Postgres functions using PLV8. Current stable version: 0.0.67, pre-1.0 with frequent releases. Differentiators: enables code sharing between API and database by transpiling TypeScript to PLV8 (Postgres JavaScript engine) functions; supports triggers, custom schemas, and custom type mappings; similar to plv8ts but with CLI focus and schema support.
npm install plv8ifyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage: write a TypeScript function using a npm package, generate SQL via CLI, and call it from Postgres.
Install globally or use npx: npx plv8ify generate ...
Install PLV8 extension: CREATE EXTENSION IF NOT EXISTS plv8;
Monitor releases for breaking changes; pin version in package.json.
Export all functions you want as Postgres functions; use esbuild or other bundler for dependencies.
Use npx plv8ify generate ... or install globally with npm install -g plv8ify
Run npx plv8ify generate ... or npm install -g plv8ify
Run the generated SQL file in your Postgres database using psql or your preferred client.
No dependency data recorded yet.