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 🙏

© 2025 – Pkg Stats / Ryan Hefner

gyatscript

v1.0.2

Published

A Tik-Tok Brainrot Scripting Language

Readme

🚀 GyatScript

Welcome to GyatScript, the ultimate Tik-Tok Brainrot Scripting Language! This project is a custom scripting language designed for fun and educational purposes, combining modern internet slang with programming concepts.

NPM Version NPM Downloads GitHub License Website

🌟 Introduction

GyatScript is a simple yet scripting language with syntax inspired by popular trends and memes. It is designed for fun purposes only

✨ Features

  • Code Blocks: All code must be wrapped in sup sigma and duh sigma blocks
  • Variable Declarations: Declare variables using ts
  • Print Statements: Output to console using ong
  • Conditional Statements: Use icl for if-else conditions
  • Loops: Create loops with gng
  • User Input: Get user input with spit
  • Lists: Create and manipulate lists using gyatlist
  • Math Operations: Full support for arithmetic operations
  • String Operations: String concatenation and manipulation
  • Based Error Messages: Get roasted with slang-filled error messages when you mess up

⚙️ Installation

To install GyatScript globally (recommended):

npm install -g gyatscript

For use in a project:

npm install gyatscript

🚀 Usage

Run a GyatScript file:

gyat <filename.gyat>

Example:

gyat index.gyat

💡 Examples

1. Basic Code Structure

sup sigma
    ts message = "Hello World";
    ong(message);
duh sigma

// This code outside the block will be ignored
ts ignored = "This won't run";

2. Math Operations

sup sigma
    ts x = 10;
    ts y = 5;
    ts result = x + y;
    ong("Sum is:");
    ong(result);
duh sigma

3. Lists and Indexing

sup sigma
    ts numbers = gyatlist(1, 2, 3, 4, 5);
    ong(numbers[2]);  // Prints 3 (zero-based indexing)
duh sigma

4. Conditional Statements

sup sigma
    ts age = 20;
    icl (age >= 18) {
        ong("You are an adult");
    }
duh sigma

5. Loops

sup sigma
    ts counter = 0;
    gng (counter < 3) {
        ong("Counter is:");
        ong(counter);
        ts counter = counter + 1;
    }
duh sigma

6. User Input

sup sigma
    ong("What's your name?");
    ts name = spit("Enter name:");
    ong("Hello,");
    ong(name);
duh sigma

7. String Concatenation

sup sigma
    ts greeting = "gyat";
    ts fullGreeting = greeting + " script";
    ong(fullGreeting);  // Prints "gyat script"
duh sigma

🚨 Error Messages

GyatScript provides entertaining error messages in internet slang:

| Error Type | Example Message | |------------|----------------| | Missing Code Block | "U aint no sigma fr fr... where's your sup sigma and duh sigma at? 💀" | | Empty Code | "hell no dude skill issue... your code block empty af 💀" | | Syntax Error | "ur gyat level is too low... can't even write proper code smh 🤦‍♂️" | | Variable Not Found | "skill issue detected: using variables that don't exist 💀" | | Invalid Expression | "no cap fr fr... that expression ain't it chief 🚫" | | Loop Error | "ur loop game weak af no cap 🔄❌" | | Invalid Declaration | "bruh moment... that variable declaration is bussin't 😤" | | Print Error | "ong fr fr... can't even print properly 🖨️❌" | | Input Error | "my brother in christ... your input game weak 📉" | | Condition Error | "that condition looking real sus rn 👀" |

📜 Language Reference

| Command | Description | Example | |------------|--------------------------------------|----------------------------------------| | ts | Declare or assign variables | ts x = 42; | | ong | Print output | ong("Hello World"); | | icl | Conditional statement (if-else) | icl (x > 5) { ... } | | gng | Loop statement | gng (i < 10) { ... } | | spit | Get user input | ts input = spit("Enter value:"); | | gyatlist | Create a list | ts list = gyatlist(1, 2, 3); |

🔍 Data Types

GyatScript supports:

  • Numbers (integers and decimals)
  • Strings (text enclosed in quotes)
  • Lists (created using gyatlist)
  • Boolean expressions (for conditions)

🤝 Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Submit a pull request

🐛 Bug Reporting

Found a bug? Please open an issue with:

  • Description of the bug
  • Steps to reproduce
  • Expected vs actual behavior
  • Code sample demonstrating the issue

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.

🔄 Upcoming Features

Stay tuned for:

  • Functions and procedures
  • More built-in list operations
  • File I/O operations
  • Advanced math functions
  • Custom type definitions
  • More based error messages