Software Installation Guide
This guide will walk you through installing the required software for contributing to the database.
Automatic Setup (Recommended)
The OFD wrapper script can automatically detect and help install dependencies. Simply run:
Linux/macOS:
./ofd.sh setup
Windows:
ofd.bat setup
The wrapper will: 1. Check if Python 3.10+ is installed 2. Attempt to auto-install Python if missing: - Debian/Ubuntu: apt - Fedora/RHEL: dnf - Arch Linux: pacman - openSUSE: zypper - NixOS: nix-env - macOS: Homebrew - Windows: winget, Chocolatey, or Scoop 3. Create a Python virtual environment 4. Install Python dependencies
Node.js dependencies are installed lazily - only when you first run ./ofd.sh webui or ofd.bat webui. The wrapper will also attempt to auto-install Node.js using the same package managers if needed.
Note for NixOS users: The repo includes a
shell.nixfile. You can usenix-shellor enable direnv to automatically set up the environment.
If auto-installation fails, follow the manual installation guides below.
Manual Installation
Git
Git is required to download the database and upload your changes. Follow the instructions for your operating system below.
Windows
Go to https://git-scm.com/downloads and click the `Download for Windows` Button  You'll most likely want to click on `Git for Windows/x64 Setup` on most systems as of writing  Once the download is complete, click on the installer to start installing Git. Click through the setup wizard, leaving all options on their default settings.  When installation is complete, uncheck "View Release Notes" and click "Finish" to close the installer. Linux
- **Fedora/RHEL** ```bash sudo dnf install git ``` - **Debian/Ubuntu** ```bash sudo apt install git ``` - **Arch** ```bash sudo pacman -Syu git ```macOS
Git *should* be preinstalled but in the case that it isn't we'd recommend installing it through [homebrew](https://brew.sh/) using the following command:brew install git
If you don't have homebrew you can also use the [latest macOS Git Installer](https://sourceforge.net/projects/git-osx-installer/files/git-2.23.0-intel-universal-mavericks.dmg/download?use_mirror=autoselect)
Python
Python is required to run the data validation and sorting scripts. Follow the instructions for your operating system below.
Windows
Go to https://apps.microsoft.com/detail/9pnrbtzxmb4z?ocid=webpdpshare and click the `View in Store` button  Click `Open Microsoft Store` if prompted and click `Get` Linux
- **Fedora/RHEL** ```bash sudo dnf install python ``` - **Debian/Ubuntu** ```bash sudo apt install python3 python3-venv # Optional or you'll have to replace python with python3 yourself in all commands sudo apt install python-is-python3 ``` - **Arch** ```bash sudo pacman -Syu python ```macOS
#### Homebrew (recommended) If you've got [homebrew](https://brew.sh/) installed you can simply run:brew install python
#### Installer
Go to https://www.python.org/downloads/ and click the `Download Python` button

Once the download is complete, double-click the package to start installing Python. The installer will walk you through a wizard to complete the installation, and in most cases, the default settings work well, so install it like the other applications on macOS. You may also have to enter your Mac password to let it know that you agree with installing Python.

Mac Python instructions copied from https://www.dataquest.io/blog/installing-python-on-mac/
Python Requirements
After installing Python, you need to set up a virtual environment and install the project's Python dependencies. Open a terminal/command prompt in the open-filament-database folder.
Creating a Virtual Environment
Windows
python -m venv .venv
.venv\Scripts\activate
Linux / macOS
python3 -m venv .venv
source .venv/bin/activate
You'll know the virtual environment is active when you see (.venv) at the beginning of your command prompt.
Installing Dependencies
With the virtual environment activated, install the requirements:
pip install -r requirements.txt
On some systems you may need to use pip3 instead:
pip3 install -r requirements.txt
Note: You'll need to activate the virtual environment each time you open a new terminal to run the validator.
Node.js/NPM
Node.js is required to run the WebUI for easy editing of the database. Follow the instructions for your operating system below.
Windows
Go to https://nodejs.org/en/download/ and click the `Windows Installer (.msi)` button  Once the download is complete, click on the executable in the top right to start installing Node. Wait a bit for it to load and then next, you'll have to check a box and after that just click through and wait for it to finish, then click `Close` Linux
- **Fedora/RHEL** ```bash sudo dnf install nodejs npm ``` - **Debian/Ubuntu** ```bash sudo apt install nodejs npm ``` - **Arch** ```bash sudo pacman -Syu nodejs npm ```macOS
#### Homebrew (recommended) If you've got [homebrew](https://brew.sh/) installed you can simply run:brew install node
#### Installer
Go to https://nodejs.org/en/download and click the `macOS Installer (.pkg)` button near the bottom of the page

Once the download is complete, double-click the package to start installing node. The installer will walk you through a wizard to complete the installation, and in most cases, the default settings work well, so install it like the other applications on macOS. You may also have to enter your Mac password to let it know that you agree with installing node.