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

authentication_frontend_libra

v0.0.2

Published

In version 0.0.1 only login page with all the functionality is completed

Downloads

4

Readme

SlAuthLib

This library was generated with Angular CLI version 17.3.0.


**Fallow all the steps below to get fully functional library.

After installation, import library modules in AppModule.

  1. Import "LIBRARY_CONFIG, SlAuthLibModule, HttpClientModule and HttpClient" from authentication_frontend_library and @angular/common in AppModule.

import { LIBRARY_CONFIG, SlAuthLibModule } from 'authentication_frontend_library'; import { HttpClient, HttpClientModule } from '@angular/common/http';

and in NgModule.

imports: [ HttpClientModule, SlAuthLibModule ]


  1. Add the library element tag "lib-sl-auth-lib" in "app.component.html".

creating and import of "library-config.json" file in AppModule.

  1. Create a "library-config.json" file in you assets folder with below json data

{ "projectName": "your projectName", "landingPageTitle": "Create account to connect, solve & share.", "baseUrl": "https://yourBaseUrl.com", "redirectRouteOnLoginSuccess": "home", "loginApiPath": "/user/v1/account/login", "signUpApiPath": "/user/v1/account/signup", "resetPasswordApiPath": "/v2/account/reser-password", "otpValidationApiPath": "/v2/account/otp-validation", "supportEmail":"[email protected]", "privacyPolicyUrl":"https://www.privacyploicy.com", "termOfUseUrl":"https://www.termsofuse.com" }


  1. Navigate to "app.module.ts" and past below code in providers array.

providers: [ { provide: LIBRARY_CONFIG, useFactory: configFactory, deps: [HttpClient] } ]


  1. Then past the below code after the export class of AppModule.

export class AppModule { } ---> "After the export class of AppModule"

export function configFactory(http: HttpClient): any { return http.get('assets/config/library-config.json'); }


To achive routing of "login" page.

  1. In "app-routing.module.ts" create a empty path and in loadChildren import the module as below.

const routes: Routes = [ { path: '', loadChildren: () => import('authentication_frontend_library').then(m => m.SlRoutingRoutingModule) } ]


To work all the css as required add below code in global css file such as "styles.css" or "global.scss"

@import '~@angular/material/prebuilt-themes/indigo-pink.css';

.mdc-text-field--filled { background-color: white !important; }

.mat-mdc-form-field-focus-overlay{ opacity: 0 !important; }


Add below angular material icons link in "index.html" file


Now Enjoy the authentication_frontend_library functionality.

By adding the path in browser "https://localhost:4200/login", you will be navigated to login page.