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

@aribaui/core

v6.2.1

Published

Ariba UI core module providing basic set of API and services.

Readme

core

  • Core module contains common functionality including:

Configuration and bootstrapping (config/)

  • This folder contains useful services to initialize your application and pass some static properties into your application both during initialization and runtime.

e.g:

imports:      [
    BrowserModule,
    AribaCoreModule.forRoot({
      'app.title': 'My first application'
    })
    export class AppComponent {
      title = 'app';
    
    
      constructor(appConfig: AppConfig) {
        console.log(appConfig.get('app.title'));
      }
    }    

Domain object and REST API (domain/)

  • We have two main types of domain object Values and Entities
    • Entity is a domain object that has its own unique identifier so their instances are uniquely identifiable across their type and space
    • Value object as compared to Entities they dont need to be unique and Value objects are usually immutable. They are always part of the entity. They dont live outside and by themself
  • Both of them are deserializable so if you implement your domain structure correctly there is Resource service that can make your live easier. For example let's consider we have this User object. You just need to say that User is a Entity

e.g:

class User implements Entity
{

    uniqueName: string;
    created: Date;


    identity(): string
    {
        return this.uniqueName;
    }

    getTypes(): any
    {
        return {
            created: Date,
        };
    }


    $proto(): Entity
    {
        return null;
    }

    className(): string
    {
        return null;
    }
}

and then you can use Resource service to retrieve your domain object from server and convert them into correct types.

  • Resource service provides fluent and high level API on top of HttpClient so you dont assemble URL traditional way rather more fluentish and functionalish way, working with real data types such a Value and Entity.

    • To simply assemble following URL http://api.ariba.com/myService/v1/requisitions/123 and and fetch Requisition data:

   let r: Resource
 
   r.load()
    .resource(Requisition)
    .withId('123')
    .asEntity<Requisition>((r: Requisition) => receivedR = r);
 
  • You you can simply read it: Load resource Requisition with ID 123 and return this as Entity
  • For more information please checkout domain/resource.service.ts

Messaging (messaging/)

  • Notifications service is a implementation of the publish/subscribe event bus for publishing and listening for application level events.

e.g.:

notifications.subscribe('user:signed-in', (message: any) =>
               {
                   // load user profile
               });

Utilities (utils/)

  • Set of reusable globals originating from the Angular and extended, something that every application needs and you use on daily basis.
  • This includes global language functions to work with types and collections and much more.