Airfox is a simple web browser / content fetcher based on Markdownee. It runs on Node.js.
---
config:
layout: elk
fontFamily: '''Source Code Pro Variable'', monospace'
themeVariables:
fontFamily: '''Source Code Pro Variable'', monospace'
---
flowchart TB
subgraph s1["Fetch"]
n1["Ask for URL"]
n2["Fetch"]
n4["Write to"]
n3["Document"]
end
subgraph s3["Generate ULID"]
n11["Time"]
n6["Generate ULID"]
n12["Randomness"]
end
subgraph s2["Find path delimeter"]
n10["Operating System"]
n7["Find path delimeter"]
end
subgraph s4["Find filename"]
n13["Find filename"]
s3
s2
end
n1 --> n2
n2 L_n2_n4_0@--- n4
n4 L_n4_n3_0@--> n3
n3 L_n3_n5_0@--> n5["Save"]
n5 L_n5_n9_0@--- n9["To"]
n9 L_n9_n8_0@--> n8["Disk Storage"]
n10 --> n7
n11 --> n6
n12 --> n6
n7 --> n13
n6 --> n13
n13 --> n5
n1@{ shape: manual-input}
n2@{ shape: subproc}
n4@{ shape: text}
n3@{ shape: doc}
n11@{ shape: terminal}
n6@{ shape: subproc}
n12@{ shape: terminal}
n10@{ shape: terminal}
n7@{ shape: subproc}
n5@{ shape: manual-file}
n9@{ shape: text}
n8@{ shape: disk}
L_n2_n4_0@{ animation: fast }
L_n4_n3_0@{ animation: fast }
L_n3_n5_0@{ animation: slow }
L_n5_n9_0@{ animation: slow }
L_n9_n8_0@{ animation: slow }
run:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash
\. "$HOME/.nvm/nvm.sh"
nvm install 24
npm install playwright ulid @markdownee/markdownee
npx playwright install firefox ffmpeg webkit
bash ./install.sh
node airfox.mjsor on Windows:
curl https://nodejs.org/dist/v24.21.0/node-v24.21.0-x64.msi -o x64node.msi
curl https://nodejs.org/dist/v24.21.0/node-v24.21.0-arm64.msi -o arm64node.msi
x64node.msi # arm64node.msi if you are running an ARM system
follow the installer and select npm for the package manager
npm install playwright ulid @markdownee/markdownee
npx playwright install firefox ffmpeg webkit
install.bat
node airfox.mjsMIT license.
see LICENSE.