REFERENCE / VOCABULARY

Glossary

A plain-language dictionary for the words used throughout these guides.

REFERENCEExact signatures, behavior and vocabulary. Look things up here; learn them in the Guide.
Alpha / 0.2 — These pages document JanelKit 0.2 and its packages. Each series (0.1, 0.2…) may change the public API, always with migration notes: see Changes and migration. The website uses Svelte; the desktop examples use Python and JanelKit, not JavaScript.

Words for what you see

You do not need a history of web development to learn a desktop UI framework. Start with the visual objects: a window contains elements; containers arrange them; controls let the user act. These words describe responsibilities, not separate programming languages.

TermMeaning in JanelKit
GUI / user interfaceThe visible window and controls a person uses to interact with your Python program.
FrameworkA library plus a structure for your app: it handles rendering, events, and connections so you describe the application behavior.
Element / tagOne template building block, written with angle brackets, such as <text> or <column>.
ContainerAn element that arranges children, such as <row>, <column>, or flex.
ControlA building block that displays information or accepts input: <button>, <textfield>, <checkbox>.
Property / attributeA named setting on an element or component, such as width={400} or title="Notes".
Parent / childAn outer element or component and something it contains. This is a relationship in the interface tree.

Words for organizing your code

A component is a reusable part of an interface. A .janel file packages its setup logic, template, and optional styles. Instantiating a component means creating one use of it; two uses normally have independent local state.

TermMeaning in JanelKit
Single-file componentOne .janel file containing a script, one template root, and optionally style rules.
TemplateA declaration of which elements exist and how their properties depend on Python values.
DeclarativeDescribe what the interface should represent instead of manually changing each visual object.
InstanceOne live use of a component, with its own Python setup and local state.
PropAn input supplied by a parent to a child component, declared with prop().
Custom eventA child-to-parent notification declared with event() and emitted with .emit(...).
<slot>A position in a child template where the parent can supply interface content.
Built-in element / component tagLowercase tags such as <text> and <button> are built into JanelKit. A tag with a capital letter, such as <TodoItem> or <Pages>, is a component the script imports, from the project or from a package.
PackageAn add-on of the ecosystem, such as janelkit-router or janelkit-store, installed on its own and built only on the public API of the core.

Words for changing data

Reactivity connects data changes to the output that depends on them. Think of a formula that knows which input cells it reads: changing one input invalidates the relevant result, not every unrelated value. That comparison explains dependency tracking; it does not mean JanelKit is a spreadsheet engine.

TermMeaning in JanelKit
StateA tracked value created with state(...); read or write .value in Python.
BindingA connection from a Python expression to an element property or displayed text.
Two-way bindingAn input and state update each other, expressed with bind:value or bind:checked.
DependencyA reactive value read while calculating another value, binding, or effect.
Computed valueA cached value derived from reactive inputs with @computed.
EffectA function rerun for a side effect when the reactive values it reads change.
BatchA group of state changes whose dependent effects are flushed together.
StoreWith janelkit-store, a class that holds the data several views or windows share: reactive fields, actions that record each change, and one instance per application.

Words for execution and lifetime

The script setup runs when a component instance is created; reactive updates do not rerun the whole script. Mounting concerns the visible view becoming available. Unmounting or destroying an instance releases its owned resources. Hiding a view does not always destroy it: preserved pages and hidden blocks can remain alive.

TermMeaning in JanelKit
Qt Quick / PySide6The rendering system and Python bindings used to display desktop interfaces.
Compiler / generated QMLThe transformation from .janel source into Qt view declarations and runtime information. User expressions still evaluate in Python.
Event loopThe loop that processes input, timers, and scheduled work so the window remains interactive.
UI threadThe thread responsible for the interface; state changes that affect it belong here.
Coroutine / asyncA Python operation that can pause at await so other work can continue. It is not automatically another thread.
Background workerA separate thread used for blocking work; return plain results rather than touching state or UI there.
CleanupStopping or releasing something the component started when its owner is destroyed.
FramesA stream of images for <video>, pushed from any thread; only the latest one is shown, and images never go through state.
SessionWhat lasts one run of an application, or one test mount: packages keep their per-application data in it, including a data folder.

Check your understanding

Imagine a search form. The <textfield> is a control, the <column> around it is a container, and the whole SearchPanel.janel file is a component. Its query is state. bind:value connects the field to that state. A <button> click is an event. The function called by that click is a handler. A task can represent the search loading state and result.

Practice: identify those same responsibilities in the first-app guide before learning another API. If a word is unfamiliar, return to this page rather than assuming it means exactly what it means in a browser framework.

How it works

  1. A framework API is easier to remember when you know which responsibility it serves: data, appearance, communication, or lifetime.
  2. You can use Python modules for ordinary services. Not every function or data structure needs to become a component.

What you should see

You can describe which data a small component owns, which input it receives, which events it reports, and when its resources should stop.

Common mistakes

  • Do not confuse this Svelte website with the desktop runtime it documents. The site is a browser app; JanelKit builds Python desktop apps.

English documentation based on the JanelKit source. For additional details, browse the source docs ↗.