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

emojity-compiler

v1.0.5

Published

Compiler for Emojity smart contracts

Readme

emojity

The Emoji language for the Ethereum Virtual Machine.

Run the web compiler

npm i -g lite-server
lite-server

Emojity by Example

Counter Contract

1️⃣🤗0️⃣

🔢🍇

🍇🔼📢↩️🔢
🏁
  🍇📥🍇➕1️⃣
  ↩️🍇
🔚

🍇❓👀↩️🔢
🏁
  ↩️🍇
🔚

Calculator

1️⃣🤗0️⃣

🍊➕👀🔢🍇🔢🍓↩️🔢
🏁
  🔢🍊
  🍊📥🍇➕🍓
  ↩️🍊
🔚

🍊➖👀🔢🍇🔢🍓↩️🔢
🏁
  🔢🍊
  🍊📥🍇➖🍓
  ↩️🍊
🔚

Staking

1️⃣🤗0️⃣

🗺️🍇

🍇🔼📢↩️🔢
🏁
  🍇👤📥🍇👤➕💰
  ↩️1️⃣
🔚

🍇🔽📢↩️🔢
🏁
  🔢🍓
  🍓📥🍇👤
  🍇👤📥0️⃣
  📡👤📍0️⃣💸🍓⛽0️⃣
  ↩️1️⃣
🔚

🍇❓👀#️⃣🍓↩️🔢
🏁
  ↩️🍇🍓
🔚

ERC20 Token

1️⃣🤗0️⃣

🗺️💰
🗺️🛂

👷
🏁
  💰👤📥1️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣
  📑🪙🚚📑0️⃣📑👤📑1️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣
🔚

🪙💰👀↩️🔢
🏁
  ↩️1️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣
🔚

🪙🤑👀#️⃣🍓↩️🔢
🏁
  ↩️💰🍓
🔚

🪙💸📢#️⃣🍓🔢🍇↩️☯️
🏁
  💰👤📥💰👤➖🍇
  💰🍓📥💰🍓➕🍇
  📑🪙🚚📑👤📑🍓📑🍇
  ↩️1️⃣
🔚

🪙🛂👀#️⃣🍓#️⃣🍇↩️🔢
🏁
  ↩️🛂🍓🍇
🔚

🪙✅📢#️⃣🍓🔢🍇↩️☯️
🏁
  🛂👤🍓📥🍇
  ↩️1️⃣
🔚

🪙🏧📢#️⃣🍓#️⃣🍇🔢🍊↩️☯️
🏁
  🛂🍓👤📥🛂🍓👤➖🍊
  💰🍓📥💰🍓➖🍊
  💰🍇📥💰🍇➕🍊
  📑🪙🚚📑🍓📑🍇📑🍊
  ↩️1️⃣
🔚

🪙📛👀↩️🔡
🏁
  ↩️8️⃣3️⃣9️⃣3️⃣2️⃣6️⃣7️⃣4️⃣7️⃣5️⃣6️⃣3️⃣2️⃣9️⃣7️⃣7️⃣3️⃣7️⃣3️⃣6️⃣8️⃣7️⃣9️⃣4️⃣7️⃣0️⃣
🔚

🪙🆔👀↩️🔡
🏁
  ↩️2️⃣9️⃣7️⃣6️⃣4️⃣9️⃣7️⃣8️⃣5️⃣4️⃣1️⃣7️⃣
🔚

🪙🥧👀↩️🔢8️⃣
🏁
  ↩️1️⃣8️⃣
🔚

ERC721 NFT

1️⃣🤗0️⃣

🔢🌐
🗺️👑
🗺️🛂
🗺️🕹️
🗺️🧮
🗺️🎁
#️⃣⚙️

👷
🏁
  ⚙️📥👤
🔚

🖼️🌿📢↩️☯️
🏁
  🔢🍅
  🔢🔑
  🍅📥🎁👤⬆️0️⃣
  ❓🍅
  🏁
    🎁👤📥🎁👤➖1️⃣
  🔚
  🔑📥🍅
  🍅📥💰🟰1️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣
  🔑📥🔑➕🍅
  🍅📥🔑🟰0️⃣
  ❓🍅
  🏁
    ❌
  🔚
  👑🌐📥👤
  🌐📥🌐➕1️⃣
  🔢🍅
  🍅📥🧮👤
  🧮👤📥🍅➕1️⃣
  📑🖼️🚚📑0️⃣📑👤📑🌐📑🌐
  ↩️1️⃣
🔚

