Scan your whole stack
From OX Research Newsroom
Are you using @constructive-io/graphql-env?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v3.38.0
@constructive-io/graphql-env was last scanned on 28 Nov 2026 at version 3.38.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 3.38.0 LATEST | 28 Nov 2026 | No rules fired |
| 3.37.8 | 26 Nov 2026 | No rules fired |
| 3.37.7 | 26 Nov 2026 | No rules fired |
| 3.37.6 | 23 Nov 2026 | Not shown |
| 3.37.5 | 19 Nov 2026 | Not shown |
Findings for v3.38.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 3.38.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Constructive environment configuration with GraphQL/Graphile support.
This package extends @pgpmjs/env with GraphQL-specific environment variable parsing and defaults for Constructive applications.
npm install @constructive-io/graphql-env
import { getEnvOptions } from '@constructive-io/graphql-env';
// Get merged options (core PGPM + GraphQL defaults + env vars + config)
const options = getEnvOptions();
// With overrides
const options = getEnvOptions({
graphile: { schema: ['public', 'app'] },
features: { simpleInflection: true }
});
In addition to all environment variables supported by @pgpmjs/env, this package parses:
GRAPHILE_SCHEMA - Comma-separated list of PostgreSQL schemas to exposeThe server always uses schema-scoped introspection for its main PostgreSQL
service: each handler introspects only its API's schemas and their dependency
closure. There is no switch back to stock introspection (main: false is
rejected), because stock introspection retains the whole database in every
cached handler. The scoped options are configured through the Graphile preset
in pgpm.json or runtime options under
graphile.preset.gather.pgScopedIntrospection.main.
The server maps these variables to
graphile.preset.gather.pgScopedIntrospection.main. main is the internal
PostgreSQL service name, not the routing service name (such as local).
| Variable | Accepted values |
|---|---|
GRAPHILE_SCOPED_INTROSPECTION_CATALOG_TYPES |
all or dependency-closure |
GRAPHILE_SCOPED_INTROSPECTION_CAPABILITY_EXTENSIONS |
Comma-separated extension names, e.g. pg_trgm,vector |
pgpm.json. With neither, the server uses
Crystal's defaults (catalogTypes: "all").[]; unset preserves it.pg_trgm,,vector are invalid.
Invalid settings fail option resolution with the variable name.main.export GRAPHILE_SCOPED_INTROSPECTION_CATALOG_TYPES=dependency-closure
export GRAPHILE_SCOPED_INTROSPECTION_CAPABILITY_EXTENSIONS=pg_trgm,vector
Restart the server after changing its environment. capabilityExtensions
retains introspection metadata for extension capabilities; it does not install
PostgreSQL extensions or change the API's exposed schemas.
GRAPHILE_QUERY_CACHE_MAX_LENGTH - Maximum parsed and validated queries retained per schemaGRAPHILE_OPERATIONS_CACHE_MAX_LENGTH - Maximum operations retained for plan lookup per schemaGRAPHILE_OPERATION_PLANS_CACHE_MAX_LENGTH - Maximum context/variable-specific plans retained per operationEach cache limit must be a safe integer of at least 2. When omitted, Grafast's
upstream default for that cache remains in effect.
GRAPHILE_BUILD_CONCURRENCY - Handler builds that may run at once in the process (default 2, at least 1)GRAPHILE_BUILD_QUEUE_MAX - Builds that may wait for a slot (default 64; 0 refuses at once while every slot is busy)GRAPHILE_BUILD_QUEUE_WAIT_MS - How long a build may wait for a slot (default 30000; 0 never waits)A request whose API has no cached handler waits for a build slot. When the
queue is full or the wait expires, the request is refused with HTTP 503, a
Retry-After header (the queue wait in seconds, at most 60) and the
SCHEMA_BUILD_UNAVAILABLE error code, so clients and load balancers can retry. A build that cannot reach the database is
answered the same way. Invalid values fail option resolution with the variable
name.
GRAPHILE_EXPLAIN - Allow clients to request Grafast plan/SQL output via the x-graphql-explain header (off unless set)FEATURES_SIMPLE_INFLECTION - Enable simple inflection pluginFEATURES_OPPOSITE_BASE_NAMES - Enable opposite base namesFEATURES_POSTGIS - Enable PostGIS supportAPI_IS_PUBLIC - Whether API is publicAPI_EXPOSED_SCHEMAS - Comma-separated list of exposed schemasAPI_META_SCHEMAS - Comma-separated list of meta schemasAPI_ANON_ROLE - Anonymous role nameAPI_ROLE_NAME - Default role nameAPI_FLUSH_TOKEN - Bearer token required by POST /flush; the route is not mounted when unsetAPI_INTROSPECTION_ROLE - Role PostGraphile introspects as; unset means the pool's connecting roleGraphQL defaults are provided by @constructive-io/graphql-types:
{
graphile: {
schema: [],
extends: [],
preset: {}
},
features: {
simpleInflection: true,
oppositeBaseNames: true,
postgis: true
},
api: {
exposedSchemas: [],
anonRole: 'administrator',
roleName: 'administrator',
isPublic: true,
metaSchemas: ['routing_public', 'metaschema_public', 'metaschema_modules_public']
}
}
For example, this enables scoped introspection with the defaults for the
server's default main service:
{
"graphile": {
"preset": {
"gather": {
"pgScopedIntrospection": { "main": true }
}
}
}
}
Advanced options can be supplied when a service needs a specific catalog policy or extension capability:
{
"graphile": {
"preset": {
"gather": {
"pgScopedIntrospection": {
"main": {
"catalogTypes": "dependency-closure",
"capabilityExtensions": ["pg_trgm"]
}
}
}
}
}
}
@constructive-io/graphql-env for Constructive applications that need GraphQL/Graphile configuration@pgpmjs/env for pure PGPM tooling that doesn't need GraphQL support🚀 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, safegres, testing, CLI, search, etc.)
npx skills add constructive-io/constructive --skill pgpm
npx skills add constructive-io/constructive --skill safegres
npx skills add 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.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.