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

abha-eka-care

v0.0.1

Published

This application is in early development mode.

Readme

Login Frontend App for Eka Care

This application is in early development mode.

How to Use Login Frontend App

Follow these steps to use the window.initAuthApp function from the main.tsx file:

  1. Include the Required Scripts and Styles: Ensure that you have included the necessary scripts and styles in your HTML file.

    <link rel="stylesheet" href="https://login.eka.care/assets/css/index.css" />
    <script type="module" src="https://login.eka.care/assets/js/lo-fe-main.js"></script>
  2. Prepare the Container Element: Create a container element in your HTML where the React app will be mounted.

    <div id="lofe_root"></div>
  3. Implement Callback Functions: Define the onSuccess and onError callback functions to handle authentication outcomes.

    onSuccess: This function is called when the authentication is successful. Use it to process the authenticated user's data or redirect them within your application.

    function onSuccess(params) {
      // Handle successful authentication
      console.log('Authentication successful:', params);
      // Redirect user or update UI accordingly
    }
    • @param params - An object containing authentication tokens and the user's profile information.

        {
           response: {
             txn_id: "Transaction id string",
             skip_state: 1,
             method: 2,
             data: {
               tokens: {
                 sess: "A string representing the session token.",
                 refresh: "A string representing the refresh token.",
               },
               profile: "The user's profile.",
             }
           }
        }

    onError: This function is invoked when there is an error during authentication. Use it to handle errors, display error messages, or perform logging.

    function onError(params) {
      // Handle authentication error
      console.error('Authentication error:', params);
      // Display error message to the user or take corrective action
    }
    • @param params - An object containing authentication error.

      {
        error: 'Error message';
        response: {
             txn_id: "Transaction id string",
             skip_state: 1,
             method: 2,
             error: 'error message from api'
           }
      }
  4. Initialize the App: Call the window.initAuthApp function with the required parameters.

    <script>
      window.onload = function () {
        window.initAuthApp({
          clientId: 'your_client_id',
          containerId: 'lofe_root',
          workspaceName: 'your_workspace_name', // Optional
          urlParams: { next_url: 'next_url' }, // Optional
          method: 'email_mobile', // Optional
          onSuccess: function (params) {
            // Handle success
          },
          onError: function (params) {
            // Handle error
          },
        });
      };
    </script>

    window.initAuthApp returns an unmount function to remove the Login app.

  5. Close the App: To unmount the Lofe app and clear the store, call the window.closeAuthApp function or the function that is returned by window.initAuthApp

    <script>
      window.closeAuthApp();
    </script>

By following these steps, you can successfully initialize and use the login frontend app for Eka Care.