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

skittles

v0.4.2

Published

TypeScript Smart Contract Language for the EVM

Readme

Skittles

Skittles is a TypeScript-to-EVM bytecode compiler that enables developers to write Ethereum smart contracts using TypeScript syntax. It provides a familiar development experience for TypeScript developers while generating efficient EVM bytecode for deployment on Ethereum and compatible networks.

Why Skittles?

Writing smart contracts in Solidity can be challenging for developers coming from traditional web development backgrounds. Skittles bridges this gap by allowing you to:

  • Write smart contracts in TypeScript, a language you already know and love
  • Leverage TypeScript's type system for better development experience
  • Use familiar programming patterns and constructs
  • Take advantage of modern development tools and IDE support
  • Maintain consistency between your frontend and smart contract codebases

Features

  • Full TypeScript support with type checking
  • Class-based contract development
  • Event handling
  • Inheritance and interfaces
  • Access modifiers (public, private, protected)
  • Mapping and array support
  • Built-in Ethereum-specific types and globals
  • Comprehensive testing framework
  • Hardhat integration

Installation

npm install skittles
# or
yarn add skittles

Quick Start

Here's a simple example of a Skittles smart contract:

import { address, msg, SkittlesEvent } from "skittles/lib/types/core-types";

interface TransferEvent {
  from: address;
  to: address;
  amount: number;
}

export class Token {
  private _balances: Record<address, number>;
  Transfer: SkittlesEvent<TransferEvent>;

  constructor() {
    this._balances = {};
  }

  transfer(to: address, amount: number): boolean {
    if (this._balances[msg.sender] < amount) {
      return false;
    }

    this._balances[msg.sender] -= amount;
    this._balances[to] += amount;

    this.Transfer.emit({
      from: msg.sender,
      to,
      amount,
    });

    return true;
  }

  balanceOf(account: address): number {
    return this._balances[account];
  }
}

Project Structure

  • src/ - Core compiler implementation
  • contracts/ - Example contracts and implementations
  • test/ - Test suite
  • skittles.config.ts - Configuration file

Configuration

Create a skittles.config.ts file in your project root:

import { SkittlesConfig } from "skittles/lib/types/core-types";

const config: SkittlesConfig = {
  optimizer: {
    enabled: true,
    runs: 200,
  },
};

export default config;

The configuration options include:

  • optimizer.enabled: Enable/disable the optimizer
  • optimizer.runs: Number of runs for the optimizer (default: 200)

Development Status

Skittles is currently in active development. While it's broadly functional, some features are still being implemented. Check the TODO.md file for the latest status and planned features.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

Documentation

For more detailed documentation, please refer to the examples in the contracts/ directory. The regression test contract (contracts/regression-test/regression-test.ts) demonstrates all currently supported features.