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

@sbc-connect/nuxt-business-base

v0.14.2

Published

[![License](https://img.shields.io/badge/License-BSD%203%20Clause-blue.svg)](LICENSE)

Readme

License

@sbc-connect/nuxt-business-base

The foundational Nuxt layer for all Business applications.

This package contains the core UI components, styling, and utilities for Business applications. Extend this layer in your Nuxt project to get a consistent, on-brand starting point with minimal configuration.

Features

BC Government Branding

  • Official color theme and design tokens
  • BCSans font family with pre-configured @font-face rules
  • BC Government logos and favicon assets

Core Development Assets

  • A library of reusable base components
  • Essential composables for common application logic
  • Standard utility functions
  • Pre-configured for Internationalization (i18n)

Business Specific

Such as:

  • $businessApi fetch plugin
  • useBusinessApi composable with several common fetch methods.
  • Business Filing page layout

For detailed usage and documentation, please see the Business Base Layer Docs

Usage

Install

pnpm install @sbc-connect/nuxt-business-base

[!NOTE] If the application is in the business-ui repo, you may access the layer directly by adding the application to the repo's workspace and referencing the dependency by the workspace:* protocol (e,g,. "@sbc-connect/nuxt-business-base": "workspace:*",). This is not necessary but enables instant updates between the layer and application.

Configure

Then add the dependency to extends in nuxt.config:

[!NOTE] @sbc-connect/nuxt-business-base already includes @sbc-connect/nuxt-forms and @sbc-connect/nuxt-pay, it is not necessary to install these packages separately.

defineNuxtConfig({
  extends: '@sbc-connect/nuxt-business-base'
})

nuxt-forms & nuxt-pay

Included in nuxt-forms and nuxt-pay is nuxt-base and nuxt-auth. This setup provides a complete starting point for all Business/Connect applications.

Please see the individual packages for more information:

Environment Variables

This project requires certain environment variables to be set to run correctly.

Create a file named .env in the root of the project.

Testing

Run all tests (unit & e2e):

pnpm test

Unit Tests

Run unit tests once:

pnpm test:unit

Run unit tests in watch mode:

pnpm test:unit:watch

Run unit test coverage:

pnpm test:unit:cov

E2E Tests

[!IMPORTANT] All env values are required for E2E tests to pass locally (even if they're empty). If a test depends on an env variable, it must be added to the .env.example file to pass in the CI.

[!NOTE] Failed E2E tests can be viewed using the Playwright Trace Viewer. Upload the generated trace.zip file to review the full test run.

Run E2E tests in terminal:

pnpm test:e2e

Run E2E tests in playwright UI mode:

pnpm test:e2e:ui

Local Development

Copy the contents of the .env.example file into your new .env file.

Production Environments

[!IMPORTANT] The values for staging and production environments are managed securely and should not be stored in this file.

To obtain the correct values for a production build or deployment, please contact the Connect Platform or Entity Team.

Contributing

We welcome and encourage contributions to this shared layer! Before you start, please be sure to read the main repository's Contribution Guidelines for information on our branching strategy, commit/code conventions, and pull request process.

Guidelines for This Layer

To keep this package lean, maintainable, and easy to use, please follow these specific rules when contributing:

Purpose: This layer is for truly common or shared logic and components only. If a feature or component is only used by a single application, it belongs in that application's codebase, not here.

Changesets are Required:

[!IMPORTANT] Every Pull Request that includes a code change (bug fix, new feature, etc.) must include a changeset file. This is essential for the release process. A detailed guide can be found at A Guide to the Changesets Workflow.

Include Tests: All new features or bug fixes must include corresponding unit and/or end-to-end tests to ensure they are working correctly and prevent future regressions.

Add Examples: If you are adding a new component or a complex composable, please add a clear example of its usage in the layer's playground directory. This is the best way to document its functionality for other developers.

Update Documentation: Please add a summary of your changes to the main overview. Depending on complexity, please create a new, specific documentation file and link to it from the overview. This is the best place for detailed information, usage examples, and any "gotchas."