The library
require("@pencere/<name>") is a module of the kit's library: Luau that the kit writes on this page API alone (Sections 2.1 to 2.5, and nothing of the interpreter's besides), at the kit's version, for what every page would otherwise write again.
-
@pencere/syntax
A language that colours an editor is the page's, and
@pencere/syntaxmakes one the way CodeMirror'sStreamLanguagedoes. -
@pencere/languages
The languages an editor reads are the page's, and
@pencere/languages(withlocal languages = require("@pencere/languages")) knows the kit's as CodeMirror's@codemirror/language-datadoes: a description of each says what it is called and how a file in it is told, and costs nothing to keep; the language is built from one only when a page loads it. -
@pencere/fuzzy
What a person types, found in texts the way a picker, a palette or a filter finds it (
local fuzzy = require("@pencere/fuzzy")). -
@pencere/keys
Keys as a page writes them (
"cmd+shift+k", Section 2.1), as a person reads them (local keys = require("@pencere/keys")). -
@pencere/markdown
@pencere/markdown(withlocal markdown = require("@pencere/markdown")) reads Markdown and draws it. -
@pencere/terminal
Editors that look as the person's terminal draws its cursor and its selection (
local terminal = require("@pencere/terminal")). -
@pencere/ui
The components of a page (
local ui = require("@pencere/ui")), written on the page API alone: a component is a method of a context that the page makes once (local u = ui.new()) and calls inrenderwith a name and its props, and what the person does with it comes back fromhandleas actions. -
@pencere/charts
Charts drawn on a canvas, made in two halves: what a chart is (its model) and how it is painted (a painter) (
local charts = require("@pencere/charts")).
Each line leads to the module's section of the page API, where
everything it has is said. What @pencere/ui draws is shown, one by one, in
the components. An app that uses the others is
the editor among the examples.