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 🙏

© 2024 – Pkg Stats / Ryan Hefner

lehjah

v1.0.4

Published

Lehjah is a no-code embedded accounting platform for financial platforms and vertical SaaS. The lehjah js can be used to embedded the accounting view on web pages.

Downloads

23

Readme

Lehjah

Lehjah is a no-code embedded accounting platform designed for financial platforms and vertical SaaS. With Lehjah, you can easily embed a comprehensive accounting view directly into your web pages, providing powerful financial management features to your users.

Features

Lehjah offers a wide range of accounting functionalities, including:

  • Bank Connection
  • Transactions
  • Reconciliation
  • Journal Entries
  • General Ledgers
  • Receivables and Payables
  • Prepayments
  • Profit and Loss Statement
  • Balance Sheet
  • Trial Balance
  • Statement of Cash Flow
  • Analytics
  • AI Assistant

Installation

NPM Installation

You can install the Lehjah package via npm:

npm install lehjah

Usage

After installing the package, you can embed the Lehjah accounting view in your web application:

const Lehjah = require('lehjah');

new Lehjah({
    business_id: 'your-business-id',
    public_key: 'your-public-key',
    token: 'your-token',
    environment: 'sandbox', // or 'production'
    target_id: 'target-element-id'
});

Script Installation via HTML

Alternatively, you can include the Lehjah widget directly in your HTML page using the script from unpkg.com:

<script src="https://unpkg.com/lehjah/index.js"></script>
<script>
    new Lehjah({
        business_id: 'your-business-id',
        public_key: 'your-public-key',
        token: 'your-token',
        environment: 'sandbox', // or 'production'
        target_id: 'target-element-id'
    });
</script>

Configuration Parameters

When initializing the Lehjah widget, you need to provide a configuration object with the following parameters:

  • business_id: (required)
    The unique ID of the business on your platform for which the accounting view is being embedded.

  • public_key: (required)
    The developer API public key associated with your account. You can obtain this key from your account on Lehjah.

  • token: (optional - required for data sync with platform only)
    The authentication token of the user’s active session on your platform. This token is used to synchronize user data based on the configuration set up in your Lehjah account.

  • environment: (optional, default: 'production')
    Specifies the environment to be used. This can be either sandbox or production. For access to these environments, please contact us at [email protected].

  • mode: (optional, default 'full') Specifies the mode in which the widget will display. The default value is 'full' which shows all the features together. Use 'page' if you are only interested in a specific page.

  • page: (optional, but required if mode = 'page') The specific feature to be displayed when the widget loads, this makes it possible for you to distribute the features into different pages on your platform. Available pages are 'overview' | 'transactions' | 'invoices' | 'bills' | 'inventory' | 'restocks' | 'financial_statements' | 'income_statement' | 'balance_sheet' | 'trial_balance' | 'cashflow_statement' | 'manual_journal' | 'general_ledger' | 'chart_of_accounts'.

  • target_id: (required)
    The ID of the HTML element where the Lehjah widget will be embedded.

  • variable1: (optional, alongside variable2, variable3, variable4 and variable5)
    The variable1 and the other permitted variable names from 1 to 5 allows you to add up to five (5) custom variables you might need to extend the widget data connection capabilities.

Example

<div id="lehjah-accounting" style="height: 100vh;"></div>

<script src="https://unpkg.com/lehjah/index.js"></script>
<script>
    new Lehjah({
        business_id: '123456',
        public_key: 'your-public-key',
        token: 'user-session-token',
        environment: 'sandbox',
        target_id: 'lehjah-accounting'
    });
</script>

In this example, the Lehjah widget will be embedded within the div with the ID lehjah-accounting. You can set the height to 100vh so as have a full height display.

Contact Us

For any questions, support, or to request access to the sandbox and production environments, please reach out to us at [email protected].