🎁✅📢#️⃣🍓🔢🍇↩️☯️
🏁
  🔢🍅
  🍅📥⚙️🟰👤
  🍅📥🍅🟰0️⃣
  ❓🍅
  🏁
    ❌
  🔚
  🎁🍓📥🍇
  ↩️1️⃣
🔚

🎁💸📢🔢🍓🔢⛽↩️☯️
🏁
  🔢🍅
  🍅📥⚙️🟰👤
  🍅📥🍅🟰0️⃣
  ❓🍅
  🏁
    ❌
  🔚
  📡👤📍🍓💸🍓⛽⛽
  ↩️1️⃣
🔚

🖼️✅📢#️⃣🍓🔢🍇↩️☯️
🏁
  🔢🔑
  🔑📥👑🍇🟰👤
  🔑📥🔑🟰0️⃣
  ❓🔑
  🏁
    ❌
  🔚
  🛂🍇📥🍓
  📑🖼️👍📑👤📑🍓📑🍇📑🍇
  ↩️1️⃣
🔚

🖼️🕹️📢#️⃣🍓☯️🍇↩️☯️
🏁
  🕹️👤🍓📥🍇
  📑🖼️🤖📑👤📑🍓📑🍇
  ↩️1️⃣
🔚

🖼️🏧📢#️⃣🍓#️⃣🍊🔢🍇↩️☯️
🏁
  🔢🍅
  🔢🔑
  🍅📥👑🍇🟰👤
  🔑📥🍅
  🍅📥🛂🍇🟰👤
  🔑📥🔑➕🍅
  🍅📥🕹️🍓👤🟰👤
  🔑📥🔑➕🍅
  🍅📥🔑🟰0️⃣
  ❓🍅
  🏁
    ❌
  🔚
  👑🍇📥🍊
  🛂🍇📥0️⃣
  🍅📥🧮🍓
  🧮🍓📥🍅➖1️⃣
  🔢🍒
  🍒📥🧮🍊
  🧮🍊📥🍒➕1️⃣
  📑🖼️🚚📑🍓📑🍊📑🍇📑🍇
  ↩️1️⃣
🔚

🖼️🛂👀🔢🍇↩️#️⃣
🏁
  ↩️🛂🍇
🔚

🖼️🆗👀#️⃣🍓#️⃣🍇↩️☯️
🏁
  ↩️🕹️🍓🍇
🔚

🖼️🌐👀🔢🍓↩️🔡
🏁
  🔢🍒
  🍒📥2️⃣8️⃣1️⃣6️⃣0️⃣9️⃣8️⃣5️⃣7️⃣9️⃣5️⃣4️⃣9️⃣7️⃣3️⃣5️⃣8️⃣1️⃣9️⃣1️⃣6️⃣7️⃣6️⃣4️⃣2️⃣3️⃣3️⃣4️⃣2️⃣2️⃣2️⃣6️⃣2️⃣3️⃣0️⃣8️⃣7️⃣2️⃣6️⃣7️⃣7️⃣7️⃣3️⃣3️⃣1️⃣1️⃣8️⃣6️⃣5️⃣8️⃣2️⃣8️⃣3️⃣0️⃣8️⃣8️⃣5️⃣3️⃣3️⃣5️⃣2️⃣7️⃣9️⃣9️⃣8️⃣8️⃣8️⃣6️⃣8️⃣7️⃣
  🍒📥🍒✖️6️⃣5️⃣5️⃣3️⃣6️⃣
  🔢🍐
  🔡🍇
  🔢🥭
  🔢🍩
  🔢🍅
  🔢🍎
  🔢🍊
  🍐📥🍓
  🥭📥1️⃣
  🔄🍐
  🏁
    🍩📥🍐
    🍅📥🍐➗1️⃣0️⃣
    🍅📥🍅✖️1️⃣0️⃣
    🍩📥🍩➖🍅
    🍎📥🍩➕4️⃣8️⃣
    🍊📥🍎✖️🥭
    🍇📥🍇➕🍊
    🥭📥🥭✖️2️⃣5️⃣6️⃣
    🍐📥🍐➗1️⃣0️⃣
  🔚
  🍇📥🍇➕🍒
  ↩️🍇
🔚

🖼️👑👀🔢🍓↩️#️⃣
🏁
  ↩️👑🍓
🔚

🖼️🧮👀#️⃣🍓↩️🔢
🏁
  ↩️🧮🍓
🔚

