Scan your whole stack
Are you using @modeldesk/respec?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.4.0
@modeldesk/respec was last scanned on 1 Dec 2026 at version 0.4.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.4.0 LATEST | 1 Dec 2026 | No rules fired |
| 0.1.1 | 22 Oct 2026 | No rules fired |
| 0.1.0 | 14 Oct 2026 | No rules fired |
| 0.0.0-reserved.0 | 14 Oct 2026 | Not shown |
Findings for v0.4.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 0.4.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Reading features for ReSpec documents whose content comes from a
ModelDesk content bundle. The runtime works off the data-md-* markers the bundle
emits and nothing else, so it knows no metamodel. It is one classic script with its stylesheet inside, the same
stylesheet published as a file of its own, and no dependencies.
Load the script without class="remove", so that a published copy keeps it, and pin it with its integrity
hash (the release prints the sha384 hash of each published version):
<script class="remove">
var respecConfig = { specStatus: 'unofficial' };
</script>
<script
src="https://cdn.jsdelivr.net/npm/@modeldesk/respec@0.1.0/dist/modeldesk-respec.js"
integrity="sha384-ytqM8F2hafxjLjoYd+eWA+WUrGOvq5v93wQvBwr/WEsUnR8CIMsCmuMmm2rFLlNV"
crossorigin="anonymous"
></script>
<script src="https://www.w3.org/Tools/respec/respec-w3c" class="remove" defer></script>
async or defer: it has to be in place before ReSpec starts
processing.respecConfig.postProcess, after
data-include has put the diagram SVGs in the page and before an export saves it. Your own entries stay
where they are. ReSpec ignores a postProcess that is a single function rather than an array; the runtime
wraps it in an array, so it runs as well.respecConfig may be declared before or after the script. A configuration that cannot take the hook (a
frozen object) still configures the runtime, which then runs on DOM ready without ReSpec waiting for it.<meta name="generator">; there the runtime runs itself when the DOM is ready, even if a respecConfig was
kept. It reuses that markup and only attaches its event handlers. ReSpec waits for the runtime, index
included, before it saves the copy.The script carries its stylesheet and adds it to the page as a <style> element. A publication that manages
its stylesheets centrally can link the same stylesheet instead, as dist/modeldesk-respec.css of the same
version, from a <link> or an @import in its own stylesheet:
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@modeldesk/respec@<version>/dist/modeldesk-respec.css"
integrity="sha384-…"
crossorigin="anonymous"
/>
@import url('https://cdn.jsdelivr.net/npm/@modeldesk/respec@<version>/dist/modeldesk-respec.css');
--md-respec on the root element to its version. When the runtime finds it set, the
script adds no stylesheet of its own; when it does not (no stylesheet linked, or one that could not be
loaded), the script adds its copy. Link it before the script, so it is in effect when the runtime starts; one
that arrives later only repeats the rules.data-md-features); every other rule styles only what the runtime adds.style-src. The runtime then adds no collapse or filter, since the rules that would hide content are refused
too: everything stays visible.A document keeps working when either cannot be loaded:
| Missing | What the reader gets |
|---|---|
| The script, while ReSpec runs | The document as ReSpec renders it, with the diagrams and the links the bundle wrote in them. A diagram whose include failed shows its PNG. |
| The script, in a saved copy | Everything the runtime added to be read: used-by lists, status badges, URIs. Buttons that only work with the script (the full view, the diagram buttons, copying, finding, filtering, the metadata toggles) are not in the copy. |
| The linked stylesheet | The copy inside the script. |
| Every stylesheet (a policy that refuses inline styles, with none linked) | The document's content, the diagrams with their links, badges and copy buttons with icons at their own size. No full view, diagram button, dialog, card, breadcrumb, filter or collapse, which only work styled. |
The interface text is Dutch when the document's lang starts with nl, English otherwise.
The runtime reads its options from respecConfig.modeldesk:
var respecConfig = {
// …
modeldesk: {
index: 'data/model/index.json', // the default
features: { quickFind: true, landing: false },
},
};
true turns it on, false off, and an object turns it on
with those options. A feature the document leaves out keeps its default. The diagram viewer (diagrams) and
the landing feedback after a jump from a diagram (landing) are on by default; every reading
feature is off, so a document keeps its own styling until it turns one on. An id the runtime does not
know, and a value that is neither a boolean nor an object, get one console warning each; the rest of the
configuration still applies. Options are copied as JSON holds them (text, numbers, booleans, lists and
objects); anything else in them is ignored. A configuration that is not an object literal at every step is
ignored, and so is anything only inherited from Object.prototype.1) gets one warning, and the features that need it stay off. Pin the runtime version that
matches the content bundle.respecConfig nor the files next to the document. While
ReSpec runs, the runtime therefore records its feature settings in the page, as JSON in a
<script type="application/json" class="md-respec-state"> the export saves with the rest. When a feature
that reads the index while the reader reads is on (hover cards, quick find, the diagram buttons), the record
also holds what those read of it: the id, anchor, title and kind of each element the page holds and, with the
diagram buttons on, the ids of the diagrams on the page that draw it, and nothing else. What the
other features take from the index they add to the page while ReSpec runs, and the copy keeps it. A
published copy runs from that record and fetches nothing. Model text in it is escaped so that it cannot end the script element. A copy
saved by an earlier runtime, without the record, runs with the defaults. The record is data, not code, so a
Content Security Policy's script-src does not need to allow it.Each is off until the document turns it on, works off the markers and, where it says so, the index, and adds nothing to a page that gives it nothing to work with. What a feature adds while ReSpec runs to be read (used-by lists, badges, the URIs beside element headings) is kept in a published copy. What only works with the script (every button, the status filter, dialogs, cards and the breadcrumb) is built again on every load and left out of a saved copy, and so are the rules that hide collapsed or filtered content: a copy opened without the script shows all of it, and offers nothing that does nothing. No control the runtime adds prints, and only one of its dialogs is open at a time.
var respecConfig = {
// …
modeldesk: {
features: {
diagramBacklinks: true,
usedBy: true,
hoverCards: true,
quickFind: true,
copyLink: true,
status: { filter: true },
breadcrumb: true,
metadataDisclosure: { fields: ['identificatie', 'herkomst'] },
layout: true,
},
},
};
diagramBacklinks (index). A diagram button on every element the page's diagrams draw: beside its
heading, after the copy-link button, at the end of its own table row (<tr data-md-element>), and at the end
of each summary-table row (data-md-summary) whose data-md-ref link names it. The button shows the number
of the page's diagrams that draw the element and is named by it ("Toon status in een diagram, 11
diagrammen"); like the copy-link button it shows on hover or focus, and always on a screen without hover. It
opens the full view of the first of those diagrams in document order with the element centred, outlined and
focused (a node as its box, a row inside its box, a line whole); Escape gives focus back to the button. With
more than one diagram, the view's title is a button that lists them, the shown one marked, with buttons to
the previous and next one and where the shown one stands ("1 van 11"); a line at the foot names the element,
its kind and the element it belongs to. A diagram the page shows twice counts once; a diagram the page does
not show, or shows only as an image, is left out, and an element none of the rest draws gets no button. The
button needs the diagram viewer's full view, so it is not added with the viewer off or without the
stylesheet, and it is left out of a saved copy, which builds it again from the recorded index. The address
#<figure id>?focus=<element id> opens a diagram on an element too, on load and when it changes; the viewer
gives each figure an id (md-diagram-<diagram id>, made unique in the page). A copy saved by an earlier
version keeps its "Komt voor in" paragraphs as text.usedBy (index). Under each element heading, "Gebruikt door" with the elements that refer to it, the
index's references read backwards, grouped by kind, each a link. Referrers that share a name are told apart
by the element they belong to.hoverCards (index). Hovering a link to another element (data-md-ref), or giving it keyboard focus,
shows a card with the target's title and kind and its definition, taken from the row or block the pack
marks data-md-definition in the target's own container. The card is the link's description
(aria-describedby), shows after the pointer rests on the link, stays while the pointer moves onto it, and
goes on Escape, on blur or when the pointer leaves (1.4.13). A tap follows the link and shows no card, and a
link that belongs to the element it points at (a constraint's own name) gets none.quickFind (index). Ctrl+K, Cmd+K, or the button in the document header (else before the first
element) opens a dialog that finds the page's elements by name or kind, as you type: a whole name first,
then names starting with the text, words starting with it, names holding it, and kinds. Case and diacritics
do not count. Each hit shows its kind and the elements it sits in. The arrow keys move, Enter goes to the
hit and puts focus there, Escape closes and gives focus back. Focus stays in the dialog while it is open.copyLink. Beside each element heading, a button that copies the link to the element as the reader
has the document open, and with an index, the element's URI with a button of its own. The buttons show
when the pointer is over the heading or one of them has focus, and always on a screen without hover. A
saved copy keeps the URI as text, which always shows without the script. Where
the Clipboard API is refused (a page opened from disk), the copy goes through a selected text field. A
screen reader hears whether it worked.status. A badge with the element's status (data-md-status) on each element heading; with
filter: true, a set of checkboxes before the document's first element, one per status the page uses,
that hides the elements of an unchecked status with their entries in the table of contents, and says how
many it hides. The element the address points at, or into, is never hidden. The MIM documents mark no
status, so they get neither.breadcrumb. A line stuck to the top of the window with the elements down to the one being read, each
a link, in a navigation landmark. It follows the headings and containers crossing the top of the window,
and shows neither on a narrow screen nor on paper. A jump to an anchor stops below it.metadataDisclosure. Collapses each element's administrative metadata (data-md-detail, the pack's
default: identification and provenance) behind a "Toon alle metadata" button of its own, a row closing the
table when the metadata are rows of one table. With fields, it collapses the rows and blocks of those
property keys (data-md-field) instead. The page remembers, per reader and per document, which elements
were opened (localStorage; without it, for the visit). A link into collapsed metadata opens it. Print
shows all of it.layout. On a narrow screen a property table stacks each label over its value, and every other table of
an element scrolls sideways on its own rather than widening the page (1.4.10). In print each element one
level inside the document's outermost element (a model's packages) starts a new page, if it holds elements of
its own; elements that hold none, such as the begrippen of a begrippenkader, follow each other.npm run test:browser holds the reading features to WCAG 2.1 AA: axe-core over the logical reference
document as ReSpec renders it, with every feature on and in each state a reader can bring them into, the
keyboard walk through quick find, the hover cards, the disclosure toggles, the copy-link buttons and a diagram button with its diagrams, and
reflow at 320 pixels.
A bundle emits each diagram as a figure[data-md-diagram] that includes the SVG and holds the PNG as a
fallback. A diagram with a description carries it as a <p> between the drawing and the <figcaption>, named
by the figure's aria-describedby; the runtime leaves it in place and titles the full view with the caption
alone.
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.