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

ngx-saqly-work-balance

v0.0.4

Published

A library for calculating work balance in Angular applications.

Readme

ngx-saqly-work-balance

A lightweight Angular developer productivity library that helps developers maintain a healthier workflow by showing reminders such as drinking water, stretching, taking tea or coffee breaks, and more.

This package is designed to be simple, configurable, and easy to integrate into Angular applications.


Features

  • Angular standalone-first setup
  • Easy configuration using provideSaqlyWorkBalance(...)
  • Multiple reminder types:
    • Browser notifications
    • In-app toast notifications
    • Console messages
  • Per-reminder enable/disable support
  • Custom reminder titles and messages
  • devOnly mode support
  • Trigger reminders immediately on startup
  • Configurable toast duration and max visible toasts

Installation

npm install ngx-saqly-work-balance


Quick Start

1) Add the provider in app.config.ts

import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core';
import { provideRouter } from '@angular/router';
import { provideSaqlyWorkBalance } from 'ngx-saqly-work-balance';

import { routes } from './app.routes';

export const appConfig: ApplicationConfig = {
  providers: [
    provideBrowserGlobalErrorListeners(),
    provideRouter(routes),
    provideSaqlyWorkBalance({
      enabled: true,
      devOnly: true,
      appName: 'Saqly Work Balance',
      defaultType: 'toast',
      toastDurationMs: 5000,
      maxToasts: 3,
      requestBrowserPermissionOnStart: true,
      reminders: [
        {
          id: 'water',
          label: 'Drink water',
          intervalMinutes: 30,
          enabled: true,
          type: 'toast',
          triggerOnStart: true,
        },
        {
          id: 'stretch',
          label: 'Stand up and stretch for 2 minutes',
          intervalMinutes: 60,
          enabled: true,
          type: 'browser',
        },
        {
          id: 'coffee',
          label: 'Time for tea or coffee break',
          intervalMinutes: 120,
          enabled: true,
          type: 'console',
        },
      ],
    }),
  ]
};

2) Add the toast component in your root component

import { Component } from '@angular/core';
import { WorkBalanceToastComponent } from 'ngx-saqly-work-balance';
import { RouterOutlet } from '@angular/router';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [WorkBalanceToastComponent, RouterOutlet],
  template: `
    <router-outlet />
    <saqly-work-balance-toast />
  `,
})
export class App {}

Reminder Types

toast → in-app UI notification
browser → browser notification (depends on system settings)
console → console.log message


Testing Tips

Use small intervals for testing:

intervalMinutes: 0.1

= 6 seconds


Important Notes

  • Browser notifications depend on OS + browser settings
  • Some systems show notifications in notification center only
  • If devOnly = true → will not run in production

License

MIT