🖼️📛👀↩️🔡
🏁
  ↩️1️⃣2️⃣8️⃣0️⃣7️⃣1️⃣0️⃣9️⃣7️⃣9️⃣5️⃣5️⃣8️⃣2️⃣5️⃣4️⃣2️⃣0️⃣0️⃣4️⃣0️⃣4️⃣
🔚

🖼️🆔👀↩️🔡
🏁
  ↩️1️⃣1️⃣6️⃣2️⃣7️⃣5️⃣7️⃣7️⃣1️⃣6️⃣
🔚

A swap function

1️⃣🤗0️⃣

#️⃣🅰️
#️⃣🅱️
🔢🤑
🔢💸
🔢🏧

👷
🏁
  🅰️📥6️⃣2️⃣8️⃣6️⃣6️⃣7️⃣9️⃣0️⃣9️⃣2️⃣3️⃣9️⃣2️⃣8️⃣7️⃣4️⃣5️⃣1️⃣6️⃣6️⃣1️⃣0️⃣1️⃣5️⃣3️⃣7️⃣6️⃣5️⃣0️⃣9️⃣5️⃣4️⃣8️⃣1️⃣9️⃣6️⃣7️⃣1️⃣4️⃣5️⃣4️⃣8️⃣3️⃣7️⃣6️⃣5️⃣4️⃣6️⃣
  🅱️📥6️⃣8️⃣5️⃣3️⃣6️⃣6️⃣7️⃣7️⃣6️⃣8️⃣3️⃣7️⃣9️⃣6️⃣6️⃣0️⃣7️⃣6️⃣6️⃣7️⃣7️⃣6️⃣9️⃣8️⃣7️⃣5️⃣0️⃣5️⃣8️⃣4️⃣7️⃣2️⃣6️⃣1️⃣1️⃣3️⃣2️⃣7️⃣8️⃣0️⃣2️⃣9️⃣5️⃣0️⃣6️⃣9️⃣5️⃣2️⃣
  🤑📥1️⃣8️⃣8️⃣9️⃣5️⃣6️⃣7️⃣2️⃣8️⃣1️⃣
  💸📥2️⃣8️⃣3️⃣5️⃣7️⃣1️⃣7️⃣3️⃣0️⃣7️⃣
  🏧📥5️⃣9️⃣9️⃣2️⃣9️⃣0️⃣5️⃣8️⃣9️⃣
🔚

🅰️🅱️📢🔢🍓🔢🍇↩️☯️
🏁
  🔢🍎
  🔢🍌
  🔢⏳
  🔢⌛️
  ☯️🤔
  📡🅰️📍🤑💸0️⃣⛽1️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣#️⃣👇📥🍎
  📡🅱️📍🤑💸0️⃣⛽1️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣#️⃣👇📥🍌
  ⏳📥🍎✖️🍌
  📡🅰️📍🏧💸0️⃣⛽1️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣#️⃣👤#️⃣👇🔢🍓
  📡🅱️📍💸💸0️⃣⛽1️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣#️⃣👤🔢🍇
  📡🅰️📍🤑💸0️⃣⛽1️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣#️⃣👇📥🍎
  📡🅱️📍🤑💸0️⃣⛽1️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣#️⃣👇📥🍌
  ⌛️📥🍎✖️🍌
  🤔📥⌛️⬇️⏳
  ❓🤔
  🏁
    ❌
  🔚
  ↩️1️⃣
🔚

🅱️🅰️📢🔢🍓🔢🍇↩️☯️
🏁
  🔢🍎
  🔢🍌
  🔢⏳
  🔢⌛️
  ☯️🤔
  📡🅰️📍🤑💸0️⃣⛽1️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣#️⃣👇📥🍎
  📡🅱️📍🤑💸0️⃣⛽1️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣#️⃣👇📥🍌
  ⏳📥🍎✖️🍌
  📡🅱️📍🏧💸0️⃣⛽1️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣#️⃣👤#️⃣👇🔢🍓
  📡🅰️📍💸💸0️⃣⛽1️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣#️⃣👤🔢🍇
  📡🅰️📍🤑💸0️⃣⛽1️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣#️⃣👇📥🍎
  📡🅱️📍🤑💸0️⃣⛽1️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣#️⃣👇📥🍌
  ⌛️📥🍎✖️🍌
  🤔📥⌛️⬇️⏳
  ❓🤔
  🏁
    ❌
  🔚
  ↩️1️⃣
🔚

Int to string

1️⃣🤗0️⃣

