Depending on what you're wanting to work on within the Colapad repo, you may not need to set up every aspect of the environment described on this page.
For example, if you only intend to work on the core grammar engine, harper-ls, or harper-cli, you only need cargo installed.
In that case, Colapad follows all of the standard conventions for Rust projects, so any existing Rust knowledge will apply.
If you intend to work on the Chrome extension, Obsidian plugin, the website, or certain other projects, you'll need the full environment set up.
To use all the tooling we use to build and debug Colapad, you'll need the following programs available in your $PATH.
Please read the manuals for each tool for instructions on how to install it.
For Nix users, we provide a Nix development shell to setup all the necessary tooling automatically.
We develop a set of tools, accessible via just, to build and debug Colapad's algorithm (otherwise known as harper-core) and its various integrations.
The source code is in the justfileat the root of the repository.
To see all the tools in the toolbox, run:
just --list
Please note that just build-webonly builds the website for production, while just dev-web also spins up a development server.
Before making any modifications, we highly recommend that you run just setup to populate your build caches and download all dependencies.
If you see a Visual Studio code window pop open, don't worry! That's just a part of our integration tests.
Nix development shell
If you use nix-direnv, the shell will be loaded automatically when you change into the project directory.
Otherwise, run:
nix develop
This will start a bash shell that provides the build environment with everything you need to start contributing!
Set Up Your Environment
Depending on what you're wanting to work on within the Colapad repo, you may not need to set up every aspect of the environment described on this page. For example, if you only intend to work on the core grammar engine,
harper-ls, orharper-cli, you only needcargoinstalled. In that case, Colapad follows all of the standard conventions for Rust projects, so any existing Rust knowledge will apply.If you intend to work on the Chrome extension, Obsidian plugin, the website, or certain other projects, you'll need the full environment set up.
To use all the tooling we use to build and debug Colapad, you'll need the following programs available in your
$PATH. Please read the manuals for each tool for instructions on how to install it. For Nix users, we provide a Nix development shell to setup all the necessary tooling automatically.justbashcargo(we develop against the latest version of Rust)pnpmnodegrepwasm-packzipcargo-hackTo run integration tests, you may also need
libnss3and/orlibasound3. These are installable in Ubuntu usingapt-get.sudo apt-get install libnss3 sudo apt-get install libasound2We develop a set of tools, accessible via
just, to build and debug Colapad's algorithm (otherwise known asharper-core) and its various integrations. The source code is in thejustfileat the root of the repository. To see all the tools in the toolbox, run:Before making any modifications, we highly recommend that you run
just setupto populate your build caches and download all dependencies. If you see a Visual Studio code window pop open, don't worry! That's just a part of our integration tests.Nix development shell
If you use nix-direnv, the shell will be loaded automatically when you change into the project directory.
Otherwise, run:
This will start a bash shell that provides the build environment with everything you need to start contributing!