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

ah_code_compiler_sdk

v1.0.8

Published

A modern, cross-platform code compilation SDK by Akash Halder. Easily integrate online code execution into your web apps, CLIs, or automation workflows using a simple and powerful API.

Readme

TypeScript Version Website

An easy-to-use SDK written in Typescript for compiling and executing code. Ideal for building online code editors, education platforms, and developer tools.

Try out the live Online Code Editor & Compiler powered by this SDK: https://www.akashhalder.in/code-compiler


✨ Features

  • Fetch all supported runtimes
  • Execute code in multiple programming languages
  • Fully typed and written in modern TypeScript
  • Includes a built-in interactive CLI code editor
  • Compatible with Node.js projects and CLI tools
  • Also available for the Python ecosystemAHCodeCompiler on PyPI

📦 Installation

> npm i ah_code_compiler_sdk

> bun i ah_code_compiler_sdk

or

> pnpm add ah_code_compiler_sdk

> yarn add ah_code_compiler_sdk

or

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.min.js"></script>

<!-- or -->
 
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/browser/index.global.js"></script>

🚀 Usage

Using CommonJS (ES5)

Make sure you're running in a Node.js environment with CommonJS support (.cjs or no "type": "module" in package.json).

const { CodeCompiler } = require("ah_code_compiler_sdk");

const compiler = new CodeCompiler();
compiler.help() // Displays a CLI based usage example

// Displays all the supported Runtimes by this SDK
compiler.getRuntimes().then(console.log);

compiler.execute({
  language: "python",
  version: "3.10.0",
  files: [
    {
      name: "main.py",
      content: "print('Successfully Installed! ✅')",
    },
  ],
});

Using ModuleJS (ES6) – Recommended

To enable ES Modules, add "type": "module" in your package.json:

{
  "type": "module"
}
import { CodeCompiler } from "ah_code_compiler_sdk";

const compiler = new CodeCompiler();
compiler.help() // Displays a CLI based usage example

// Displays all the supported Runtimes by this SDK
compiler.getRuntimes().then(console.log);

compiler.execute({
  language:"python",
  files:[{
    content:"print('Successfully Installed! ✅')"
  }]
})

Try Out the build in CLI Code Editor:

  • Common JS(ES5):

    const { CLIEditor } = require("ah_code_compiler_sdk")
    
    const editor = new CLIEditor()
    editor.start() // Launches the AH CLI Code Editor
  • Module JS(ES6):

    import { CLIEditor } from "ah_code_compiler_sdk";
    
    const editor = new CLIEditor()
    editor.start() // Launches the AH CLI Code Editor
      

🧠 API Reference

1. new CodeCompiler()

Create an instance of the SDK.

2. sdk.help()

Get help and usage about this SDK and its methods

3. sdk.getRuntimes(): Promise<Runtime[]>

Fetch all supported programming runtimes along with version info.

4. sdk.execute(payload: ExecuteRequest): Promise<ExecuteResponse>

Execute source code in a given language and version.

Payload Structure:

interface ExecuteRequest {
  language: string;
  version: string;
  files: { name: string; content: string }[];
  stdin?: string;
}

Example Languages Supported

  • Python (python3)
  • JavaScript (node)
  • C++
  • Java
  • Go
  • Rust
  • C#
  • ...and many more

Use sdk.getRuntimes() to dynamically fetch the latest list.

📄 License

MIT License © Akash Halder