A simple dynamically routed library written in Svelte. Sylgar is designed primarily for TTRPG books, but can be used for any kind of book.
-
Ensure you have the prerequisites installed:
-
Install Sylgar:
git clone https://github.com/RJMurg/Sylgar.git
- Install dependencies:
npm install
or
bun install
-
Create a .env file
touch .env
-
Add the following to the .env file:
PASSWORD=[chosen password]
-
Build Sylgar: ENSURE THAT YOU HAVE THE CORRECT ADAPTER SPECIFIED IN svelte.config.js
npm run build
or
bun run build
- Run Sylgar:
node ./build/index.js
or
bun ./build/index.js
All books should go in a library
directory in static
. The directory structure should be as follows:
library
├── book1.pdf
├── book2.pdf
├── DIR1
│ ├── book3.pdf
│ ├── book4.pdf
├── DIR2
│ ├── book5.pdf
│ ├── book6.pdf
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Sylgar is licensed under the MIT license. Please see the docs/LICENSE
file for more information.