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

@gandib/g

v1.0.5

Published

An interpreted custom programming language built with TypeScript.

Readme

# 🚀 G Language

<p align="center">
  <img src="https://raw.githubusercontent.com/github/explore/main/topics/typescript/typescript.png" width="120" />
</p>

<p align="center">
  <b>A modern compiled programming language built with TypeScript</b>
</p>

<p align="center">
  ⚡ Bytecode VM • 🧠 Compiler • 🔍 LSP • 🎨 VS Code Extension
</p>

---

# ✨ Features

- ⚡ Compiled to Bytecode
- 🧠 Custom Virtual Machine (VM)
- 🔍 Full Lexer + Parser + AST
- 🚀 Fast Runtime
- 🎨 VS Code Syntax Highlighting
- 🧩 Language Server Protocol (LSP)
- 💡 IntelliSense & Hover Support
- 🔁 Functions & Loops
- 📦 CLI Runtime
- 🛠 Built with TypeScript

---

# 📦 Installation

## Install globally

```bash
npm install -g @gandib/g

Verify installation:

g --version

🚀 Quick Start

Create a file:

hello.g

Example:

let x = 10
show x + 5

func hello
    show "Hello from G Language"
end

call hello

repeat 3
    show "Loop running"
end

func add a b
    show a + b
end

call add 5 10

Run the program:

g run hello.g

Output:

15
Hello from G Language
Loop running
Loop running
Loop running
15

🖥 REPL Mode

Start interactive mode:

g

Example:

Welcome to G Language REPL

g > let x = 10
g > show x
10

Exit REPL:

exit

📚 Language Syntax

Variables

let name = "G Language"
let age = 10

Output

show "Hello World"
show age

Math

let x = 10
show x + 20

Functions

func greet
    show "Hello"
end

call greet

Function Arguments

func add a b
    show a + b
end

call add 5 10

Loops

repeat 5
    show "Loop"
end

🧠 VS Code Extension

Install the official VS Code extension from the Marketplace.

Search for:

G Language

Features:

  • 🎨 Syntax Highlighting
  • 💡 IntelliSense
  • 🔍 Hover Information
  • ❌ Error Diagnostics
  • ⚡ Autocomplete
  • 🧠 Compiler Integration

🏗 Compiler Architecture

Source Code (.g)
       ↓
     Lexer
       ↓
     Parser
       ↓
       AST
       ↓
    Compiler
       ↓
    Bytecode
       ↓
   Virtual Machine
       ↓
      Output

📁 Project Structure

g-language/
│
├── src/
│   ├── lexer.ts
│   ├── parser.ts
│   ├── ast.ts
│   ├── compiler.ts
│   ├── bytecode.ts
│   ├── vm.ts
│   └── interpreter.ts
│
├── bin/
│   └── g.ts
│
├── vscode-extension/
│   ├── client/
│   ├── server/
│   └── syntaxes/
│
├── examples/
│   └── hello.g
│
└── package.json

⚙️ Build From Source

Clone repository:

git clone https://github.com/gandib/g
cd g

Install dependencies:

npm install

Compile TypeScript:

npx tsc

Run locally:

node dist/bin/g.js run hello.g

🧪 Example Programs

Hello World

show "Hello World"

Calculator

func add a b
    show a + b
end

call add 20 30

Loop Example

repeat 5
    show "Running..."
end

🛣 Roadmap

  • [x] Lexer
  • [x] Parser
  • [x] AST
  • [x] Bytecode Compiler
  • [x] Virtual Machine
  • [x] VS Code Extension
  • [x] Language Server
  • [ ] Debugger
  • [ ] Static Type System
  • [ ] Classes
  • [ ] Modules
  • [ ] Imports
  • [ ] Package Manager
  • [ ] JIT Compiler
  • [ ] Native Compilation

🤝 Contributing

Contributions are welcome.

git clone https://github.com/gandib/g
cd g
npm install

📜 License

MIT License


👨‍💻 Author

Created by Gandib Dhari Roy


⭐ Support

If you like G Language:

⭐ Star the repository 🚀 Share the project 🧠 Build cool things with G