Skip to content

Latest commit

 

History

History
102 lines (64 loc) · 2.32 KB

README.md

File metadata and controls

102 lines (64 loc) · 2.32 KB

Librey Instances Viewer

This script allows you to view active Librey instance URLs directly in your terminal. It fetches data from a service that dynamically provides a list of currently active instances, ensuring that the displayed links are up-to-date and functional. This tool is particularly useful for quickly accessing and verifying the availability of Librey instances without having to deal with potentially outdated or inactive links.

Prerequisites

Installation

  1. Clone the Repository:
   git clone <repository-url>
  1. Navigate to the Repository Folder:
cd path/to/repository

Usage

  1. Run the script:
node librey-instances.js instances
  1. Sample Output:
https://search.ahwx.org/
https://search2.ahwx.org/
https://search3.ahwx.org/
// ... rest of the instances

Note: The provided HTML file does not work due to CORS restrictions. You can use the above script to get the list of instances in your terminal.

Creating an Alias (Optional)

For convenience, especially if you are frequently using this script, you can create an alias on macOS or Linux:

Copy the Script to a Custom Directory:

Create a directory, if it doesn't exist, for your custom scripts. For example, ~/local/bin:

mkdir -p ~/local/bin

Copy the librey-instances.js script to this directory:

cp path/to/librey-instances.js ~/local/bin/

Make the Script Executable:

Change the script's permissions to make it executable:

chmod +x ~/local/bin/librey-instances.js

Add a Shebang Line:

Edit the librey-instances.js file to start with the following shebang line:

#!/usr/bin/env node

Create the Alias:

Edit your .bashrc or .bash_profile file to include the alias. Add the following line:

alias showlibrey="~/local/bin/librey-instances.js"

After editing, apply the changes by either restarting the terminal or sourcing your profile:

source ~/.bashrc # Or source ~/.bash_profile

Using the Alias:

Now, you can run the script from anywhere in your terminal using the alias:

showlibrey

This setup will enable you to quickly and easily view Librey instances from the terminal.

Contact

For additional queries or suggestions, feel free to contact ktleary@gmail.com