{"id":26696,"library":"agg-compiler","title":"agg-compiler","description":"The agg-compiler package (version 1.3.2) is a specialized tool for compiling aggregation pipelines, typically used with database query frameworks like MongoDB or similar. It lacks an official description or README, indicating limited community adoption or poor documentation. The package appears to be niche, with no clear release cadence or differentiators from other query builders. As of the latest version, users rely solely on the npm metadata, which suggests it may be experimental or abandoned.","status":"deprecated","version":"1.3.2","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install agg-compiler","lang":"bash","label":"npm"},{"cmd":"yarn add agg-compiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add agg-compiler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Assuming CJS only; no known ESM support.","wrong":"import aggCompiler from 'agg-compiler';","symbol":"agg-compiler","correct":"const aggCompiler = require('agg-compiler');"}],"quickstart":{"code":"const aggCompiler = require('agg-compiler');\nconst pipeline = [{ $match: { status: 'active' } }, { $group: { _id: '$category', count: { $sum: 1 } } }];\nconst compiled = aggCompiler.compile(pipeline);\nconsole.log(compiled);\n// Output: compiled query string or pipeline\nconsole.log('Check for deprecation warnings.');","lang":"javascript","description":"Shows basic CJS require, compiling a simple MongoDB aggregation pipeline, and handling potential errors."},"warnings":[{"fix":"Consider using a well-maintained alternative like 'mongodb-aggregate' or 'mongoose'.","message":"Package appears unmaintained with no README or clear documentation.","severity":"deprecated","affected_versions":"all"},{"fix":"Use CommonJS environment or wrap with dynamic import.","message":"No TypeScript types or ESM support; may fail in modern bundlers.","severity":"gotcha","affected_versions":"all"},{"fix":"Verify output against your database version; no guarantees of compatibility.","message":"Changes in underlying database drivers may break compilation results.","severity":"breaking","affected_versions":">=1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install agg-compiler' and ensure correct npm registry.","cause":"Package not installed or incorrect registry.","error":"Error: Cannot find module 'agg-compiler'"},{"fix":"Use correct import as shown in quickstart.","cause":"Incorrect import (namespace vs default).","error":"TypeError: aggCompiler.compile is not a function"},{"fix":"Use only basic pipeline stages; check package documentation (if any).","cause":"Operator not recognized by agg-compiler.","error":"Aggregation pipeline compilation failed: unsupported operator"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}