Amphetamine is a Mac utility with controls beyond a web page’s reach. AwakeScreen is useful for a simpler case: asking a compatible browser to keep its visible screen awake for a timed session. It does not change Mac sleep settings or keep a closed-lid Mac running.
A browser option for a narrower need
If you only need a Mac display to stay visible during a browser session, AwakeScreen may be a lightweight option to try. It does not offer Amphetamine’s full desktop controls.
For closed-lid or long-running use
A website cannot override Mac sleep settings or lid behavior. Use macOS controls or an approved app if you need a system-level configuration, and check the task itself.
For the underlying browser behavior, see the W3C Screen Wake Lock specification.