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

@dbp-toolkit/nextcloud

v0.1.0

Published

Host Digital Blueprint activities inside a Nextcloud app

Downloads

215

Readme

Nextcloud integration

@dbp-toolkit/nextcloud hosts Digital Blueprint activities inside an installed Nextcloud app. It provides the activity shell, Nextcloud theme styles, and optional native file dialogs, notifications, and Keycloak sign-in. It runs in the Nextcloud page, not the standalone toolkit showcase, and is bundled from source by the consuming app.

Mount a shell

Render an app-specific custom element, e.g. <dbp-example-nextcloud-shell>, in the Nextcloud template. Serve the template at both /apps/example/ and /apps/example/{activity}. Provide Nextcloud initial state named config with the language of the activities (lang), and optionally entryPointUrl, hiddenActivities (route names), configured (defaults to true), adminSettingsUrl, and keycloak: {url, realm, clientId}. You can also pass config directly.

import '@webcomponents/scoped-custom-element-registry';
import '@dbp-toolkit/nextcloud/style.css';
import '@nextcloud/dialogs/style.css';
import {mountNextcloudApp} from '@dbp-toolkit/nextcloud';
import {activities} from './activities.js';

await mountNextcloudApp({
    appId: 'example',
    shellTag: 'dbp-example-nextcloud-shell',
    activities,
    fileDialogs: true,
    notifications: true,
});

Each activity provides {metadata, icon, load}: DBP activity metadata, an SVG path for the navigation icon, and an async loader that registers the activity's custom element before it resolves. The shell uses the metadata's element, routing_name, short_name, description and optional subscribe fields. getMetadataText() can also be used in the app's own settings UI. Pass providerAttributes for app-specific DBP attributes and labels for app-specific, already translated setup, navigation or login labels. The package supplies English and German translations for its own UI.

Build and deploy

  • When opting into file dialogs, the activity must use a version of @dbp-toolkit/file-handling that emits dbp-file-dialog-open. On older versions the built-in dialogs still work, but the bridge will not see them. Bundle the Nextcloud dialogs stylesheet, and supply the compile-time defines required by @nextcloud/vue (including appName and appVersion).
  • When opting into silent Keycloak SSO, copy @dbp-toolkit/nextcloud/silent-check-sso.html to the app's public assets. Set silentCheckSsoUrl to the URL of that deployed asset, not the URL of a JavaScript chunk. Register the URL with the Keycloak client and allow the relevant origins in the app's CSP.
  • Nextcloud PHP controllers, routes, settings, any service-specific CSP allowances, and app signing belong to the consuming app. Bundle this package with each app; it is not a standalone Nextcloud app.

For a consumer migrating from the original eSign shell, keep its existing app ID and shell tag. Pass its localized setup and login copy via labels and its allow-annotating flag, when enabled, via providerAttributes. Upgrade @dbp-toolkit/file-handling to a release with dbp-file-dialog-open before removing the old picker patch. Replace the local notification bridge and shell styles with the package integrations.