https://github.com/pasithea0/circadian-extension
A browser extension that tints pages by time of day (daytime, sunset, bedtime).
https://github.com/pasithea0/circadian-extension
bluelight chrome dark-mode dark-reader extension firefox flux
Last synced: 19 days ago
JSON representation
A browser extension that tints pages by time of day (daytime, sunset, bedtime).
- Host: GitHub
- URL: https://github.com/pasithea0/circadian-extension
- Owner: Pasithea0
- Created: 2025-10-31T04:18:01.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-10-31T04:59:01.000Z (7 months ago)
- Last Synced: 2025-10-31T06:32:34.686Z (7 months ago)
- Topics: bluelight, chrome, dark-mode, dark-reader, extension, firefox, flux
- Language: TypeScript
- Homepage:
- Size: 200 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Circadian
A browser extension that tints pages by time of day (daytime, sunset, bedtime).

## Philosophy
Blue-light impacts our sleep and overall health by disrupting melanopsin receptor's normal function that calibrates our circadian rhythm. This extension's creation was inspired by [f.lux](https://justgetflux.com)'s ability to adjust your device's color profile temperature based on the time of day to aid in preventing this. It's not perfect (this extension definitely isn't) but it's a simple tool many users use to help.
The idea: I was checking out some dark reader Firefox addons when I asked myself if any of these dark reader addons had temperature adjustments? I suspect not. And if I were to make an extension, I could use [Orion](https://kagi.com/orion) on my iPhone to install my extension and essentially get f.lux on my iPhone! (Apple shut down f.lux's app)
Obviously it's not system wide, but still kinda neat!
You can even pair Circadian with other dark reader extensions to get the best experience!
### How it works:
Circadian is really simple. It creates an invisible element over your whole web page, then applies a CSS filter to it! There's a bit of math involved to calculate the RGB values from the blackbody radiation scale, but that's essentially it!
## Installation
Find Circadian on the [Chrome webstore](https://chromewebstore.google.com/detail/circadian/ciflpcbdlfgbjnclilnngfbkehipndpn) and [Firefox addon store](https://addons.mozilla.org/en-US/firefox/addon/circadian/)!
Alternatively, download the latest release and install manually. Look up how, I can't be bothered explaining everything.
## Troubleshooting
- If the extension doesn't seem to work, first try restarting your browser. Sometimes the filter isn't applied right away.
- You may also need to grant permission to modify every website. (It's gotta add the filter)
- If you experience any issues, don't hesitate to open an issue!
## Development
Prerequisites: Node.js, pnpm
```bash
pnpm install
pnpm dev
```
## Build
```bash
# Chrome MV3
pnpm build:chrome
# Firefox MV3
pnpm build:firefox
pnpm package:firefox
```
Load the built output from `build/-prod` (or dev for live preview) in the browser.
## Notes
- Icons are in `assets/`. I used magick to convert the logo from SVG to PNG.
## License
MIT