🍩🍑👀🔢🍑↩️🔡
🏁
  🔢🍐
  🔡🍇
  🔢🥭
  🔢🍩
  🔢🍅
  🔢🍎
  🔢🍊
  🍐📥🍑
  🥭📥1️⃣
  🔄🍐
  🏁
    🍩📥🍐
    🍅📥🍐➗1️⃣0️⃣
    🍅📥🍅✖️1️⃣0️⃣
    🍩📥🍩➖🍅
    🍎📥🍩➕4️⃣8️⃣
    🍊📥🍎✖️🥭
    🍇📥🍇➕🍊
    🥭📥🥭✖️2️⃣5️⃣6️⃣
    🍐📥🍐➗1️⃣0️⃣
  🔚
  ↩️🍇
🔚

Structure of a Contract

The following is the structure of a contract.

STATE_VARIABLES

CONSTRUCTOR (Optional)

FUNCTION_1

FUNCTION_2

FUNCTION_3

...

State variables

State variables are variables whose values are permanently stored in contract storage.

🔢🍓 // Uint variable declared on the stack
🗺️💰 // This is hashmap

Constructor

The costructor code will be executed only once, when the contract is deployed.

👷
🏁
  💰👤📥1️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣
  📑🪙🚚📑0️⃣📑👤📑1️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣0️⃣
🔚

Functions

Functions are the executable units of code.

🪙🥧👀↩️🔢8️⃣
🏁
  ↩️1️⃣8️⃣
🔚

Function Calls can either be 👀 view or 📢 public. Functions accept parameters and return variables to pass parameters and values between them.

Functions are composed by:

  • A name, 2 emoji identifiers
  • Visibility, 👀 for view and 📢 for public
  • Parameters (optional), composed of the type and 1 emoji identifier
  • A return value
  • Instructions

The following is the syntaxis of a function:

NAME VISIBILITY PARAMS ↩️ RETURN_TYPE
🏁
  INSTRUCTIONS
🔚

Types

| Emoji | Type | |-------|------| | 🔢 | unsigned intenger | | 🔡 | string | | #️⃣ | address | | 🗺️ | mapping | | ☯️ | boolean |

Special emojis

| Emoji | Type | |-------|------| | 👤 | The caller address, msg.sender on solidity | | 👇 | Current contract address, this on solidity | | 💰 | Ether amount sent, msg.value on solidity |

Instructions

Return

Gracefully stops the function execution and returns a value.

↩️ VALUE

Example:

↩️🍓

Assignment

Assigns a value to a variable. Notice function parameters are not assignable.

VARIABLE 📥 VALUE

Example:

🍓📥🍇

Arithmetic Operators

Perform an airthmetic operation between two values.

VARIABLE 📥 VALUE OPERATOR VALUE

Example:

🍓📥🍇➕🍊

Supported Arithmetic Operators

| Operator | Operation | |-------|------| | ➕ | Addition | | ➖ | Subtraction | | ✖️ | Multiplication | | ➗ | Division |

Boolean Operators

Perform an airthmetic operation between two values. Returns 1️⃣ if true, otherwhise returns 0️⃣.

VARIABLE 📥 VALUE OPERATOR VALUE

Example:

🍓📥🍇⬆️🍊

Supported Boolean Operators

| Operator | Operation | |-------|------| | ⬆️ | Greater than | | ⬇️ | Less than |

If Statement

Executes a set of instructions if a variable value is different than 0.

❓VARIABLE
🏁
  INSTRUCTIONS
🔚

Example:

❓🍓
🏁
  🍓📥🍇
🔚

Loop

Executes repeatedly a set of instructions as long as a variable value is different than 0.

🔄VARIABLE
🏁
  INSTRUCTIONS
🔚

Example:

🔄🍓
🏁
  🍓📥🍓➖1️⃣
  🍇📥🍇➕5️⃣
🔚

Logs (Events)

Logs an event to the blockchain. Notice the name is a 2 emoji signature. Up to 4 topics are supported.

📑 NAME 📑 TOPIC1 📑 TOPIC2 📑 TOPIC3

Example:

📑🪙🚚📑👤📑🍓📑🍇

Revert

Halts computation and reverts all changes to the global state.

External calls

Makes a call to an external account. Use this to call a function to an external smart contract or to send eth.

📡 EXTERNAL_ACCOUNT_ADDRESS 📍 SELECTOR 💸 ETHER_SENT ⛽ MAXIMUM_GAS_USED

Example:

📡👤📍0️⃣💸🍓⛽0️⃣