Skip to main content
Change of provenance

The repository or configuration that created this release differ from a previous release. View details.

Emoji Mixer

CI npm PyPI crates.io Go Reference JSR Packagist Gem NuGet License: MIT

Get the URL of a Google Emoji Kitchen image for two emojis.

Install

npm install emoji-mixer   # JavaScript / TypeScript, Node.js 20.19+
pip install emoji-mixer   # Python 3.10+
cargo add emoji-mixer     # Rust
go get github.com/MattFor/emoji-mixer/v2   # Go 1.21+
deno add jsr:@mattfor/emoji-mixer   # Deno, or npx jsr add @mattfor/emoji-mixer
composer require mattfor/emoji-mixer   # PHP 8.2+
gem install emoji_mixer   # Ruby 3.3+
dotnet add package EmojiMixer   # .NET 10+

Usage

import getEmojiMixUrl from 'emoji-mixer';
// or: const { default: getEmojiMixUrl } = require("emoji-mixer");

getEmojiMixUrl('🔥', '😃');
// https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f603/u1f603_u1f525.png
from emoji_mixer import get_emoji_mix_url

get_emoji_mix_url("🔥", "😃")
emoji_mixer::get_emoji_mix_url("🔥", "😃"); // Some(url)
import emojimixer "github.com/MattFor/emoji-mixer/v2"

url, err := emojimixer.EmojiMixURL("🔥", "😃")
use MattFor\EmojiMixer\EmojiMixer;

EmojiMixer::getEmojiMixUrl('🔥', '😃');
require "emoji_mixer"

EmojiMixer.emoji_mix_url("🔥", "😃")
using EmojiMixer;

EmojiKitchen.GetEmojiMixUrl("🔥", "😃");

Emojis can be passed as characters ("☕") or codepoint strings ("2615", "1F600", "2764-fe0f"). The FE0F variation selector is optional.

Functions

  • getEmojiMixUrl(leftEmoji, rightEmoji, detailedErrors = false) (default export)
    Returns the image URL, or undefined if an emoji is unsupported or the pair has no mix. With detailedErrors, throws an error explaining why instead.

  • toUnicode(input)
    Returns the codepoint key of one supported emoji, e.g. "☕" → "2615", or undefined.

  • getEmojiCombo(leftEmoji, rightEmoji)
    Takes two codepoint keys and returns the newest { leftEmoji, rightEmoji, date } combination, or undefined. leftEmoji and rightEmoji are in the order Google hosts the image under, which may differ from the argument order.

  • checkSupported(emoji)
    Returns every combination containing the emoji (on either side), or null if it is unsupported.

  • googleRequestUrl(combo) / googleRequestUrlEmojiPart(emoji)
    Build the image URL from a combination / format one emoji for the URL.

  • getExpandedEmojiCompatibilityData(useCache = false)
    Returns { [emoji]: combination[] } for every supported emoji.

  • supportedEmojis, emojiCompatibilityData, baseUrl
    The supported codepoint keys, the compressed database and the image base URL.

Python has the same API in snake_case (get_emoji_mix_url, to_unicode, …, BASE_URL). It returns None instead of undefined/null, detailed_errors raises ValueError, and combinations are EmojiCombo(left_emoji, right_emoji, date) named tuples.

Rust has get_emoji_mix_url, to_unicode, get_emoji_combo, check_supported, google_request_url, google_request_url_emoji_part, supported_emojis() and BASE_URL, returning Options.

Go has EmojiMixURL (an error says why there is no URL), ToUnicode, EmojiCombo, CheckSupported, ExpandedEmojiCompatibilityData, GoogleRequestURL, GoogleRequestURLEmojiPart, SupportedEmojis() and BaseURL; lookups return (value, ok) and combinations are Combo{LeftEmoji, RightEmoji, Date}.

JSR is the same TypeScript as the npm package.

PHP has the same API as static methods of MattFor\EmojiMixer\EmojiMixer (getEmojiMixUrl, toUnicode, …, BASE_URL), returning null; $detailedErrors throws InvalidArgumentException, and combinations are EmojiCombo objects with leftEmoji, rightEmoji and date.

Ruby has EmojiMixer.emoji_mix_url(left, right, detailed_errors: false), to_unicode, emoji_combo, check_supported, expanded_emoji_compatibility_data, google_request_url, google_request_url_emoji_part, supported_emojis and BASE_URL, returning nil; detailed_errors raises ArgumentError, and combinations are EmojiMixer::EmojiCombo values.

C# has the same API as static members of EmojiMixer.EmojiKitchen (GetEmojiMixUrl, ToUnicode, …, SupportedEmojis, BaseUrl), returning null; detailedErrors throws ArgumentException, and combinations are EmojiCombo(LeftEmoji, RightEmoji, Date) records.

Data format

emojiCompatibilityData is generated from emojikitchen.dev by converter.ts:

{
    "$d": [20201001, 20260128],   // unique dates
    "$e": [9749, 9800],           // unique emojis: codepoints as integers, sequences as strings
    "2615": [[0, 0], [1, 1]],     // [emojiIndex, dateIndex]
    "2648": [[-1, 1]]
}

A negative emojiIndex (~i) means the key emoji is the right-hand emoji in Google's URL. Above, both entries [1, 1] and [-1, 1] describe ☕ (left) + ♈ (right).

Attributions

License

MIT, see LICENSE. By MattFor.

Metadata

Release files for emoji-mixer 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Change of provenance

The repository or configuration that created these release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Source distribution (sdist)

Source distribution for emoji-mixer 2.2.0
File Size Uploaded Provenance Actions
emoji_mixer-2.2.0.tar.gz 383.2 kB With provenance Details for emoji_mixer-2.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for emoji-mixer 2.2.0
File Interpreter ABI Platform Actions
emoji_mixer-2.2.0-py3-none-any.whl Python 3 none any Details for emoji_mixer-2.2.0-py3-none-any.whl

Total release size: 783.9 kB

Release files / emoji_mixer-2.2.0.tar.gz

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL emoji_mixer-2.2.0.tar.gz
Size 383.2 kB
Tags Source
SHA-256 checksum
How to use checksums
01273849a06c42a2edebb79e0a454cc9a61e8c0719e8c7284031415477bbf68d
BLAKE2b-256 checksum
How to use checksums
0de2a401f19d673a844cadfee5a2192f2b8087b9abb7a08f61ea727a756707d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / emoji_mixer-2.2.0-py3-none-any.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL emoji_mixer-2.2.0-py3-none-any.whl
Size 400.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0b2e00fdf7a2dde01ffec7646b4520d3ba8ddf98c25f8028893ba156c8474c3
BLAKE2b-256 checksum
How to use checksums
ae8f22dba3cb04fd7d79e206ac89dbba0a7c82fbd1a8c7cf79492f54f2ceb835
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for emoji-mixer 2.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Change of provenance

The configuration that created this release differs from a previous release.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Select from 2 files

Attestation for emoji_mixer-2.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page