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

@lemonhub/sdk

v0.1.0

Published

A modern, modular SDK for building application hub platforms with Vue 3

Readme

LemonHub SDK

npm version license typescript

A modern, modular SDK for building application hub platforms with Vue 3. Provides unified APIs for app registration, theming, navigation, events, notifications, and storage.

Features

  • App Registry - Register, query, and manage applications with lifecycle callbacks
  • Theme System - Light/dark/auto mode with custom color support and system theme watching
  • Navigation - Vue Router wrapper with typed route management
  • Event System - Type-safe pub/sub with built-in SDK events
  • Notifications - Toast notification system with multiple types and auto-dismiss
  • Storage - Namespaced, typed localStorage with TTL/expiration support
  • TypeScript First - Full type coverage, zero any in public APIs
  • Tree-shakeable - All modules are side-effect free
  • SSR Safe - Browser-only APIs are guarded for server-side rendering

Installation

npm install @lemonhub/sdk

Peer Dependencies

npm install vue@^3.3.0
# Optional - for navigation support
npm install vue-router@^4.0.0

Quick Start

import { LemonHub } from '@lemonhub/sdk'

// Create the SDK
const sdk = LemonHub.create({
  debug: true,
  defaultTheme: 'auto',
})

// Initialize (optionally pass vue-router)
import router from './router'
await sdk.init(router)

In Vue Components

<script setup lang="ts">
import { inject } from 'vue'
import type { LemonHub } from '@lemonhub/sdk'

const sdk = inject<LemonHub>('sdk')!

// Register an app
sdk.apps.register({
  id: 'my-app',
  name: 'My App',
  description: 'A great application',
  icon: 'my-icon',
  category: 'productivity',
  status: 'available',
  version: '1.0.0',
  author: 'Me',
  rating: 4.5,
  downloads: 0,
  tags: ['demo'],
  lastUpdated: '2026-04-06',
})

// Toggle theme
sdk.theme.toggle()

// Navigate
sdk.navigation.navigate('/library')

// Notify
sdk.notify.success('Hello from LemonHub!')
</script>

API Overview

App Registry

sdk.apps.register(app, options?)
sdk.apps.unregister(id)
sdk.apps.get(id)
sdk.apps.getAll()
sdk.apps.search(query)
sdk.apps.filterAndSearch(query, category)
sdk.apps.launch(id)

// Lifecycle callbacks
sdk.apps.register(app, {
  onInstall: (app) => sdk.notify.success(`${app.name} installed`),
  onLaunch: (app) => sdk.navigation.navigate(`/apps/${app.id}`),
})

Theme

sdk.theme.setMode('dark')
sdk.theme.toggle()
sdk.theme.isDark()
sdk.theme.getColors()
sdk.theme.setColors({ primary: '#ff6b6b' })
sdk.theme.watchSystemTheme()

Events

sdk.onAppInstalled((app) => console.log(app.name))
sdk.onThemeChanged(({ mode, isDark }) => console.log(mode))
sdk.onNavigated(({ path }) => console.log(path))

// Custom events
sdk.emit('my-event', { data: 'value' })
sdk.on('my-event', handler)

Notifications

sdk.notify.info('Info message')
sdk.notify.success('Success!', 'Title')
sdk.notify.warning('Warning message')
sdk.notify.error('Error message')

sdk.notify.show({
  title: 'Update',
  message: 'New version available',
  options: { duration: 0, actionLabel: 'Update', onAction: () => {} }
})

Storage

sdk.storage.set('token', 'abc123', { namespace: 'user', expiresIn: 3600000 })
const token = sdk.storage.get<string>('token', { namespace: 'user' })
sdk.storage.has('token')
sdk.storage.remove('token')
sdk.storage.clear()

Full Documentation

See docs/SDK.md for the complete API reference with examples.

Architecture

LemonHub
├── events      → EventBus (pub/sub)
├── apps        → AppRegistry (lifecycle)
├── theme       → ThemeManager (colors, mode)
├── navigation  → NavigationManager (vue-router wrapper)
├── notify      → NotificationManager (toasts)
└── storage     → StorageManager (namespaced localStorage)

Browser Support

LemonHub SDK supports all modern browsers that support ES2020+. For SSR environments (Nuxt, etc.), browser-only APIs are safely guarded.

License

MIT