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

@atscript/db

Latest version: v0.1.201

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: mav-rik
1 Stars
0 Forks
72 Versions
11.2K Downloads
TypeScript Repo language

Scan summary

@atscript/db was last scanned on 29 Nov 2026 at version 0.1.201. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 72 versions; the latest 5 were published within 2 days (28 and 29 Nov 2026).
  • Findings: No rules fired in version 0.1.201.
  • Downloads: 11,207 downloads.

Versions

72 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.201 LATEST 29 Nov 2026 No rules fired
0.1.200 29 Nov 2026 No rules fired
0.1.199 28 Nov 2026 No rules fired
0.1.198 28 Nov 2026 Not shown
0.1.197 28 Nov 2026 Not shown

No rules fired in 0.1.201

Findings

Findings for v0.1.201. 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 0.1.201; other versions have their own rules, not their own score.

README

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


Generic database abstraction layer for Atscript. Provides unified CRUD, relations, views, aggregations, and schema sync — all driven by @db.* annotations in your .as models. Pluggable adapters connect any database engine (SQLite, PostgreSQL, MongoDB, MySQL).

Installation

pnpm add @atscript/db

Quick Start

@db.table "users"
interface User {
  @meta.id
  @db.default.increment
  id: number

  @db.index.unique "email_idx"
  email: string

  name: string
}
import { DbSpace } from "@atscript/db";
import { createAdapter } from "@atscript/db-sqlite";

const db = createAdapter("./myapp.db");
const users = db.getTable(User);

await users.insertOne({ name: "John", email: "john@example.com" });
const all = await users.findMany({ filter: { name: { $eq: "John" } } });

Sub-entries

Entry Purpose
@atscript/db/plugin dbPlugin() — registers all @db.* annotations
@atscript/db/rel Relation loading and nested writes
@atscript/db/agg Aggregation query validation
@atscript/db/sync Schema sync with drift detection and distributed locking
@atscript/db/shared Annotation helpers for adapter plugins

Features

  • Annotation-driven schema: table names, indexes, column mappings, defaults, primary keys
  • Pluggable adapters via BaseDbAdapter — same code works with any database
  • Automatic write pipeline: defaults, validation, ID preparation, column mapping
  • Embedded object flattening (__-separated columns) and @db.json storage
  • Relations: @db.rel.to, @db.rel.from, @db.rel.via with nested writes
  • Views: @db.view with joins, filters, materialized views, aggregation
  • Schema sync: FNV-1a hash drift detection, distributed locking, column/table renames
  • Array patch operations: $insert, $upsert, $update, $remove, $replace
  • Type-safe queries with FlatOf<T> for autocomplete on filters and projections

Documentation

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 @atscript/db

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

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

CVE

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

Frame 2085668439 (1)
Group 1261154229