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

@owdproject/kit-theme

v0.0.3

Published

Optional shared shell patterns for OWD themes (neutral composables, no visual chrome).

Downloads

459

Readme

Overview

@owdproject/kit-theme is an optional layer for OWD themes: neutral composable names and repeated desktop shell behaviour so Win95, Win11, GNOME-style themes, etc. supply chrome only (CSS, icons, layout, i18n)—not duplicated session, routing, or dialog wiring.

This package does not ship UI components or filesystem primitives; see kit-fs / kit-explorer for explorer UI.

What lives here

| Area | Purpose | |------|---------| | useDesktopShellIdentity | Shell user identity (display name, avatar, VFS home). Defaults to Guest; auth modules call setShellIdentity after login. | | useDesktopSession | End-of-session flow (e.g. shutdown animation → navigate to the theme’s /start route). | | useDesktopShellOptions | Read runtimeConfig / appConfig for desktop.systemBar (enabled, position, start button). | | useBlockNonInputContextMenu | Disable browser context menu on non-input elements (desktop shell–style). | | useWorkspaceEdgeDrop | Drag a window to the left/right screen edge to move it to an adjacent virtual desktop (shared state + drop). | | useWorkspaceEdgeDropWindowHandlers | Wire useWorkspaceEdgeDrop to theme Window.vue (@drag:start / @drag:end on DesktopWindow). | | WorkspaceEdgeHintsBase | Headless edge overlay; themes supply slots for labels/chrome. | | createDesktopDialogs | Build a DesktopDialogProvider from a Confirm service (themes wire this in a client plugin). | | useDesktopDialogs | Resolve the active dialog provider (theme) or browser fallback. |

Composables under runtime/composables/ are auto-imported when the Nuxt module loads. createDesktopDialogs lives under runtime/dialogs/ and is imported explicitly in theme plugins.

Relationship to kit-fs / kit-explorer

These packages are orthogonal:

  • kit-theme — desktop shell helpers (session, system bar options, context-menu guard, PrimeVue dialog bridge).
  • kit-fs — filesystem explorer UI primitives (KitFs* components, selectable area).
  • kit-explorer — explorer behaviour + headless chrome bases; it installs kit-fs automatically.

A theme may depend on kit-theme only, or kit-theme + kit-explorer (+ module-fs) together—there is no automatic dependency between kit-theme and kit-fs.

What stays in each theme

Start menu, taskbar, window borders, wallpapers, i18n, assets, and dialog markup/skin (e.g. <ConfirmDialog /> groups with theme-specific templates/CSS).

Installation

pnpm desktop add @owdproject/kit-theme

Peers: vue, nuxt, @owdproject/core (match versions with your client workspace).

Usage

Theme module (module.ts)

Install the Nuxt module so composables are registered:

await installModule('@owdproject/kit-theme')

Composables (auto-import)

Use in theme components without manual registration:

import { useDesktopSession } from '@owdproject/kit-theme/runtime/composables/useDesktopSession'
import { useDesktopShellIdentity } from '@owdproject/kit-theme/runtime/composables/useDesktopShellIdentity'
import { useDesktopShellOptions } from '@owdproject/kit-theme/runtime/composables/useDesktopShellOptions'
import { useBlockNonInputContextMenu } from '@owdproject/kit-theme/runtime/composables/useBlockNonInputContextMenu'

useDesktopShellIdentity

Neutral shell user for display and per-user VFS paths (e.g. recent files under {userHome}/.local/share/).

  • Defaults: Guest user (userId: 'guest', displayName: 'Guest', userHome from runtimeConfig.public.desktop.fs.defaultUserHome or /home/Guest).
  • setShellIdentity(partial) — call after login from an auth module to set userId, displayName, avatarUrl, userHome.
  • clearShellIdentity() — reset to Guest.
  • Helpers: userHomeFromHandle(handle) and sanitizeUserHomeSegment() for deriving home paths from handles (e.g. @alice.bsky.social).

Used by @owdproject/module-fs (useFsRecentFiles) and theme-specific UI (e.g. Win11 Start menu footer).

const { displayName, avatarUrl, userHome, setShellIdentity } = useDesktopShellIdentity()

(Depending on Nuxt auto-import settings, you may omit imports where symbols are globally available.)

PrimeVue dialog bridge (explicit import)

Wire core’s dialog provider in a client plugin after useConfirm is available:

import { createDesktopDialogs } from '@owdproject/kit-theme/runtime/dialogs/createDesktopDialogs'

Themes still mount PrimeVue <ConfirmDialog /> groups (delete, about, …) with their own styling.

Integration notes

  • Keep visual and copy in the theme; keep reusable shell mechanics here when they repeat across themes.
  • Align @owdproject/core with the desktop app—dialog types live in this kit (DesktopDialogProvider).
  • defineDesktopConfig does not need to list kit-theme unless your orchestration expects it as an explicit module entry; installModule from the theme module.ts is the usual pattern.

License

The module is released under the MIT License.