1# @strudel/sampler
2
3This package allows you to serve your samples on disk to the strudel REPL. 
4
5```sh
6cd ~/your/samples/ 
7npx @strudel/sampler
8```
9
10This will run a server on `http://localhost:5432`. 
11You can now load the samples via:
12
13```js
14samples('http://localhost:5432')
15```
16
17## Options
18
19```sh
20LOG=1 npx @strudel/sampler # adds logging
21PORT=5555 npx @strudel/sampler # changes port
22```
23
24## static json
25
26when running with `--json`, you will simply get the json logged back:
27
28```sh
29npx --yes @strudel/sampler --json > strudel.json
30```
31
32this is useful if you want to create a sample pack from the current folder.