Skip to content
PluginStats

@gdp-ts/core weekly downloads statistics

By gdp-ts · npm · ESLint plugins

Ghosts of Departed Proofs for TypeScript: authorization (and other checks) whose results the type checker can see.

View on npm Fresh · Dec 6, 2026

@gdp-ts/core has 268,582 recorded weekly downloads on npm, a decrease of 65.8% over the past 30 days, ranking #484 of 3,247 tracked listings.

Weekly downloads
268,582
Official API · Dec 5, 2026
7-day growth
+2.8%
+7.3K weekly downloads
30-day growth
-65.8%
-516.1K weekly downloads
90-day growth
—
Insufficient history
Rank
#484
▼ 9 in 7 days

About @gdp-ts/core

<img width="115" height="86" style="margin-bottom: -10px" alt="A pixel-art ghost carrying a TypeScript document with a green checkmark" src=".github/assets/logo.png" />

gdp-ts

A tiny library + linter and AI skill implementation of Ghosts of Departed Proofs for TypeScript, a verification system to make API contracts more secure at compile (type check) time.

gdp-ts makes an entire category of authorization ("can this user read this resource") or entitlement ("does this user pay for this resource") bugs very difficult for humans and coding agents to introduce, by catching them at compile time with negligible runtime overhead.

Features

  • Incrementally adoptable: works with any TS codebase and any runtime, and doesn't change how you do I/O or effects.
  • Ease-to-rigor slider: how much is exhaustively proven is up to the discretion / risk tolerance of each codebase, and the skill bundles advice.
  • ~Zero runtime overhead: no extra queries or dependencies. The only runtime cost is a tiny wrapper around the ids you check. The safety comes from type checker.
  • Cheap to typecheck: about 0.3 ms per authorized call site on a cold TypeScript 7 check. The cost grows with how often you use it, not with codebase size (benchmark).

Installation

$ npx skills add rauchg/gdp-ts
$ pnpm add @gdp-ts/core

Requires TypeScript 5.4 or newer.

The problem

A lot of codebases feature code like this:

async function handler(req, res) {
  await assertProjectAdmin(req.user.id, req.params.projectId); // throws 403
  await setPasswordProtection(req.params.projectId, req.body.password); // nothing connects this to the line above
  res.sendStatus(204);
}

Looks great, except: all it takes is

  • a developer to slip and miss the first await
  • the business rules on who gets to "change password protection" to change (say, Owners only), and one call site to keep running the old check

... for a security / business disaster to occur.

The solution

We change the signature above from something anyone can call from anywhere:

function setPasswordProtection(projectId: ProjectId, password: string): Promise<void>;

...to forcing the caller to present evidence (proof) that they can do (are admin) and can get (have the plan) the thing:

function setPasswordProtection<U, P>(
  project: Named<P, ProjectId>,
  password: string,
  _proofs: { admin: UserIsProjectAdmin<U, P>; plan: PlanIncludesPasswordProtection<P> },
): Promise<void>;

The skill takes care of guiding agents and humans towards this safer pattern, and away from the boolean blindness problem.

How it works

1️⃣ Name values. name(x, k) gives a runtime value a compile-time-only name N. Every call to name creates a different N, and N exists only inside the callback. For our example, wwo project ids named separately are now distinguishable to the compiler even though both are string:

// app.ts
import { name } from "@gdp-ts/core";
import { disablePasswordProtection } from "@/data/projects";
import { ProjectId } from "@/lib/ids";
import { userIsProjectAdmin } from "@/proofs/user-is-project-admin";
import { app, authenticated, HttpError } from "@/lib/server"; // your Express app, auth middleware, error type

app.delete(
  "/projects/:id/password-protection",
  authenticated((viewer, req, res) => // authenticated() resolves the logged-in user
    name(viewer.id, ProjectId(req.params.id), async (user, project) => {
      const admin = await userIsProjectAdmin(user, project);
      if (!admin) throw new HttpError(403, "Only Owners and Members can change this");
      await disablePasswordProtection(project, admin);
      res.sendStatus(204);
    }),
  ),
);

