RepositoryJavaScript
gjsify

gjsify/gnome-shell

GJS TypeScript type definitions for GNOME Shell Extensions

82stars
16forks
4issues
3views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: gjs

#1 Repository of the month

1
TINIX TRENDING·Topic: gir

#1 Repository of the week

1
TINIX TRENDING·Topic: gjs

#1 Repository of the week

TypeScript for GNOME Shell

Write GNOME Shell Extensions in TypeScript

Overview

This project provides TypeScript type definitions for GNOME Shell Extensions. It aims to make the development of GNOME Shell Extensions in TypeScript more intuitive and efficient. The project is currently in an experimental phase and greatly benefits from community contributions.

How It Works

The TypeScript types for the used libraries are generated from the .gir files using ts-for-gir and are available as NPM packages. A significant portion of GNOME Shell is written in JavaScript, lacking .gir files. Therefore, these type definitions need to be manually created, which is the primary focus of this project. These additional definitions are manually written and included in this repository. Our build scripts automatically generate *.js (for ESM) and *.cjs files, Ambient Module Definitions, and index files. The structure for these files can be found on ./packages/gnome-shell/src and should align with the structure of GNOME Shell's JavaScript source code, available here. This setup allows contributors to primarily focus on the TypeScript type definitions, with the rest being automatically generated, including the exports in the package.json.

Showcase

  • gTile is a fully typed Gnome extension for tiling and resizing windows
  • Pano is a fully typed Gnome extension that serves as the next-gen Clipboard Manager
  • Rounded Window Corners Reborn is a fully typed Gnome extension for rounded window (all) corners

We are happy if you link your project through a PR here 😊

Contributing

Every contribution, regardless of its size, is incredibly valuable. If you're using these types and discover missing types necessary for your GNOME Shell Extension, contributing just those types is immensely helpful. This approach ensures the types are tested in real-world scenarios, vital for a project as extensive as the GNOME Shell.

Getting Started:

  • To add TypeScript type definitions, mimic the data structure of the GNOME Shell's JavaScript source code. Visibility modifiers (private, protected, public) must not be included.
  • Contributions can range from adding a few types you need for your project to more extensive contributions.

Development Instructions:

Build the types:

yarn build:types
# or
cd ./packages/gnome-shell
yarn build

Validate the types:

yarn validate:types

# or
cd ./packages/gnome-shell
yarn validate

Build the example:

yarn build:example

# or
cd ./examples/hello-world
yarn build

Validate the example:

yarn validate:example

# or
cd ./examples/hello-world
yarn validate

How to Contribute:

  1. Fork this repository.
  2. Create a new branch for your contribution.
  3. Make your changes.
  4. Submit a pull request with a clear description of the improvements or additions.

Your contributions help in building a comprehensive type definition resource for GNOME Shell Extensions, which in turn fosters a wider adoption and, subsequently, more contributions.

Contact and Support

For any questions or support, feel free to open an issue in the repository.

Thank you for contributing to the GNOME Shell Type Definitions project!

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
gjsify/ts-for-gir

TypeScript type definition generator for GObject introspection interfaces

291
Oct 30, 2026
RepositoryTypeScript
microsoft/vscode

Visual Studio Code

195.9k
Nov 30, 2026
RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

213.0k
Dec 3, 2026
RepositoryShell
ohmyzsh/ohmyzsh

🙃 A delightful, community-driven framework for managing your zsh configuration. Built by 2,600+ contributors, with hundreds of plugins (git, rails, laravel, node, python, docker, kubectl, aws, and more), themes to spice up your terminal, and automatic updates to keep your command line feeling like home.

191.0k
Nov 29, 2026
RepositoryJavaScript
GSConnect/gnome-shell-extension-gsconnect

KDE Connect implementation for GNOME

3.8k
Oct 18, 2026
RepositoryJavaScript
Schneegans/Burn-My-Windows

🔥 Disintegrate your windows with style.

3.1k
Nov 22, 2026
RepositoryJavaScript
aunetx/blur-my-shell

Extension that adds a blur look to different parts of the GNOME Shell, including the top panel, dash and overview

2.4k
Nov 28, 2026
RepositoryTypeScript
DefinitelyTyped/DefinitelyTyped

The repository for high quality TypeScript type definitions.

51.5k
Nov 27, 2026
RepositoryKotlin
gtk-kn/gtk-kn

Kotlin/Native bindings for the GTK and other GObject-based libraries (read only mirror of GitLab)

59
Feb 14, 2025