aboutsummaryrefslogtreecommitdiff
path: root/cmd
AgeCommit message (Collapse)AuthorFilesLines
2025-03-20cmd/anubis: drastically optimize proof of work (#19)Xe Iaso10-113/+166
* cmd/anubis: drastically optimize proof of work Closes #12 Closes #17 This drastically optimizes the proof of work check by removing the stringify call at every iteration. Additionally, this optimizes the checks by running them in parallel for as many threads as the browser has available (according to navigator.hardwareConcurrency). This also changes the redirect lag to 250 milliseconds instead of 2000 milliseconds in order to be perceptually faster. This is below the reaction time threshold of many people, so this will make the post-check success phase perceptually instant. Testing on an iPhone 7 Plus has shown that this can clear a difficulty 4 check in 3.4 seconds. This actually optimizes the check so much it may be a logistical concern for operators. * cmd/anubis/js: fix happy cachebuster logic Signed-off-by: Xe Iaso <me@xeiaso.net> --------- Signed-off-by: Xe Iaso <me@xeiaso.net>
2025-03-19cmd/containerbuild: set container build timestamp to the timestamp of the ↵Xe Iaso1-0/+10
commit (#15) Signed-off-by: Xe Iaso <me@xeiaso.net>
2025-03-19Try using ko to build imagesXe Iaso2-0/+134
Signed-off-by: Xe Iaso <me@xeiaso.net>
2025-03-18cmd/anubis: point the links elsewhereXe Iaso2-3/+3
Signed-off-by: Xe Iaso <me@xeiaso.net>
2025-03-17cmd/anubis: rephrase noscript warningXe Iaso3-155/+196
Closes Xe/x#701 Signed-off-by: Xe Iaso <me@xeiaso.net>
2025-03-17initial import from /x/ monorepoXe Iaso33-0/+2069
Signed-off-by: Xe Iaso <me@xeiaso.net>