Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

prostgles-server

Latest version: v4.2.736

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: prostgles
36 Stars
1 Forks
130 Versions
13.5K Downloads
TypeScript Repo language

Scan summary

prostgles-server was last scanned on 27 Nov 2026 at version 4.2.736. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 130 versions; the latest 5 were published within 5 days (23–27 Nov 2026).
  • Findings: No rules fired in version 4.2.736.
  • Downloads: 13,517 downloads.

Versions

130 versions published
Versions and the rules that fired in each
VersionPublishedStatus
4.2.736 LATEST 27 Nov 2026 No rules fired
4.2.735 26 Nov 2026 No rules fired
4.2.734 26 Nov 2026 No rules fired
4.2.733 25 Nov 2026 Not shown
4.2.732 23 Nov 2026 Not shown

No rules fired in 4.2.736

Findings

Findings for v4.2.736. 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 4.2.736; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

prostgles-server

Isomorphic PostgreSQL client for node

GitHub license npm version Tests

Features

  • CRUD operations with end-to-end type safety
  • Auto-Generated TypeScript Definition for Database schema
  • Subscriptions to data and schema changes
  • Fine grained access control
  • Optimistic data replication

Installation

$ npm install prostgles-server

Quick start

import prostgles from "prostgles-server";

prostgles({
  dbConnection: {
    host: "localhost",
    port: "5432",
    user: process.env.PG_USER,
    password: process.env.PG_PASS,
  },
  tsGeneratedTypesDir: __dirname,
  onReady: async ({ dbo }) => {
    const posts = await dbo.posts.find(
      { title: { $ilike: "%car%" } },
      {
        orderBy: { created: -1 },
        limit: 10,
      },
    );
  },
});

Server-Client usage

server.js

const express = require("express");
const app = express();
const path = require("path");
var http = require("http").createServer(app);
var io = require("socket.io")(http);
http.listen(3000);

let prostgles = require("prostgles-server");

prostgles({
  dbConnection: {
    host: "localhost",
    port: "5432",
    user: process.env.PRGL_USER,
    password: process.env.PRGL_PWD,
  },
  io,
  publish: "*", // Unrestricted INSERT/SELECT/UPDATE/DELETE access to the tables in the database
  onReady: async ({ dbo }) => {},
});

react.tsx

const App = () => {
  const { isLoading, dbo } = useProstglesClient();
  if (isLoading) return null;
  return <>Database tables: {Object.keys(dbo)}</>;
};

./public/index.html

<!DOCTYPE html>
<html>
  <head>
    <title>Prostgles</title>

    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <script
      src="https://unpkg.com/socket.io-client@latest/dist/socket.io.min.js"
      type="text/javascript"
    ></script>
    <script
      src="https://unpkg.com/prostgles-client@latest/dist/index.js"
      type="text/javascript"
    ></script>
  </head>
  <body>
    <script>
      prostgles({
        socket: io(),
        onReady: async ({ dbo, dbsMethods, schemaTables, auth }) => {},
      });
    </script>
  </body>
</html>

Application context

Use createProstgles with createContext to initialize typed, instance-scoped dependencies after the database object is ready. The returned context is available to onReady, server functions, and table hooks. Registered cleanups run in reverse order before the context is recreated or destroyed.

import { createProstgles } from "prostgles-server";
import type { DBGeneratedSchema } from "./DBGeneratedSchema";
import { ServiceManager } from "./ServiceManager";

const prostgles = createProstgles<DBGeneratedSchema>();

prostgles({
  dbConnection: process.env.DATABASE_URL!,
  createContext: async ({ dbo, onCleanup }) => {
    const serviceManager = await ServiceManager.create(dbo);
    onCleanup(() => serviceManager.destroy());
    return { serviceManager };
  },
  onReady: ({ context }) => {
    context.serviceManager;
  },
});

License

MIT

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm prostgles-server

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229