A client for the Forgejo REST API: repositories, issues, pull requests, releases with assets, branches, tags and files
[decks]
"@deckyard/forgejo" = "^0.1.0"| Version | Status | Kind | Pin | Requires | Engines | Capabilities |
|---|---|---|---|---|---|---|
| 0.1.0 | live | git | 0b61f7f37b20 | - | jennifer >=0.26.0 | net |
LGPL-3.0-only
0.1.0Times a client asked this registry where to find this deck. Not downloads: the registry only stores metadata, and the code is fetched from its repository directly, so we never see an install and cannot count one. Repeated builds inflate these numbers; installs from an existing lockfile do not appear at all. Counted in UTC.
A client for the Forgejo REST API, for Jennifer programs: Codeberg or a self-hosted Forgejo. Repositories with their settings, collaborators and webhooks; issues, comments, labels and milestones; pull requests, reviews and merging; releases with their assets; branches, tags and files; commits, commit statuses and Forgejo Actions. call and getAll reach every other endpoint. Gitea speaks most of the same API.
jvc add @deckyard/forgejoThis vendors the deck to vendor/<scope>/forgejo/. Without jvc, unpack the src/ subtree of a release archive (<scope>-forgejo-<version>.tar.gz) there.
import "@deckyard/forgejo/" as forgejo;
def c as forgejo.Client init forgejo.client("codeberg.org");
$c = forgejo.withToken($c, fs.readString("/run/secrets/forgejo"));
for (def i in forgejo.issues($c, "me/app", "open")) {
io.printf("#%d %s\n", $i.number, $i.title);
}
def rel as forgejo.Release init forgejo.createRelease($c, "me/app", "1.2.0", "", "", "Notes", false);
forgejo.uploadAsset($c, "me/app", $rel.id, "app.tar.gz", fs.readBytes("dist/app.tar.gz"));Jennifer 0.26.0 or newer, the default jennifer binary (not jennifer-tiny), and the net capability.
tools/check-all.sh # the full gate, as CI runs it
jennifer test src/forgejo_test.j # the test overlay
tools/check-docs.sh # docs against the code
tools/pack.sh dist # build the release archiveLGPL-3.0-only, see LICENSE. Copyright (C) 2026 mplx <[email protected]>.
tools/check-headers.sh checks every source file's SPDX header against deck.toml.