{"id":21168309,"url":"https://github.com/tamzinselvi/nightenv","last_synced_at":"2026-02-22T21:32:41.585Z","repository":{"id":34580261,"uuid":"180526277","full_name":"tamzinselvi/nightenv","owner":"tamzinselvi","description":"a utility for updating editor, OS and other themes based on the time of day","archived":false,"fork":false,"pushed_at":"2023-01-05T02:13:57.000Z","size":908,"stargazers_count":4,"open_issues_count":56,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-08T08:47:28.158Z","etag":null,"topics":["automated","dark-mode","dark-theme-switcher","day","iterm2","light-theme","night","nightenv","nodejs","osx","theme","vscode","wallpapers"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tamzinselvi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-10T07:26:21.000Z","updated_at":"2020-11-11T15:38:07.000Z","dependencies_parsed_at":"2023-01-15T07:54:01.606Z","dependency_job_id":null,"html_url":"https://github.com/tamzinselvi/nightenv","commit_stats":null,"previous_names":["tomselvi/nightenv"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/tamzinselvi/nightenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamzinselvi%2Fnightenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamzinselvi%2Fnightenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamzinselvi%2Fnightenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamzinselvi%2Fnightenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tamzinselvi","download_url":"https://codeload.github.com/tamzinselvi/nightenv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamzinselvi%2Fnightenv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29728117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T20:09:16.275Z","status":"ssl_error","status_checked_at":"2026-02-22T20:09:13.750Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automated","dark-mode","dark-theme-switcher","day","iterm2","light-theme","night","nightenv","nodejs","osx","theme","vscode","wallpapers"],"created_at":"2024-11-20T15:11:18.198Z","updated_at":"2026-02-22T21:32:41.569Z","avatar_url":"https://github.com/tamzinselvi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌙 nightenv [![npm](https://img.shields.io/npm/dt/nightenv.svg)](https://github.com/tomselvi/nightenv#installation)\n\n`nightenv` can be configured to change your editor themes, OS themes, and more based on the time of day.\n\n## Table of Contents\n\n* [Requirements](#requirements)\n* [Installation](#installation)\n* [Usage](#usage)\n* [nightenv plugins](#nightenv-plugins)\n  * [Terminals](#terminals)\n  * [Editors/IDEs](#editorsides)\n  * [OS](#os)\n* [About](#about)\n* [Roadmap](#roadmap)\n\n## Requirements\n\n* node \u003e= 6.11\n\n## Installation\n\n```sh\nnpm i -g nightenv\nnightenv\n```\n\n`nightenv` can be run multiple times without side effects.  To uninstall, find the entry in your crontab via `crontab -e` and remove it, followed by `npm rm -g nightenv`.\n\n## Usage\n\n`nightenv` can be configured via `~/.nightenv.json`.  Add a new entry based on sample configuration provided by your plugins.\n\n## nightenv plugins\n\n### Terminals\n\n* [nightenv-iterm](https://github.com/tomselvi/nightenv/tree/master/packages/nightenv-iterm)\n\n### Editors/IDEs\n\n* [nightenv-vscode](https://github.com/tomselvi/nightenv/tree/master/packages/nightenv-vscode)\n\n### Productivity\n\n* [nightenv-slack](https://github.com/tomselvi/nightenv/tree/master/packages/nightenv-slack)\n\n### OS\n\n* [nightenv-osx](https://github.com/tomselvi/nightenv/tree/master/packages/nightenv-osx)\n\n### Create your own plugin\n\nTo create your own plugin, create a JavaScript file that exports a `execute` function, like so:\n\n```js\nmodule.exports.execute = function(config, isNight) {\n\n  // config is an object that contains configuration arbitrarily\n  // defined by your plugin\n\n  // isNight is a boolean that represents whether it is night time\n\n  // this function should return a promise with the configuration\n  // containing any updates if there are any, giving your plugin\n  // the ability to maintain state\n\n};\n```\n\n## About\n\nAfter many days of switching between dark and light themes to reduce eye strain, I needed an automated solution, hence `nightenv`.  This is not meant to be a state of the art piece of software, but instead it was meant to be a quick and easy tool that could be easily extended.  Feel free to contribute new plugins or update the already existing ones if you have any issues.\n\nCredits to [themer](https://github.com/mjswensen/themer) and [mjswensen](https://github.com/mjswensen) for the inspiration to whip this together.\n\n## Roadmap\n\nWill probably declare v1 after the following items are compeleted, not in any particular order:\n\n* tests / coverage\n* tmux\n* vim\n* slack\n* Windows 10\n* Linux\n* ?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftamzinselvi%2Fnightenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftamzinselvi%2Fnightenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftamzinselvi%2Fnightenv/lists"}