Scan your whole stack
Are you using @theholocron/datapad?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v5.0.0-alpha.525
@theholocron/datapad was last scanned on 23 Nov 2026 at version 5.0.0-alpha.525. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 5.0.0-alpha.525 LATEST | 23 Nov 2026 | No rules fired |
| 5.0.0-alpha.524 | 23 Nov 2026 | No rules fired |
| 5.0.0-alpha.523 | 23 Nov 2026 | No rules fired |
| 5.0.0-alpha.522 | 23 Nov 2026 | Not shown |
| 5.0.0-alpha.521 | 23 Nov 2026 | Not shown |
Findings for v5.0.0-alpha.525. 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 5.0.0-alpha.525; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
@theholocron/datapadGeneric config-file loading for Holocron. Discover <name>.config.*, load
it (JSON / JS / TS / ESM / CJS — typed configs via tsx,
no build step), layer a dedicated file over a key of a parent file,
deep-merge, and hand back a plain object.
Holocron-agnostic: no schema, no validation, no defaults. Consumers
(@theholocron/cli for holocron.config.*, @theholocron/astromech for
astromech.config.*) build those on top.
A datapad is a handheld device for reading and holding data. This reads and holds config files.
pnpm add @theholocron/datapad
import { loadConfigFile, loadLayered, mergeConfig, createDefineConfig } from "@theholocron/datapad";
// one file: holocron.config.{ts,js,mjs,cjs,json}
const found = await loadConfigFile<MyConfig>({ cwd, name: "holocron" });
// → { config, filepath } | null
// a dedicated file layered over the `tasks` key of a parent file
const layered = await loadLayered<TasksConfig>({
cwd,
name: "astromech",
fallback: { file: "holocron", key: "tasks" },
});
// → { config, filepath, sources } | null (dedicated wins on conflict)
const merged = mergeConfig(defaults, layered?.config); // vite-style deep merge
// a typed identity defineConfig for a specific shape
export const defineConfig = createDefineConfig<TasksConfig>();
loadConfigFile<T>({ cwd, name, extensions? })Loads the first <name>.config.<ext> found in cwd. Probe order is
TS-first — .ts → .js → .mjs → .cjs → .json — overridable via
extensions. Returns { config, filepath } | null. null means "no such
file"; a file that exists but cannot be parsed / loaded / has no default
export throws ConfigFileError.
loadLayered<T>({ cwd, name, fallback?, extensions? })<name>.config.* layered over the [fallback.key] of
<fallback.file>.config.*. Either, both, or neither may be present; the
dedicated file wins on conflict (vitest-over-vite). Returns
{ config, filepath, sources } | null — sources lists the absolute
paths actually merged, lowest priority first.
mergeConfig<T>(base, override)Deep-merge, vite-style: plain objects merge recursively, arrays
concatenate (base first), undefined in override is skipped, every
other override value replaces base. Neither input is mutated.
createDefineConfig<T>()Returns a typed identity function — call once per config shape and re-export it so config files get autocomplete with zero runtime cost.
ConfigFileErrorThrown when a file is found but unusable. Carries the offending
filepath. "Not found" is null, never an error.
.ts files load through tsx's ESM loader, registered once per process
on first use. A single run may load several TS configs (loadLayered
reads a dedicated file and a parent file), so the persistent
register() is used rather than the one-off tsImport().
| Script | Description |
|---|---|
pnpm build |
Bundle with tsdown |
pnpm test |
Run the vitest suite |
pnpm test:coverage |
Run tests with coverage |
pnpm typecheck |
tsc --noEmit |
pnpm lint |
ESLint |
Automated via semantic-release. See CHANGELOG.md.
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.