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

@woesh/baseflow-platform-sdk

v2.2.0

Published

Angular SDK for the Baseflow Platform, providing authentication, API clients, and UI components.

Readme

@woesh/baseflow-platform-sdk

Angular SDK for the Baseflow Platform, providing authentication, API clients, and UI components.

Installation

npm install @woesh/baseflow-platform-sdk
# or
yarn add @woesh/baseflow-platform-sdk

Styles

The SDK ships a precompiled, minified CSS file containing all Tailwind utilities used by the library's components. You must include it in your application — no Tailwind setup is required on your end.

Angular CLI / Angular workspace

Add the file to the styles array in your angular.json:

"styles": [
"node_modules/@woesh/baseflow-platform-sdk/styles/baseflow-platform.css"
]

Nx workspace

Same as above — add it to the styles array of the relevant application target in project.json or angular.json:

"styles": [
"node_modules/@woesh/baseflow-platform-sdk/styles/baseflow-platform.css"
]

Dark mode

The SDK components support Tailwind's dark variant, driven by a dark class on the <html> element.

ThemeService

Inject ThemeService to control the theme. It toggles the dark class, persists the choice to localStorage, and falls back to the operating system preference when nothing is stored. The header's profile menu already ships a light/dark toggle wired to this service.

import { inject } from '@angular/core';
import { ThemeService } from '@woesh/baseflow-platform-sdk';

const theme = inject(ThemeService);
theme.theme(); // signal: 'light' | 'dark'
theme.setTheme('dark');
theme.toggleTheme();

Reading the setting without the class

If you don't use the dark class strategy and want to drive your own theming, read the current setting from the service instead. theme is a signal and theme$ is an observable that emits the current value on subscribe and on every change:

theme.theme();                      // synchronous read
theme.theme$.subscribe((mode) => {  // 'light' | 'dark'
  // apply your own theming
});

To set the dark class yourself instead of using the service, add it directly:

<html class="dark"></html>

Compiling from source

The shipped precompiled CSS is already class-based, so it needs no setup. If your app compiles the SDK component templates with its own Tailwind build, set darkMode: 'selector' in your tailwind.config.js so the dark: variants respond to the class instead of the OS media query.

Running unit tests

nx test baseflow-platform-sdk

Building

yarn sdk:build

This runs the ng-packagr build followed by the Tailwind CSS compilation step, outputting the compiled CSS to dist/libs/baseflow-platform-sdk/styles/baseflow-platform.css.