{"id":43734218,"url":"https://github.com/night0721/nxc","last_synced_at":"2026-04-17T08:02:09.026Z","repository":{"id":159511223,"uuid":"628546245","full_name":"night0721/nxc","owner":"night0721","description":"Simple host for file uploader, paste bin and URL shortener, with dashboard, oauth and webhook support","archived":false,"fork":false,"pushed_at":"2026-02-03T12:51:49.000Z","size":192,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-05T20:20:12.597Z","etag":null,"topics":["file-uploader","image-uploader","pastebin","rust","sharex","url-shortener"],"latest_commit_sha":null,"homepage":"https://nxc.night0721.xyz","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/night0721.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-04-16T09:38:52.000Z","updated_at":"2026-02-04T23:41:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"f738af04-01aa-458a-9661-76d67848be98","html_url":"https://github.com/night0721/nxc","commit_stats":null,"previous_names":["night0721/nxc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/night0721/nxc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night0721%2Fnxc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night0721%2Fnxc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night0721%2Fnxc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night0721%2Fnxc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/night0721","download_url":"https://codeload.github.com/night0721/nxc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night0721%2Fnxc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31920518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["file-uploader","image-uploader","pastebin","rust","sharex","url-shortener"],"created_at":"2026-02-05T10:36:04.269Z","updated_at":"2026-04-17T08:02:08.984Z","avatar_url":"https://github.com/night0721.png","language":"Rust","funding_links":["https://ko-fi.com/I2I35XISJ"],"categories":[],"sub_categories":[],"readme":"# nxc\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://ko-fi.com/I2I35XISJ\" target=\"_blank\"\u003e\u003cimg alt='Kofi' src=\"https://img.shields.io/static/v1?label=Support%20Us\u0026message=KO.FI\u0026color=ff5e5b\u0026logo=kofi\u0026logoColor=white\u0026style=for-the-badge\u0026scale=1.4\"\u003e\n    \u003c/a\u003e \u003cbr\u003e\n\u003c/p\u003e\n\nNightX Client File Uploader is a simple host for file uploader, paste bin and URL shortener, with oauth and dashboard.\n\n# Usage\n```sh\n./start\n```\n\nYou would need to fill .env.example then rename it to .env for the backend server to work, and `nginx.conf` is provided for reverse proxy.\n\n## Routes\n\n### Authentication\n\n* **GET** `/auth/github/login` — Initiates GitHub OAuth2 flow.\n* **GET** `/auth/github/callback` — Handles the redirection from GitHub and exchanges the code for a token.\n* **GET** `/auth/me` — Returns the currently authenticated user's profile.\n* **POST** `/auth/logout` — Invalidates the session and clears the cookie.\n\n### URL Shortener\n\n* **POST** `/` — Creates a new short link (by providing the `url` field).\n* **GET** `/s/:slug` — Redirects the browser to the original long URL.\n\n### Pastebin\n\n* **POST** `/` — Submits a new paste (by providing the `content` field).\n* **GET** `/i/:slug` — Displays the highlighted paste in the web viewer.\n* **GET** `/i/raw/:slug` — Returns the raw text content of the paste.\n\n### Files \u0026 Images\n\n* **POST** `/` — Uploads a single file/image via Multipart (by providing the `file` field).\n* **GET** `/i/:slug` — Displays the file/image/code in the web viewer.\n* **GET** `/i/raw/:slug` — Serves the raw file with the original mime-type.\n* **GET** `/i/bin/:slug` — Direct file/image download as attachment.\n\n### Management\n\n* **GET** `/api/urls` — Lists all short URLs owned by the current user.\n* **GET** `/api/files` — Lists all uploaded files and pastes owned by the current user.\n* **POST** `/api/:kind/delete` — Deletes a record by type (where `:kind` is `url` or `file`).\n* **POST** `/api/webhooks` — Registers a Discord webhook for upload notifications.\n\n# Building\nYou will need to run these with elevated privilages.\n```sh\n# For backend\ncd backend\ncargo install nxs\n\n# For cli\ncd cli\ncargo install nxc\n\n# For frontend\ncd frontend\nnpm i\nnpm run build\n```\n\n# Contributions\nContributions are welcomed, feel free to open a pull request.\n\n# License\nThis project is licensed under the GNU Public License v3.0. See [LICENSE](https://github.com/night0721/nxc/blob/master/LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnight0721%2Fnxc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnight0721%2Fnxc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnight0721%2Fnxc/lists"}