Scan your whole stack
Are you using @rohal12/spindle?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.64.32
@rohal12/spindle was last scanned on 28 Nov 2026 at version 0.64.32. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.64.32 LATEST | 28 Nov 2026 | No rules fired |
| 0.64.31 | 27 Nov 2026 | No rules fired |
| 0.64.30 | 26 Nov 2026 | No rules fired |
| 0.64.29 | 25 Nov 2026 | Not shown |
| 0.64.28 | 25 Nov 2026 | Not shown |
Findings for v0.64.32. 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.64.32; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A modern Twine 2 story format built with Preact. Variables, macros, saves, settings, widgets, and full CommonMark markdown — all using a concise curly-brace syntax.
npm install @rohal12/spindle
The package (the compiler entry point, @rohal12/spindle/tooling, @rohal12/spindle/headless and @rohal12/spindle/play) needs Node.js 24 or later. Compiled stories run in current browsers.
{if $health > 0}...{/if}, {set $name = "Hero"}window.Story JavaScript API for scriptingimport * as spindle from '@rohal12/spindle';
import { compile } from '@rohal12/twee-ts';
const result = await compile({
sources: ['src/'],
format: spindle,
});
Spindle’s optional compiler/play integration requires twee-ts 2.x.
Or install both and let twee-ts auto-discover the format via the twine-story-format keyword.
Full docs at rohal12.github.io/spindle:
window.Story JavaScript APIbun install
bun run test # run tests
bun run build # build format
bun run preview # build + compile dev story
bun run docs:dev # local docs dev server
bun run docs:build # build docs for deployment
bun run duplication # code duplication checks (CPD needs PMD_BIN)
CI measures duplication in src/ with three tools, each a separate check:
jscpd and PMD CPD (exact copies) and fallow (copies with renamed
identifiers). A pull request fails when it adds duplication compared with
main or exceeds duplication-budget.json. The settings are in
.jscpd.json and .fallowrc.json; scripts/duplication.ts runs the
checks and compares against a base (--base main). Locally, CPD needs
PMD 7 with PMD_BIN set to its bin/pmd.
Before adding a helper, parser or hook, look for the one that already does the job and extend it; most fixes then land in one place. The shared modules:
| Job | Module |
|---|---|
Name-keyed storage, own-key reads (hasOwn, ownValue) |
src/utils/namespace.ts |
| Case-insensitive macro/widget names | src/utils/macro-names.ts |
| Clone, equality, structural diff and merge | src/structural.ts |
Macro arguments: declared parameters, ctx.args |
src/components/macros/macro-args.ts |
Quoting, escapeRegExp, splitting, string scanning |
src/components/macros/arg-utils.ts |
JavaScript scanning (findCodeEnd, lexJs) |
src/js-lexer.ts |
Which declaration a variable names (Bindings) |
src/js-bindings.ts |
Sigils and scopes (SIGIL_SCOPES, SCOPE_SIGILS) |
src/markup/tokens.ts |
Passage markup (parseMarkup, tokenizeMarkup) |
src/markup/parse.ts (grammar: src/markup/spindle.peggy) |
Where code in {…} ends (closeBrace, rawBodyEnd) |
src/markup/code-end.ts |
Which closer closes which opener (pairMarkup, the AST) |
src/markup/pair.ts (buildAst in src/markup/ast.ts) |
| Code, passage names and markup text in a passage | src/code-check.ts (passagePiecesOf) |
Declarations of StoryVariables (parseDeclarations) |
src/story-variables.ts (literals: src/static-literal.ts) |
| Reading story state / render contexts in components | src/hooks/use-story-fields.ts, src/hooks/use-render-options.ts |
| Save storage operations | src/saves/storage.ts (createBackend) |
Listeners to notify (createListeners) |
src/utils/listeners.ts |
Checking plain data handed in (checkObject, matchers) |
src/utils/field-checks.ts (checkActionMatcher: action registry) |
This is free and unencumbered software released into the public domain. See UNLICENSE.
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.