Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@runefort/core

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@runefort/core

Reference Web Component framework for the Runefort layout protocol

alpha
latest
npmnpm
Version
0.1.0-alpha.1
Version published
Maintainers
1
Created
Source

@runefort/core

Reference Web Component framework for the Runefort layout protocol.

Four custom elements: <rune-floor>, <rune-room>, <rune-claim>, <rune-link>. Plain JavaScript with JSDoc types. No build step. No dependencies. Works in any browser, any framework, or no framework.

Install

<script type="module" src="https://unpkg.com/@runefort/core"></script>
<link rel="stylesheet" href="https://unpkg.com/@runefort/core/theme.css">

Or via npm:

npm install @runefort/core

Use

<rune-floor columns="6" rows="2" editor="vscode">
  <rune-room id="memory" position="0,0" size="3,2"
             label="memory.ex"
             anchor="lib/forge/memory.ex:24"
             state-class="hot"></rune-room>
  <rune-room id="deploy" position="3,0" size="3,2"
             label="deploy.ex"
             anchor="lib/forge/deploy.ex"></rune-room>
  <rune-link from="memory" to="deploy" bidirectional></rune-link>
</rune-floor>

<script type="module">
  import "@runefort/core";

  const floor = document.querySelector("rune-floor");

  // Live state — updates state classes on rooms with bindings.
  floor.bindings = [{
    room: "memory", signal: "kappa",
    thresholds: [
      { if: "< 0.3", class: "cold" },
      { if: "< 0.6", class: "warm" },
      { if: ">= 0.6", class: "hot" }
    ]
  }];
  floor.signals = { kappa: 0.7 };

  floor.addEventListener("rune:open", e => {
    console.log("opening", e.detail.anchorUrl);
  });
</script>

API

See docs/spec/runefort.core.md for the full element reference.

Bundle budget

≤ 5 KB minified+gzipped (hard ship gate). Current size is tracked in CI.

Keywords

layout

FAQs

Package last updated on 27 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts