{"id":16812232,"url":"https://github.com/flet/spacewall","last_synced_at":"2025-07-18T07:07:51.255Z","repository":{"id":35338164,"uuid":"39600343","full_name":"Flet/spacewall","owner":"Flet","description":":space_invader: Set your wallpaper to the latest NASA's Astronomy Photo of the Day","archived":false,"fork":false,"pushed_at":"2016-03-17T20:11:57.000Z","size":9,"stargazers_count":8,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-15T11:55:36.356Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Flet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-23T23:52:24.000Z","updated_at":"2021-04-09T13:40:01.000Z","dependencies_parsed_at":"2022-08-23T19:50:21.334Z","dependency_job_id":null,"html_url":"https://github.com/Flet/spacewall","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Flet/spacewall","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flet%2Fspacewall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flet%2Fspacewall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flet%2Fspacewall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flet%2Fspacewall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flet","download_url":"https://codeload.github.com/Flet/spacewall/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flet%2Fspacewall/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265716306,"owners_count":23816354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-13T10:21:08.914Z","updated_at":"2025-07-18T07:07:51.230Z","avatar_url":"https://github.com/Flet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spacewall\n\n[![npm][npm-image]][npm-url]\n[![travis][travis-image]][travis-url]\n\n[npm-image]: https://img.shields.io/npm/v/spacewall.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/spacewall\n[travis-image]: https://img.shields.io/travis/flet/spacewall.svg?style=flat-square\n[travis-url]: https://travis-ci.org/flet/spacewall\n\nSet your wallpaper to the NASA Astronomy Photo of the Day and output\ninformation about the image.\n\n## Install\n\n```\nnpm install -g spacewall\n```\n\n## CLI Usage\n\n### Set your wallpaper to the current day's APOD:\n```bash\nspacewall\n```\n\n### ...To a random image\n```\nspacewall --random\n```\n\n### Full Usage\n\n```\n  Usage:\n      spacewall \u003cflags\u003e\n\n  Flags:\n      -k  --key       Provide your NASA developer key (recommended!)\n      -l  --latest    Fetch the latest APOD image (default)\n      -r  --random    Pick a random image from the archive\n      -s  --silent    Suppress all text output\n      -t  --title     Output only the title of the image\n      -j  --json      Show information as JSON\n      -h, --help      Show usage information.\n      -v  --version   Show current version.\n\n  By Default, spacewall will use DEMO_KEY. Its limited to 30 requests per hour\n  and 50 requests per day.\n\n  Get your own NASA developer key at:\n  https://api.nasa.gov/api.html#authentication\n\n  The API key can also be set via the environment variable NASA_API_KEY.\n```\n\n## Programmatic Usage\n\n`spacewall` was built primarily as a CLI program, but it can be `require`'d and used directly as well!\n\n```js\nvar spacewall = require('spacewall')\nspacewall({\n  key: 'MY_API_KEY',\n  latest: true, // default\n  random: false,\n  silent: false,\n  title: false,\n  json: false\n})\n```\nEach option works as described in the CLI usage.\n\n## NASA API Developer key\n`spacewall` is set up to use the `DEMO_KEY`, which is rate-limited to 30 requests per hour and 50 requests per day. Go [sign up](https://api.nasa.gov/api.html#authentication) for your on NASA API developer key to avoid these limits.\n\nAlso, you can tell people \"I'm authorized to use NASA's API, no big deal.\" and they will surely be impressed.\n\n## Fun Tricks\n\nOn Ubuntu (and maybe other Linux flavors), this command can be added to a `.profile` to change the wallpaper to a random image and send a notification to the UI with the title:\n```bash\nnotify-send -i computer  \"$(spacewall --random --title)\n```\n\nAre you using `spacewall` in a fun way? Add your Fun Trick here via a PR!\n\n## Contributing\n\nContributions welcome! Please read the [contributing guidelines](CONTRIBUTING.md) first.\n\n## License\n\n[ISC](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflet%2Fspacewall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflet%2Fspacewall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflet%2Fspacewall/lists"}