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

barrierless

v0.0.6

Published

A CLI tool that translates a text to a target language using AI.

Downloads

117

Readme

Barrierless

What is Barrierless

Barrierless is a command-line tool designed to break down language barriers by providing seamless translations from one language to another. Powered by GROQCloud, this tool allows users to quickly translate text files into their desired target language, making communication across different languages effortless.

Image description

Features

  • Auto-detects languages.
  • Multiple Language Support: Translate text between a wide range of languages.
  • Now supporting GROQCloud and GeminiAI
  • Easy to Use: Simple command-line interface for quick translations.
  • Customizable: Easily extendable for additional language features or API support.

How to use

Set Up

Please refer to CONTRIBUTING.md

Running the Tool

bl-bot <input files> [-l <target language>]

Note

If no target language specified, it is default to English.

Arguments

  • <input files>: Input filenames need to be translated (required)

Options

  • -v, --version: Barrierless version
  • -l, --language <lang>: Target language for translation (default: "English")
  • -h, --help: Display help for command
  • -o, --output: Output translated content to output file(s)
  • -p, --provider: AI provider (currently supporting "Groq" and "Gemini". Default: "Groq")
  • -m, --model: AI provider model (default: Groq="llama3-8b-8192" or Gemini="gemini-1.5-flash")

Examples

Translate a text file in Chinese (to English):

CLI:

bl-bot examples/cn-file.txt

Output:

 ____                  _           _
| __ )  __ _ _ __ _ __(_) ___ _ __| | ___  ___ ___
|  _ \ / _` | '__| '__| |/ _ \ '__| |/ _ \/ __/ __|
| |_) | (_| | |  | |  | |  __/ |  | |  __/\__ \__ \
|____/ \__,_|_|  |_|  |_|\___|_|  |_|\___||___/___/

Provider: Groq
📂 Reading file(s)...
   1/1: cn-file.txt
🔄 Translating file(s) to English...
✅ Results:
*** cn-file_en.txt ***
In this fast-paced world, learning new skills is crucial to staying competitive. Whether it's programming, language learning, or other professional skills, continuous learning helps us constantly improve. Effort and perseverance will bring rich rewards. Success is not achieved overnight, but rather through continuous accumulation and hard work to realize our dreams.

====== Done ======

Translate a text file in English to French:

CLI:

bl-bot examples/en-file.txt -l french

Output:

 ____                  _           _
| __ )  __ _ _ __ _ __(_) ___ _ __| | ___  ___ ___
|  _ \ / _` | '__| '__| |/ _ \ '__| |/ _ \/ __/ __|
| |_) | (_| | |  | |  | |  __/ |  | |  __/\__ \__ \
|____/ \__,_|_|  |_|  |_|\___|_|  |_|\___||___/___/

Provider: Groq
📂 Reading file(s)...
   1/1: en-file.txt
🔄 Translating file(s) to French...
✅ Results:
*** en-file_fr.txt ***
Chaque jour est une nouvelle chance d'apprendre quelque chose de nouveau. De petits pas peuvent mener à de grands changements. Continuez d'essayer, et vous verrez des progrès avec le temps.

====== Done ======

Translate 2 text files in Chinese and English to Vietnamese, and save to output files:

CLI:

bl-bot examples/* -l vietnamese -o

Output:

 ____                  _           _
| __ )  __ _ _ __ _ __(_) ___ _ __| | ___  ___ ___
|  _ \ / _` | '__| '__| |/ _ \ '__| |/ _ \/ __/ __|
| |_) | (_| | |  | |  | |  __/ |  | |  __/\__ \__ \
|____/ \__,_|_|  |_|  |_|\___|_|  |_|\___||___/___/

Provider: Groq
📂 Reading file(s)...
   1/2: cn-file.txt
   2/2: en-file.txt
🔄 Translating file(s) to Vietnamese...
📝 Outputting translated file(s)...
📥 All translated files have been saved to the "/translated_files" directory.
====== Done ======

Translate a text file in English and Chinese to Spanish, using GeminiAI provider:

CLI:

bl-bot examples/* -l spanish -p gemini

Output:

 ____                  _           _
| __ )  __ _ _ __ _ __(_) ___ _ __| | ___  ___ ___
|  _ \ / _` | '__| '__| |/ _ \ '__| |/ _ \/ __/ __|
| |_) | (_| | |  | |  | |  __/ |  | |  __/\__ \__ \
|____/ \__,_|_|  |_|  |_|\___|_|  |_|\___||___/___/

Provider: Gemini
📂 Reading file(s)...
   1/2: cn-file.txt
   2/2: en-file.txt
🔄 Translating file(s) to Spanish...
✅ Results:
*** cn-file_es.txt ***
En este mundo acelerado, aprender nuevas habilidades es fundamental para mantenerse competitivo. Ya sea programación, aprendizaje de idiomas u otras habilidades profesionales, el aprendizaje continuo nos ayuda a progresar constantemente. El esfuerzo y la perseverancia traerán ricas recompensas. El éxito no se logra de la noche a la mañana, sino que es un sueño que se materializa a través de la acumulación y el esfuerzo constante.

*** en-file_es.txt ***
Cada día es una nueva oportunidad para aprender algo nuevo. Los pequeños pasos pueden llevar a grandes cambios. Sigue intentando, y verás progreso con el tiempo.

====== Done ======