Skip to content
프로젝트

소개

NodeJS용 GTK 바인딩

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

NODE-GTK

node-gtk

GTK bindings for NodeJS

Usage · Installing · Documentation · Contributing


node-gtk lets you build native GTK apps on linux, macOS and windows with full ESM, TypeScript and CSS hot-reload support. Prebuilt binaries are available for Node.js versions 22, 24 and 26.

A web browser build with node-gtk

Usage

The create tool generates a complete, ready-to-run GTK/Adwaita project, so you can start building immediately after installing GTK4:

npx node-gtk create <your-app>

Also see our hello world, web browser or system monitor examples.

When it's time to ship (Linux for now — see doc/bundling.md):

npx node-gtk flatpak    # a Flatpak users install with one click (Flathub-ready)
npx node-gtk bundle     # a self-contained portable directory / tar.gz

Installing

There are two steps:

  1. Install node-gtk itself (done by the create tool)
  2. Install the native libraries you use (see examples per platform below)

Linux

# archlinux
pacman -S gtk4 libadwaita

# fedora
dnf install gtk4 libadwaita

# ubuntu
# Already installed :)

macOS

brew install gtk4 libadwaita adwaita-icon-theme

Windows

# Already installed :)

[!NOTE] Windows doesn't have the dependencies we need in a package manager, therefore node-gtk ships prebuilt versions of GTK 4 / Adwaita, so npm install node-gtk is all you need if your dependency is in our list of prebuilt libraries.

build from source

Building from source, or contributing? See Building from source.

Documentation

Read our documentation here

Other notes

node-gtk is a gobject-introspection library for nodejs. It makes it possible to use any introspected C library, such as GTK, usable. It is similar in essence to GJS or PyGObject.

MIT License

관련 프로젝트 살펴보기

불러오는 중…