2️⃣ Prove facts about names. A small trusted module performs a check and returns a Proof<"UserIsProjectAdmin", [U, P]>, or null. Only that module can mint that proof. At runtime a proof is a frozen { kind } object.

// proofs/user-is-project-admin.ts  (trusted: the only place that can mint this proof)
import { defineProof, type Named, type Proof } from "@gdp-ts/core";
import { db } from "@/lib/db";
import type { ProjectId, UserId } from "@/lib/ids";

const UserIsProjectAdmin = defineProof("UserIsProjectAdmin"); // not exported
export interface UserIsProjectAdmin<U, P> extends Proof<"UserIsProjectAdmin", [U, P]> {}

export async function userIsProjectAdmin<U, P>(
  user: Named<U, UserId>,
  project: Named<P, ProjectId>,
): Promise<UserIsProjectAdmin<U, P> | null> {
  const role = await db.roleInProjectTeam(user.value, project.value);
  return role === "owner" || role === "member" ? UserIsProjectAdmin.prove(user, project) : null;
}

3️⃣ Demand proofs. Sensitive functions take a proof about their exact arguments. Calling them with the wrong proof, a proof about a different value, a raw id, or no proof is a compile error 🎉

// data/projects.ts  (sensitive: demands exact proofs)
import type { Named } from "@gdp-ts/core";
import { db } from "@/lib/db";
import type { ProjectId } from "@/lib/ids";
import type { UserIsProjectAdmin } from "@/proofs/user-is-project-admin";

export function disablePasswordProtection<U, P>(
  project: Named<P, ProjectId>,
  _proof: UserIsProjectAdmin<U, P>,
): Promise<void> {
  return db.writePasswordProtection(project.value, null);
}
```…

Description from the npm listing.

  • typescript
  • authorization
  • ghosts-of-departed-proofs
  • gdp
  • phantom-types
  • type-safety
  • eslint-plugin
  • oxlint

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@gdp-ts/core weekly downloads on npm, last 90 days: 268,582 weekly downloads as of Dec 5, 2026.@gdp-ts/coreWeekly downloads on npm · Last 90 days268,582downloads / week0200K400K600K800K1MSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@gdp-ts/core weekly downloads on npm, last 90 days: 268,582 weekly downloads as of Dec 5, 2026.

7/30/90-day growth

@gdp-ts/core weekly downloads growth on npm: +2.8% over 7 days, -65.8% over 30 days, 90-day growth unavailable.@gdp-ts/coreWeekly downloads growth on npm268,582downloads / week now7-day growth+7,327 weekly downloads+2.8%30-day growth-516,092 weekly downloads-65.8%90-day growth+268,582 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@gdp-ts/core weekly downloads growth on npm: +2.8% over 7 days, -65.8% over 30 days, 90-day growth unavailable.

Ranking history

@gdp-ts/core npm ranking history: currently #484 (by weekly downloads).@gdp-ts/corenpm ranking · by weekly downloads · Last 90 days#484current rank#250#300#350#400#450#500#550Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@gdp-ts/core npm ranking history: currently #484 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 25, #4 (overall #484)
All npm: every listing in weekly downloads order

Listing placement

ESLint plugins290 listings · 15 pages · page 6, #7 (overall #107)
ESLint plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for @gdp-ts/core
Date (UTC)Weekly downloadsChange vs. previous
268,582-7.1K
275,718+4.6K
271,102-5.7K
276,770+5.5K
271,282+13.3K
258,012-6.2K
264,199+2.9K
261,255+11.6K
249,662-36.4K
286,025-20.5K
306,500+1.6K
304,911-45.8K
350,711-66.7K
417,452—

Similar npm ESLint plugins plugins

All 20 @gdp-ts/core alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@gdp-ts/core. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.