DatumHuePlatform v0.0.24datumhue.com
Contents

namespacePackage Catalog9 functions

datumhue.packages

Browse the packages the workstation knows about. Reads return whatever the workstation has at the moment of the call and the catalog stays current automatically.

Returns handles
PackageRef, Subscription

Functions 9

datumhue.packages.list

function
datumhue.packages.list(opts?: packages.ListOptions) -> PackageRef[]

Array of PackageRef userdata for every visible catalog entry.

Example
for _, ref in ipairs(datumhue.packages.list({ kind = "app" })) do
    print(ref.name, ref:version())
end

opts packages.ListOptions options 2 keys, 2 inherited

KeyTypeDefaultDescription
From packages.FilterBase
kind"app" | "library" | "asset_pack"every kindRestrict results to one package kind.
namespacestringevery namespaceRestrict to one registry namespace.

datumhue.packages.search

function
datumhue.packages.search(opts?: packages.SearchOptions) -> PackageRef[]

Array of PackageRef userdata matching a text / tag filter.

Example
local found = datumhue.packages.search({
    query = "*chess*",
    tags = { "game" },
})
print(#found)

opts packages.SearchOptions options 4 keys, 2 inherited

KeyTypeDefaultDescription
querystringevery entry matchesGlob pattern (* / ?) matched against entry name and description.
tagsstring[]no tag filterTags an entry must all carry to match.
From packages.FilterBase
kind"app" | "library" | "asset_pack"every kindRestrict results to one package kind.
namespacestringevery namespaceRestrict to one registry namespace.

datumhue.packages.info

function
datumhue.packages.info(name: string, opts?: packages.InfoOptions) -> PackageRef

Look up a single entry by exact @scope/name; raises when no entry matches.

Example
local hello = datumhue.packages.info("@datumhue/hello")
datumhue.app.spawn({ package_ref = hello })

opts packages.InfoOptions options 1 key

KeyTypeDefaultDescription
namespacestringthe name's @scope, or datumhue for an @datumhue nameCatalog namespace to look up in.

datumhue.packages.versions

function
datumhue.packages.versions(name: string, opts?: packages.InfoOptions) -> string[]

Every published version of a @scope/name except the yanked ones, newest first; empty when the name is unknown to the catalog.

Example
local versions = datumhue.packages.versions("@datumhue/hello")
-- Newest first.
print(versions[1])

opts packages.InfoOptions options 1 key

KeyTypeDefaultDescription
namespacestringthe name's @scope, or datumhue for an @datumhue nameCatalog namespace to look up in.

datumhue.packages.installed

functionneeds packages
datumhue.packages.installed(opts?: packages.InstalledOptions) -> PackageRef[]

Array of PackageRef userdata for every installed package, sorted by namespace then name. Each ref reflects the version actually installed, which may be older than the catalog's latest. Reads this workstation's state, without asking the deployment.

Example
for _, ref in ipairs(datumhue.packages.installed({ kind = "app" })) do
    print(ref.name, ref:version())
end

opts packages.InstalledOptions options 2 keys, 2 inherited

KeyTypeDefaultDescription
From packages.FilterBase
kind"app" | "library" | "asset_pack"every kindRestrict results to one package kind.
namespacestringevery namespaceRestrict to one registry namespace.

datumhue.packages.registries

function
datumhue.packages.registries() -> packages.RegistryInfo[]

One row per connected package registry, sorted by namespace. Empty until a registry has been reached.

returns packages.RegistryInfo record 2 keys

KeyTypeDescription
namespacestringThe registry's namespace.
availablebooleanWhether the registry can currently be reached. Checked periodically, and true until the first check. An unreachable registry keeps its catalog entries visible, but installing content from it that is not already on this device fails.

datumhue.packages.on_change

function
datumhue.packages.on_change(callback: fun(change: packages.ChangeEvent)) -> Subscription

Register a callback fired whenever a catalog entry is added or updated. The callback receives a change table with kind, namespace, and package. Returns a subscription; call :unsubscribe() to stop receiving changes.

datumhue.packages.on_install_change

functionneeds packages
datumhue.packages.on_install_change(callback: fun(change: packages.InstallChangeEvent)) -> Subscription

Register a callback fired whenever the installed-package library changes. Returns a subscription; call :unsubscribe() to stop receiving changes.

datumhue.packages.on_registry_change

function
datumhue.packages.on_registry_change(callback: fun(change: packages.RegistryInfo)) -> Subscription

Register a callback fired whenever a connected registry's reachability flips (see registries). Returns a subscription; call :unsubscribe() to stop receiving changes.

Types 7

packages.ChangeEvent

record

record 3 keys

KeyTypeDescription
kindstringWhat changed: "added" for a newly listed entry, "updated" for a listed entry whose details or content changed.
namespacestringThe catalog namespace it lives in.
packagePackageRefA reference to the changed package.

Used by: datumhue.packages.on_change

packages.FilterBase

options

options 2 keys

KeyTypeDefaultDescription
kind"app" | "library" | "asset_pack"every kindRestrict results to one package kind.
namespacestringevery namespaceRestrict to one registry namespace.

Extended by: packages.InstalledOptions, packages.ListOptions, packages.SearchOptions

packages.InfoOptions

options

options 1 key

KeyTypeDefaultDescription
namespacestringthe name's @scope, or datumhue for an @datumhue nameCatalog namespace to look up in.

Used by: datumhue.packages.info, datumhue.packages.versions

packages.InstallChangeEvent

record

record 3 keys

KeyTypeDescription
kind"installed" | "updated" | "uninstalled"What happened to the library entry.
namespacestringThe registry namespace the entry belongs to.
packagePackageRefThe affected library entry. For "uninstalled" it is built from the removed record, so it stays complete even when the version is no longer in any catalog.

Used by: datumhue.packages.on_install_change

packages.InstallChangeKind

enum
ValueDescription
"installed"The package was added to the library.
"updated"An installed package was replaced by a different version.
"uninstalled"The package was removed from the library.

Nested in: packages.InstallChangeEvent

packages.Kind

enum
ValueDescription
"app"
"library"
"asset_pack"

Used by: Package:kind

Nested in: packages.FilterBase

packages.RegistryInfo

record

record 2 keys

KeyTypeDescription
namespacestringThe registry's namespace.
availablebooleanWhether the registry can currently be reached. Checked periodically, and true until the first check. An unreachable registry keeps its catalog entries visible, but installing content from it that is not already on this device fails.

Used by: datumhue.packages.registries, datumhue.packages.on_registry_change

datumhue.com

(c) 2026 Shuusei AB. Quote excerpts of this manual, with attribution to DatumHue, in your own documentation, tutorials, course materials, reviews, and other writing or video. Republishing it in whole or in substantial part needs written permission: support@datumhue.com.

Victor Mono is licensed under the SIL Open Font License 1.1
Copyright (c) 2024, Rune Bjørnerås (https://github.com/rubjo)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

Try

    ↑↓ selectEnter openTab filter

    Settings

    Theme
    Text
    Print

    Keyboard shortcuts

    / or Ctrl KSearch
    ↑ ↓ EnterPick a result
    TabNext result filter
    j kNext or previous entry
    [ ]Previous or next page
    yCopy a link to the current entry
    ?These shortcuts
    EscClose

    On this page