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

scv-bilara

v3.161.77

Published

SuttaCentral bilara-data library

Downloads

14,041

Readme

scv-bilara

SuttaCentral Voice adapter for Bilara

Installation

Open a Linux terminal window and change to the directory where you want to install scv-bilara. For example:

mkdir -p ~/dev
cd ~/dev

If you haven't installed git yet on your computer, follow this instruction: https://github.com/git-guides/install-git.

Now install scv-bilara:

git clone https://github.com/sc-voice/scv-bilara
cd scv-bilara
./scripts/install

Get the latest content

Once your software has been installed, you'll want the latest content. You can run this as frequently as you wish, since SuttaCentral has an ongoing review process that results in frequent updates to existing translations. In addition, new translations are constantly being added for multiple languages.

scripts/get-content

For low-bandwidth users, the initial content transfer will take a long time since it is almost 1GB of data. Subsequent updates are incremental.

Verify your installation:

scripts/env-info

You should see something like this:

ENVIRONMENT VERSION INFORMATION
===============================
   npm --version        => EXPECTED:8.x.x ACTUAL:8.6.0
   node --version       => EXPECTED:v16.x.x ACTUAL:v16.15.0
   rg --version         => EXPECTED:ripgrep 12.x.x ... ACTUAL:ripgrep 12.1.1 (rev 7cb211378a) -SIMD -AVX (compiled) +SIMD +AVX (runtime)                               
   sudo lsb_release -r  => EXPECTED:Release: 10 ACTUAL:Release: 10

SEARCH TIMES FOR "root of suffering"
====================================
Checking grep...

real    0m2.358s
user    0m0.879s
sys     0m1.073s

Checking ripgrep...

real    0m0.039s
user    0m0.025s
sys     0m0.031s

Scripts

search

Scriptable linux command-line utility that searches for suttas by id, phrase or keyword in multiple languages (e.g., pli, en, de). Output result formats include: human-readable, CSV, or JSON. Search patterns can be:

  • SuttaCentral ids search by sutta and/or segment id. E.g.: "mn1", "an1.2-15", "mn1,mn3", "mn1:1.1"
  • phrase search looks for matching phrase. E.g: "nandi dukkha"
  • keyword search looks for matching keywords. E.g.: "blue red white"
  • romanized search ignores Pali diacriticals. E.g., "ananda"

Example:

./scripts/search nandi dukk

For more information, ./scripts/search --help.

branch SUTTA LANG TRANSLATOR

Create a Github bilara-data branch for working on an unpublished translation.

For more information, './scripts/bilara-auth --help'

publish SUTTA (DEPRECATED)

Merge the contents of the unpublished SUTTA branch into master. Upon success, delete the merged SUTTA branch, which will be empty of changes.

API

The scv-bilara library has Javascript classes for

  • BilaraData abstraction for the bilara-data container itself
  • BilaraPath utility for parsing file paths local to bilara-data
  • DETranslation wrapper for Anagarika Sabbamitta's German translations
  • English FuzzyWordSet that recognizes English words
  • ExecGit Simple Javascript Git wrapper
  • FuzzyWordSet Determines set membership by prefix matching
  • MLDoc Multilingual segmented document
  • Pali FuzzyWordSet that recognizes Pali words
  • Seeker Search engine. See scripts/search
  • SegDoc Single-language segmented document
  • SuttaCentralId utility for matching and parsing SuttaCentral Ids
  • Unicode multilingual helper