
Product
Socket for ClickUp Is Now Available
Create ClickUp tasks from Socket alerts, automate ticketing with custom rules, and keep alert and task status synchronized.
@pgpmjs/logger
Advanced tools
Simple logger utility with yanse colors for consistent logging across packages.
npm install @pgpmjs/logger
import { Logger } from '@pgpmjs/logger';
// Create a logger with a namespace
const log = new Logger('my-module');
// Log messages
log.log('This is a regular message');
log.error('This is an error message');
log.warn('This is a warning message');
// Messages will be prefixed with the namespace in color
// [my-module] This is a regular message
new Logger(namespace: string)Creates a new logger instance with the given namespace.
log(...args: any[]): void - Log a regular message (cyan namespace)error(...args: any[]): void - Log an error message (red namespace)warn(...args: any[]): void - Log a warning message (yellow namespace)import { Logger } from '@pgpmjs/logger';
const dbLog = new Logger('database');
const apiLog = new Logger('api');
dbLog.log('Connected to PostgreSQL');
// Output: [database] Connected to PostgreSQL (with cyan [database])
apiLog.error('Failed to fetch user:', error);
// Output: [api] Failed to fetch user: ... (with red [api])
apiLog.warn('Rate limit approaching');
// Output: [api] Rate limit approaching (with yellow [api])
🚀 Quickstart: Getting Up and Running Get started with modular databases in minutes. Install prerequisites and deploy your first module.
📦 Modular PostgreSQL Development with Database Packages Learn to organize PostgreSQL projects with pgpm workspaces and reusable database modules.
✏️ Authoring Database Changes Master the workflow for adding, organizing, and managing database changes with pgpm.
🧪 End-to-End PostgreSQL Testing with TypeScript Master end-to-end PostgreSQL testing with ephemeral databases, RLS testing, and CI/CD automation.
⚡ Supabase Testing Use TypeScript-first tools to test Supabase projects with realistic RLS, policies, and auth contexts.
💧 Drizzle ORM Testing Run full-stack tests with Drizzle ORM, including database setup, teardown, and RLS enforcement.
🔧 Troubleshooting Common issues and solutions for pgpm, PostgreSQL, and testing.
SET LOCAL) into queries—ideal for setting role, jwt.claims, and other session settings.libpg_query, converting SQL into parse trees.Install skills for AI coding agents:
# All platform skills (security, blueprints, codegen, billing, etc.)
npx skills add constructive-io/constructive-skills
# Individual repo skills (pgpm, testing, CLI, search, etc.)
npx skills add https://github.com/constructive-io/constructive --skill pgpm
npx skills add https://github.com/constructive-io/constructive --skill constructive-testing
🛠 Built by the Constructive team — creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on GitHub.
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.
FAQs
Simple logger utility
The npm package @pgpmjs/logger receives a total of 27,686 weekly downloads. As such, @pgpmjs/logger popularity was classified as popular.
We found that @pgpmjs/logger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Create ClickUp tasks from Socket alerts, automate ticketing with custom rules, and keep alert and task status synchronized.

Product
Create and manage Asana tasks directly from Socket alerts, with manual task creation, automated ticketing rules, and two-way sync.

Security News
Open VSX has removed three extension IDs from its malicious-extension list as the legitimate publishers they impersonated move to claim the names for themselves.