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

svelte-emoji-keyboard

v1.0.4

Published

A customizable emoji keyboard component for Svelte applications

Readme

svelte-emoji-keyboard

A customizable emoji keyboard component for Svelte applications.

emoji_keyboard

Features

  • Full Emoji Categories: Smileys & People, Animals & Nature, Food & Drink, Activities, Travel & Places, Objects, Symbols, and Flags
  • Recent Emojis: Automatically stores and displays recently used emojis using localStorage
  • Emoji Search: Comprehensive search functionality to find emojis quickly
  • Skin Tone Variations: Support for emojis with multiple skin tone components
  • Responsive Design: Works on mobile and desktop devices
  • Touch Support: Optimized for touch devices with drag-to-scroll functionality
  • Customizable: Easily customize the appearance and behavior
  • Dark Mode Support: Automatic detection of system dark mode preference
  • Component Variations: Long-press or right-click on emojis with skin tone variations to select specific components

Installation

npm install svelte-emoji-keyboard

Usage

Basic Usage

<script lang="ts">
	import { EmojiKeyboard } from 'svelte-emoji-keyboard';

	let selectedEmoji = '';

	function handleEmojiSelect(emoji: string) {
		selectedEmoji = emoji;
	}

	function handleBackspace() {
		selectedEmoji = '';
	}
</script>

<div class="emoji-keyboard">
	<EmojiKeyboard onEmojiSelect={handleEmojiSelect} onBackspace={handleBackspace} />
</div>

{#if selectedEmoji}
	<p>Selected: {selectedEmoji}</p>
{/if}
<!-- rest of the code and styling -->

Compact Popular Emojis

<script lang="ts">
	import { EmojiKeyboardPopular } from 'svelte-emoji-keyboard';

	let showFullKeyboard = false;

	function handleEmojiSelect(emoji: string) {
		console.log('Selected emoji:', emoji);
	}
</script>

<div class="emoji-keyboard-compact">
	<EmojiKeyboardPopular
		onEmojiSelect={handleEmojiSelect}
		onToggleFullKeyboard={() => (showFullKeyboard = true)}
		onClose={() => {}}
		popularEmojis={['😀', '😂', '👍', '❤️', '🔥']}
		useRecentEmojis={true}
	/>
</div>

{#if showFullKeyboard}
	<!-- Show full keyboard here -->
{/if}
<!-- rest of the code and styling -->

API Reference

EmojiKeyboard Props

| Prop | Type | Description | | ------------------------ | ------------------------- | ----------------------------------------------------------------- | | onEmojiSelect | (emoji: string) => void | Called when an emoji is selected (including component variations) | | onBackspace | () => void | Called when the backspace button is pressed | | onClose | () => void | Called when the keyboard should be closed | | categoryHighlightColor | string | Custom color for the active category tab (default: '#a825ff') | | darkMode | boolean | Force dark mode (optional, defaults to system preference) |

EmojiKeyboardPopular Props

| Prop | Type | Description | | ---------------------- | ------------------------- | ------------------------------------------------------------------- | | onEmojiSelect | (emoji: string) => void | Called when an emoji is selected (including component variations) | | onToggleFullKeyboard | () => void | Called when the user wants to toggle to the full keyboard | | onClose | () => void | Called when the keyboard should be closed | | popularEmojis | string[] | Array of emojis to display as popular (optional) | | useRecentEmojis | boolean | Whether to include recent emojis from localStorage (default: false) | | darkMode | boolean | Force dark mode (optional, defaults to system preference) |

Development

To run the demo locally:

npm install
npm run dev

Then visit http://localhost:5173/ to see the demo.

License

This project is licensed under the MIT License - see the LICENSE file for details.