npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@geastack/linux

v0.1.9

Published

Native SDL2 targets for Raspberry Pi OS and Sailfish OS GeaStack apps.

Readme

GeaStack Linux

Native Linux desktop target support for GeaStack.

This repo contains the targets that let Gea applications run as native Linux desktop apps. Apps render through the shared gea framework raster pipeline (RGB565 canvas → dirty-rect SDL2 texture upload) into a resizable desktop window, with mouse, touchscreen (multi-touch), keyboard, and scroll-wheel input mapped onto the framework input pipelines, plus persistent localStorage (file-backed) and HTTP(S) fetch (libcurl). The targets include Raspberry Pi OS on the Raspberry Pi 5 and Sailfish OS.

What Is Here

| Path | Purpose | | --- | --- | | targets/raspberry-pi-os | Raspberry Pi OS (Bookworm+ desktop, labwc/Wayland) SDL2 target: platform sources, build script, and target docs. | | targets/sailfish-os | Sailfish OS 5.1 target: its own platform sources, host code generation, portable CMake project, and i486 RPM packaging. |

Quick Start

The app depends on @geastack/linux and on the gea CLI (@geastack/cli 0.1.104 or later, which is where the raspberry-pi-os target arrived; the CLI is a separate package and npx gea does not fetch it on demand), and declares the target in the gea block of its package.json:

npm install @geastack/linux
npm install --save-dev @geastack/cli
"gea": {
  "id": "my-app",
  "entry": "index.tsx",
  "targets": { "raspberry-pi-os": true }
}

From the app directory, build the real native SDL target:

npx gea build --target raspberry-pi-os

This command only builds; it never launches or deploys. The executable is dist/raspberry-pi-os/<app-id>/<app-id> under the app. It uses the shared compiler and raster renderer, with no browser fallback. The build script (targets/raspberry-pi-os/build-raspberry-pi-os.sh) is started by the CLI and refuses to run on its own.

For an AArch64 cross build, provide CC/CXX as Clang with lld installed (the cross link uses -fuse-ld=lld), an absolute GEA_LINUX_SYSROOT with GCC 14 target libraries (usr/lib/gcc/aarch64-linux-gnu/14), staged development roots GEA_LINUX_SDL_ROOT, GEA_LINUX_CURL_ROOT and GEA_LINUX_FREETYPE_ROOT, and the matching runtime libraries GEA_LINUX_SDL_LIBRARY, GEA_LINUX_CURL_LIBRARY and GEA_LINUX_FREETYPE_LIBRARY. All of these are required. GEA_LINUX_LIBRARY_DIR (optional, absolute) adds a directory for the linker to search and to resolve transitive libraries from. These inputs are explicit; the target does not install packages or modify a sysroot. GEA_BUILD_JOBS bounds compilation to 1–16 jobs (default 2). GEA_LINUX_ROOT selects a local package checkout when developing the CLI/target together.

Click and drag with the mouse (it acts as the touch finger); the wheel scrolls; the keyboard types into focused inputs; F11 toggles fullscreen; Esc is delivered to the app as a normal key; closing the window quits. See targets/raspberry-pi-os/README.md for window size/scale/DPR/storage knobs and target architecture.

For Sailfish OS, use the standalone Bash or PowerShell build script described in targets/sailfish-os/README.md.

Dependencies

  • build-essential, pkg-config, libsdl2-dev (SDL 2.0.22 or later), libcurl4-openssl-dev, libfreetype-dev (Debian/Raspberry Pi OS packages). The build stops if sdl2-config or the freetype2 pkg-config module is missing.
  • Node.js 22 or later, which @geastack/cli requires. Debian Bookworm's nodejs package is older; install Node 22 from nodejs.org, NodeSource or a version manager.
  • The rest of the stack from npm: @geastack/linux brings in @geastack/core, @geastack/compiler and @geastack/geatsc-plugin-gea, which carry the codegen toolchain. @geastack/cli is installed separately (above).

Audio is not implemented on Raspberry Pi OS: rpios_audio.cpp is a silent stub, so sound APIs run without output.

How This Fits The Stack

Linux targets consume compiled Gea apps and present the framework's software raster through a desktop window system. This repo is the Linux platform adapter layer. It owns the SDL2 display/input glue, the Linux storage/network backends, and Linux-specific target build scripts.

Headless HTTP prerender

The HTML Renderer Cloudflare build compiles its HTTP server with geatsc and supplies the generated C++ through GEA_LINUX_PRERENDER_HTTP_SOURCE. The build also takes the app host headers in GEA_LINUX_PRERENDER_HTTP_INCLUDE and the node-compat checkout in GEA_NODE_COMPAT_ROOT. It links the server into the Linux renderer, which starts it with --gea-prerender-http. This mode requires the native libpng development package.

Maintenance Notes

  • Framework sources and include roots come from the shared manifest core/gea_sources.sh — never hardcode framework source lists in target build scripts.
  • Keep the target platform files thin: platform glue implementing the gea::platform::* / StorageService / fetch-seam surfaces. Behavior belongs in the shared framework packages.
  • This target excludes core's runtime.cpp and runs its own frame loop, so the per-frame plumbing runtime.cpp normally does (key/rotary input drains, Storage.load()/flushPending()) is replicated in rpios_main.cpp — if runtime.cpp grows new per-frame duties, mirror them there.
  • When adding target behavior, update the target README in the same change.

License

Apache-2.0 (see LICENSE). You can ship closed-source products built on it. The only GeaStack code under a different license is the embedded board support (targets and @geastack/chips, GPL-3.0-only): shipping closed-source firmware through those needs a commercial license. Contact [email protected] for commercial terms, support and hosted builds.