Skip to content

ktleary/librey-instances

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]

About

get librey instances

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published