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

gxlang

v0.4.2

Published

GX — brain-first programming language for building transparent, auditable AI assistants. Regex, Date/Time, CSV/YAML/TOML, TypeScript+Go bridges, AI tool use, streaming, persistent memory, vector store.

Readme

GX Language

Brain-first programming language for building transparent, auditable AI assistants.

npm version Crates.io License: MIT Platform

Every AI assistant today is a black box. GX makes it a glass box — every decision explicit, every AI call logged, every agent fully auditable. Built in Rust. No cloud lock-in.

Install

npm install -g gxlang
gx --version   # gx 0.4.0

Downloads the correct native binary for your platform (macOS arm64/x64, Linux x64/arm64, Windows x64). No Rust required.

Quick Start

gx init my-agent
cd my-agent
gx run main.gx

What's New in v0.4.0

The biggest GX release — now genuinely competitive with Python for agent-building.

| Feature | Example | |---------|---------| | Regex | regex_find(text, "\\$([0-9.]+)") | | Date/Time | date_diff(date_parse("2024-01-01"), date_now(), "days") | | CSV/YAML/TOML | csv_parse(read_file("data.csv")) | | .env loading | load_env(".env") · get_env("KEY", "default") | | TypeScript bridge | use ts.mylib → calls ts-node/tsx automatically | | Go/Binary bridge | use binary "./my_go_service" | | AI tool use | ask openai { prompt: "...", tools: [my_tool] } | | Streaming AI | ask openai { prompt: "...", stream: true } | | Persistent memory | persist_memory() / load_memory() → SQLite | | Vector store | vector_store_search(store, embed(query), 5) | | Schema validation | schema_validate(data, { name: "string" }) | | Await block | await { a: http_get(url1), b: http_get(url2) } into results | | Retry backoff | retry(fn() { risky_call() }, 5, { backoff: "exponential" }) | | Observability | trace_log("event", { data: value }) → JSONL to stderr |

Real Agent Example

import "utils/data.gx" as data

tool "lookup_customer" {
  description: "Look up customer by ID"
  execute(customer_id) {
    return http_get("https://api.example.com/customers/{customer_id}").data
  }
}

agent "support_bot" {
  remember { session_count = 0 }

  when started {
    load_env(".env")
    load_memory()
    memory.session_count += 1

    // Validate incoming request
    spec = { query: "string", customer_id: "number" }
    check = schema_validate(input, spec)
    if !check.ok {
      say "Invalid request: " + check.errors[0]
      return
    }

    // Ask AI with tool use
    response = ask openai {
      prompt:  input.query,
      tools:   [lookup_customer],
      model:   "gpt-4o",
      stream:  true
    }

    persist_memory()
    say response.text
  }
}

Language Interop

GX can call into any language via subprocess bridges:

use js.axios          // Node.js
use ts.analytics      // TypeScript (auto-detects tsx or ts-node)
use py.pandas         // Python
use binary "./svc"    // Any compiled binary (Go, Rust, Java, .NET)
use go "./service"    // Go binary with JSON protocol

All Built-ins

ask · embed · http_get/post/put/delete · read_file · write_file · json_stringify/parse · csv_parse/stringify · yaml_parse/stringify · toml_parse/stringify · regex_test/find/find_all/replace/split/captures · date_now/parse/format/diff/add/parts · vector_store_new/add/search · cosine_similarity · schema_validate · persist_memory · load_memory · load_env · get_env · retry · trace_log · await {} · db_query/exec · base64_encode/decode · readline · shell · and more

v0.3.0 Features Still in v0.4.0

  • Module system: import "file.gx" as alias
  • ! (not) operator: if !result.ok { ... }
  • Range slicing: text[0..5], arr[1..4]
  • Integer JSON: json_stringify({n: 50})"n":50 (not 50.0)
  • Standalone slice() / merge()
  • output usable as a plain variable name
  • readline() for stdin
  • {{ }} brace escaping in strings

Full Documentation

github.com/elgrhy/gx

License

MIT — © 2025 Ahmed Elgarhy / DEVJSX LIMITED (London, UK)