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

@skywu/ad-manager-sdk

v1.9.4

Published

A powerful ad task management SDK with multi-language support (40 languages), multi-theme system (4 themes), currency localization (50+ currencies), and dynamic task loading

Readme

@skywu/ad-manager-sdk

A Vue 3 ad task SDK for monetized task flows with:

  • Multi-language UI
  • Multi-theme support
  • Localized currency display
  • USD-based reward callbacks
  • Telegram global tasks support

npm version License: MIT


Install

npm install @skywu/ad-manager-sdk

or

yarn add @skywu/ad-manager-sdk

or

pnpm add @skywu/ad-manager-sdk

Quick Start (Vue 3)

<template>
  <AdTaskList
    :api-key="apiKey"
    :end-user-id="userId"
    locale="en-US"
    country="US"
    theme="MODERN"
    @reward="handleReward"
  />
</template>

<script setup lang="ts">
import { AdTaskList } from '@skywu/ad-manager-sdk'
import '@skywu/ad-manager-sdk/style.css'

const apiKey = 'your-publisher-api-key'
const userId = 'user-123'

async function handleReward(event: any) {
  // reward is always USD
  // localReward is localized equivalent for display/reference
  await fetch('/api/user/reward', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
      userId: event.endUserId,
      taskId: event.taskId,
      adConfigId: event.adConfigId,
      rewardUSD: event.reward,
      localReward: event.localReward,
      adTitle: event.adTitle,
      adNetwork: event.adNetwork,
      completedAt: event.completedAt,
    }),
  })
}
</script>

Nuxt 3

Create plugins/ad-manager.client.ts:

import { AdTaskList } from '@skywu/ad-manager-sdk'
import '@skywu/ad-manager-sdk/style.css'

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.component('AdTaskList', AdTaskList)
})

Use in page:

<template>
  <ClientOnly>
    <AdTaskList
      :api-key="apiKey"
      :end-user-id="userId"
      locale="en-US"
      @reward="handleReward"
    />
  </ClientOnly>
</template>

Component Props

| Prop | Type | Required | Description | | --- | --- | --- | --- | | apiKey | string | yes | Publisher API key | | endUserId | string | yes | End-user unique id in your system | | endUserRegisteredAt | string | no | ISO datetime, used for new user review logic | | apiBaseUrl | string | no | Custom API base url | | monetagSdkUrl | string | no | Override Monetag script url | | locale | Locale | no | UI language | | country | string | no | ISO country code, used for currency recommendation | | theme | SdkTheme | no | MODERN / MINIMAL / COLORFUL / DARK | | taskListStyle | TaskListStyleOverrides \| string | no | Task-list visual overrides only (logic unchanged) | | debug | boolean | no | Enable SDK debug logs |


Reward Callback

When a task is completed, @reward is emitted.

interface RewardEvent {
  taskId: string
  adConfigId: string
  endUserId: string
  reward: number // USD (always)
  localReward: {
    amount: number
    currency: string
    formatted: string
  }
  adTitle: string
  adNetwork: string
  completedAt: string
}

Important:

  • reward is always USD and should be your settlement source-of-truth.
  • localReward is an equivalent localized value for display/reference.

Styling Customization (No Logic Changes)

Use taskListStyle to override task list UI tokens from host app.

Vue object form

<AdTaskList
  :api-key="apiKey"
  :end-user-id="userId"
  :task-list-style="{
    cardBackground: '#0f172a',
    cardBorder: '#334155',
    titleColor: '#f8fafc',
    descriptionColor: '#cbd5e1',
    buttonBackground: '#22c55e',
    buttonBackgroundHover: '#16a34a'
  }"
/>

Web Component string form

<ad-task-list
  api-key="your-api-key"
  end-user-id="user-123"
  task-list-style='{"cardBackground":"#0f172a","titleColor":"#f8fafc","buttonBackground":"#22c55e"}'
></ad-task-list>

taskListStyle only affects visuals. Task flow, validation, review, and callback logic stay unchanged.


Global Tasks (Optional)

You can also use:

  • GlobalTasksIcon
  • GlobalTasksModal

Typical usage:

<GlobalTasksIcon ref="globalTasksIconRef" @click="showGlobalTasks = true" />

<GlobalTasksModal
  :visible="showGlobalTasks"
  :api-key="apiKey"
  :end-user-id="userId"
  :country="country"
  @reward="handleReward"
  @all-completed="onAllGlobalTasksDone"
  @close="showGlobalTasks = false"
/>

Best Practices

  • Validate reward idempotency by taskId in your backend.
  • Use reward (USD) for accounting, then convert to points/local currency in your own service.
  • Keep reward issuing on server side, not only on client callback.

Publish Checklist

Before publishing:

cd sdk
npm run build
npm run build:wc
npm pack

Then publish:

npm publish --access public

Do not commit tokens to repository files.


License

MIT