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

@pixlland/sdk

v1.0.0

Published

Pixlland SDK — HTML5 game integration (init, gameplay events, ads, account, cross-device save). Poki-compatible contract.

Readme

@pixlland/sdk

The official Pixlland SDK for HTML5 games — lifecycle, ads, accounts, cross-device save. Poki-compatible contract, so migrations are usually a one-import rename.

npm install @pixlland/sdk
# or load the CDN bundle
<script src="https://pixlland.com/sdk/v1/pixlland.js" defer></script>

Quick start

import { PixllandSDK } from '@pixlland/sdk';
// or use window.PixllandSDK when loading via <script>

await PixllandSDK.init();
PixllandSDK.gameLoadingFinished();
PixllandSDK.gameplayStart();

// Between rounds:
await PixllandSDK.commercialBreak();

// Grant a reward after an ad:
const { granted } = await PixllandSDK.rewardedBreak();
if (granted) player.coins += 100;

Lifecycle

init()  →  gameLoadingProgress(0..1)*  →  gameLoadingFinished()
       →  gameplayStart()  …  gameplayStop()

Calling out of order isn't fatal but hurts session analytics and ad pacing. Full deep-dive in the SDK Basics docs.

Feature matrix

| Area | Methods | | --- | --- | | Lifecycle | init, gameLoadingProgress, gameLoadingFinished, gameplayStart, gameplayStop | | Ads | commercialBreak, rewardedBreak | | Accounts | account.isSignedIn, id, displayName, get, getToken, signIn, onChange | | Cross-device save | data.get, set, delete, keys (JSON, 64 KB per key) | | Deep links | shareableURL(params), getURLParam(name) | | UI hints | movePill(topPct, topPx), requestHapticFeedback('light'\|'medium'\|'heavy'), playerLocale() | | Observability | captureError, measure(category, what, action), happyTime(seconds) |

Full typings ship with the package (dist/index.d.ts). Generated API reference: pixlland.com/sdk-docs.

Rules (match Poki)

  • gameplayStart() only on first input — never on load, never twice in a row.
  • gameplayStop() never twice in a row.
  • No SDK events during an ad.
  • commercialBreak is recommended before every gameplayStart.
  • rewardedBreak resolves { granted: false, reason: 'ad_blocked' } when no ad loads — never grants the reward silently.

Standalone fallback

Every method is safe to call without a Pixlland portal — it degrades to local-only stubs so you can develop against a local file:// iframe and nothing throws.

  • init() resolves in 4s with best-effort defaults if no handshake arrives.
  • commercialBreak() / rewardedBreak() instantly resolve no_fill / { granted: false }.
  • data.* / account.* return null / [].

Scaffold a game

npx @pixlland/cli init my-game
cd my-game
pnpm dev

Engine guides

Copy-paste integrations for every major HTML5 engine:

License

MIT · see LICENSE.

Support

  • Email: [email protected]
  • Developer portal: https://pixlland.com/developers
  • Submit a game: https://pixlland.com/share