{"id":22543250,"url":"https://github.com/sefinek/node-sharex-server","last_synced_at":"2025-09-23T19:11:10.569Z","repository":{"id":230903204,"uuid":"757485113","full_name":"sefinek/Node-Sharex-Server","owner":"sefinek","description":"Node.js project utilizing Express.js for hosting screenshots taken with ShareX.","archived":false,"fork":false,"pushed_at":"2024-11-29T12:05:36.000Z","size":295,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-06T10:54:35.641Z","etag":null,"topics":["express","express-js","express-project","sharex","sharex-api","sharex-cdn","sharex-host","sharex-server","sharex-upload","sharex-uploader","sharexuploader"],"latest_commit_sha":null,"homepage":"https://screenshots.sefinek.net","language":"JavaScript","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/sefinek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"sefinek24","patreon":"sefinek","ko_fi":"sefinek"}},"created_at":"2024-02-14T15:38:32.000Z","updated_at":"2024-11-29T16:02:23.000Z","dependencies_parsed_at":"2024-10-30T08:21:36.270Z","dependency_job_id":null,"html_url":"https://github.com/sefinek/Node-Sharex-Server","commit_stats":null,"previous_names":["sefinek24/sharex-express-server","sefinek/node-sharex-server"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sefinek%2FNode-Sharex-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sefinek%2FNode-Sharex-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sefinek%2FNode-Sharex-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sefinek%2FNode-Sharex-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sefinek","download_url":"https://codeload.github.com/sefinek/Node-Sharex-Server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228604605,"owners_count":17944281,"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":["express","express-js","express-project","sharex","sharex-api","sharex-cdn","sharex-host","sharex-server","sharex-upload","sharex-uploader","sharexuploader"],"created_at":"2024-12-07T13:15:29.321Z","updated_at":"2025-09-23T19:11:05.518Z","avatar_url":"https://github.com/sefinek.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sefinek24","https://patreon.com/sefinek","https://ko-fi.com/sefinek"],"categories":[],"sub_categories":[],"readme":"# 📷 ShareX Node.js Server\nThis project allows for the launching of a local server, intended for hosting screenshots taken with the [Sharex](https://getsharex.com/) program.\n\n## ✔️ What does it include?\n- Configured `CORS`\n- Ready logger: `morgan`\n- Middlewares ready to handle common errors:\n    - `429` Too Many Requests\n    - `408` Request Timeout\n    - `404` Not Found\n    - `500` Internal Server Error\n- A static `public` folder\n- A `robots.txt` file that blocks screenshot indexing\n- A preconfigured `ecosystem.config.js` file for [PM2](https://www.npmjs.com/package/pm2)\n\n## 🤔 What is this for?\nWith this solution, you don't have to upload screenshots to external services.\nBeing an administrator, you can delete screenshots from the server with just a few clicks, thereby revoking everyone's access to the screenshot file.\n\n## ☁️ Cloudflare Integration\n- For those utilizing [Cloudflare](https://www.cloudflare.com), enhancing your security measures by incorporating specific expressions into the [Web Application Firewall](https://www.cloudflare.com/learning/ddos/glossary/web-application-firewall-waf) (WAF) comes highly recommended.\n  This approach can significantly bolster your website's defense.\n  Please visit [this](https://github.com/sefinek/cloudflare-waf-expressions) repository.\n\n- If you are using any proxy server (for example, Cloudflare), make sure to adjust the `trust proxy` setting in the [index.js](index.js) file.\n  A value of 1 indicates a single proxy server. This adjustment is necessary for the server to accurately read the IP addresses of visitors.\n\n## 📝 How to use?\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/sefinek/Node-Sharex-Server.git\n    ```\n2. Install the necessary packages using `npm install`.\n3. Rename the `.env.default` file to `.env` and fill in the necessary data.\n4. Run the server using: `node .`\n5. Hosting:\n    - **At home (if you lack open ports or an external IP)** \\\n      See [Cloudflare Tunnel Documentation](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/get-started/create-local-tunnel). Remember, your domain must have Cloudflare DNS settings (at least that's what I believe).\n6. File server:\n    - **SAMBA** \\\n      See [this](https://phoenixnap.com/kb/ubuntu-samba) tutorial.\n7. Configuration:\n    - **Windows** \\\n      ![windows.png](data/images/readme/windows.png)\n    - **Sharex** \\\n      ![sharex-smb.png](data/images/readme/sharex-smb.png) \\\n      ![paths.png](data/images/readme/paths.png)\n8. That's it! You can now take screenshots and upload them to your server.\n\n## 💙 Thank you\nIf you find this repository useful, please consider giving it a star. If you need assistance or have any questions, feel free to open a new [Issue](https://github.com/sefinek/Node-Sharex-Server/issues).\n\n## 📑 License\nThis project is licensed under the [MIT License](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsefinek%2Fnode-sharex-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsefinek%2Fnode-sharex-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsefinek%2Fnode-sharex-server/lists"}