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

idora.js-drizzle

Latest version: v1.1.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: srkleraimbot
0 Stars
0 Forks
2 Versions
Java Repo language

Scan summary

idora.js-drizzle was last scanned on 27 Nov 2026 at version 1.1.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 27 Nov 2026.
  • Findings: No rules fired in version 1.1.0.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.1.0 LATEST 27 Nov 2026 No rules fired
0.0.0-stage 27 Nov 2026 Not shown

No rules fired in 1.1.0

Findings

Findings for v1.1.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 1.1.0; other versions have their own rules, not their own score.

README

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

idora.js-drizzle

Drizzle ORM columns and filters for Idora identifiers such as usr_01k2f9v8ta7m3x0qbrn4dzeh5c.

import { createdBetween } from 'idora.js-drizzle';
import { idoraId, idoraPrimaryKey } from 'idora.js-drizzle/pg';

export const users = pgTable('users', {
  id: idoraPrimaryKey(ids, User),             // varchar(30), filled in on insert
  email: text().notNull(),
});

export const orders = pgTable('orders', {
  id: idoraPrimaryKey(ids, Order),
  userId: idoraId(ids, User).notNull().references(() => users.id),
});

const [user] = await db.insert(users).values({ email }).returning();
user.id; // 'usr_01k2f9v8ta7m3x0qbrn4dzeh5c'

// Everyone who signed up this week, straight off the primary key's index.
await db.select().from(users).where(createdBetween(users.id, startOfWeek, now));

Primary keys that mint themselves in your process — no database extension, no round trip — in a column sized exactly for them, and time-window queries that need no created_at column.


Install

npm install idora.js-drizzle idora.js drizzle-orm

idora.js and drizzle-orm (0.44 or later, below 1.0) are peer dependencies, and this package adds no others. It is an ES module with TypeScript declarations included.


Columns

Drizzle's column types belong to a dialect, so the column helpers do too. Each module has the same two functions:

Module For Column type
idora.js-drizzle/pg PostgreSQL, and anything speaking its protocol varchar(n)
idora.js-drizzle/mysql MySQL, MariaDB, PlanetScale varchar(n)
idora.js-drizzle/sqlite SQLite, libSQL and Turso, Cloudflare D1, Bun text

n is the exact length of the entity's identifiers: its prefix, the separator and a 26-character ULID or 32-character UUIDv7, whichever the generator mints. That is varchar(30) for usr with ULIDs — every identifier for one entity type has the same length — and lets the database refuse a value that cannot be one. SQLite does not enforce lengths, so there the column is plain text.

idoraPrimaryKey(ids, Entity, options?)

The table's primary key, not null, filled in by ids.generate(Entity) on every insert that does not supply one, through Drizzle's $defaultFn. A value you supply is kept. drizzle-kit migrations show no default, because the identifier is made in your process rather than by the database.

Identifiers are time-ordered, so inserts land at the end of the primary key's index instead of scattering through it, as random UUIDs do.

idoraId(ids, Entity, options?)

A column that holds the entity's identifiers but mints none — a foreign key, typically. Chain Drizzle's own modifiers onto it as usual: .notNull(), .references(...), .unique().

Both throw EntityPrefixNotRegisteredError for an entity type ids has not registered, when the schema module loads — so a forgotten registration stops start-up rather than the first insert.

Options
Option Default
name the property's key The column's name in the database.
mode 'string' 'string' for the identifier's text; 'parsed' for an IdoraId

With mode: 'parsed', rows are read as IdoraId objects — with createdAt, prefix and the natural order to hand — and IdoraId objects are written as their text. The database column is the same either way. A parsed column checks the entity's prefix in both directions: a row holding another entity's identifier throws InvalidIdError when read, and so does writing one. It checks the format too, since the time filters compute their bounds in the generator's format and would silently miss a row in the other one: a UUIDv7 in a ULID column, or the reverse, throws a TypeError either way. To change strategy, migrate the existing rows along with the column.

export const events = pgTable('events', {
  id: idoraPrimaryKey(ids, Event, { mode: 'parsed' }),
});

const [event] = await db.select().from(events).limit(1);
event.id.createdAt; // a Date

Filtering by time

An identifier begins with the time it was minted, so the identifiers minted in a span of time are a contiguous range of strings. These filters turn a span into that range:

Filter Selects rows minted
createdBetween(column, from, to) from from to to, both inclusive
createdAfter(column, instant) strictly after instant
createdBefore(column, instant) strictly before instant

Times are Dates or milliseconds since the Unix epoch, compared to the millisecond. They come from idora.js-drizzle itself and work with every dialect:

import { createdAfter, createdBetween } from 'idora.js-drizzle';

await db.select().from(users).where(createdBetween(users.id, from, to));
// select … from "users" where ("users"."id" >= $1 and "users"."id" <= $2)
//   $1 = 'usr_01k226e0g00000000000000000', $2 = 'usr_01k2…zzzzzzzzzzzzzzzz'

The database compares them with the column's collation, so give the column a binary or C collation. A linguistic collation is safe only if it orders the identifier's characters exactly as a byte comparison does, and many do not: Czech and Slovak treat ch as one letter, Danish aa, Lithuanian sorts y before j, Estonian z before t, and a numeric ("natural sort") collation compares runs of digits as numbers. Any of them can put a bound on the wrong side of a row, so the range silently misses it. See §6.4 of the specification.

The bounds are the lowest and highest identifiers any generator can mint for the column's entity type in its format, so the query is an ordinary range over the column and uses its index — the primary key's, for a primary key. It is tested against a real PostgreSQL (PGlite) and SQLite, including that the PostgreSQL plan is an index scan.

The filters read the prefix and format from columns declared with idoraId or idoraPrimaryKey. For any other column of identifiers, say what it holds:

createdBetween(legacy.ref, from, to, { prefix: 'usr', format: 'ulid' });

A range compares correctly only in a collation that orders identifiers as bytes, binary or C (see above). A column holding identifiers of more than one prefix or format is not a range; filter each prefix separately.


License

MIT — see LICENSE.

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 idora.js-drizzle

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

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229