pdf-brain

(β˜… 645)

🧠 Local PDF knowledge base with vector search using libsql w/vectors

File Explorer

  • .env
  • .gitattributes
  • .gitignore
  • .ralph-context.json
  • .ralph-iterations.jsonl
  • .secretlintrc.json
  • AGENTS.md
  • benchmark-before.json
  • bun.lock
  • CHANGELOG.md
  • LICENSE
  • package.json
  • prd.json
  • progress.txt
  • README.md
  • SECURITY_SUPPLY_CHAIN.md
  • tsconfig.json

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

πŸ”

brew install

View Details β–Ό

Install a Homebrew formula or cask.

brew install {{formula|cask}}

Install a formula/cask:

brew install {{[-s|--build-from-source]}} {{formula}}

Build and install a formula from source (dependencies will still be installed from bottles):

brew install {{[-n|--dry-run]}} {{formula|cask}}

Download the manifest, print what would be installed but don't actually install anything:

πŸ”

bun install

View Details β–Ό

Install JavaScript dependencies for a project from `package.json`.

bun {{[i|install]}}

Install all dependencies listed in `package.json`:

bun {{[i|install]}} {{package_name}}@{{version}}

Install a single package (this is an alias for `bun add`):

bun {{[i|install]}} {{[-g|--global]}} {{package_name}}

Install a package globally:

πŸ”

bun run

View Details β–Ό

Execute a JavaScript/TypeScript file, or a script from `package.json`.

bun run {{script_name}}

Run a script defined in `package.json`:

bun run {{path/to/file.ts}}

Run a JavaScript or TypeScript file directly:

bun run --watch {{path/to/file.ts}}

Run a file in "watch" mode (restarts automatically when the file changes):

πŸ”

bun test

View Details β–Ό

Run tests using Bun's built-in test runner.
It is a fast, Jest-compatible test runner that looks for `*.test.ts` (and similar) files.

bun test

Run all test files found in the project:

bun test {{path/to/file.test.ts}}

Run a specific test file or directory:

bun test --watch

Run tests in "watch" mode (re-runs automatically on file changes):

πŸ”

git clone

View Details β–Ό

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

πŸ”

lsof

View Details β–Ό

List open files and the corresponding processes.
Note: Root privileges are required to list files opened by others.

lsof {{path/to/file}}

Find the processes that have a given file open:

lsof -i :{{port}}

Find the process that opened a local internet port:

lsof -t {{path/to/file}}

Only output the process ID (PID):

πŸ”

npm install

View Details β–Ό

Install Node packages.

npm {{[i|install]}}

Install dependencies listed in `package.json`:

npm {{[i|install]}} {{package_name}}@{{version}}

Download a specific version of a package and add it to the list of dependencies in `package.json`:

npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}

Download the latest version of a package and add it to the list of dev dependencies in `package.json`:

πŸ”

ollama

View Details β–Ό

A large language model runner.
For a list of available models, see <https://ollama.com/library>.

ollama serve

Start the daemon required to run other commands:

ollama run {{model}}

Run a model and chat with it (will automatically download the model if it's not downloaded):

ollama run {{model}} --think=false "{{prompt}}"

Run a model with a single prompt and thinking turned off:

// repository documentation