{"id":24655292,"url":"https://github.com/night0721/nxc-host","last_synced_at":"2025-08-10T10:15:10.224Z","repository":{"id":159511223,"uuid":"628546245","full_name":"night0721/nxc-host","owner":"night0721","description":"ShareX server using Next.js API, to shorten URLs, upload image, paste codes, with a simple and easy to use UI","archived":false,"fork":false,"pushed_at":"2023-11-03T13:42:13.000Z","size":1259,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T02:16:48.470Z","etag":null,"topics":["file-uploader","image-uploader","nextjs","pastebin","sharex","url-shortener"],"latest_commit_sha":null,"homepage":"https://host.night0721.xyz","language":"TypeScript","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}},"created_at":"2023-04-16T09:38:52.000Z","updated_at":"2024-10-13T11:33:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"f738af04-01aa-458a-9661-76d67848be98","html_url":"https://github.com/night0721/nxc-host","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/night0721/nxc-host","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night0721%2Fnxc-host","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night0721%2Fnxc-host/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night0721%2Fnxc-host/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night0721%2Fnxc-host/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/night0721","download_url":"https://codeload.github.com/night0721/nxc-host/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night0721%2Fnxc-host/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269708532,"owners_count":24462598,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"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","nextjs","pastebin","sharex","url-shortener"],"created_at":"2025-01-25T22:36:49.112Z","updated_at":"2025-08-10T10:15:10.203Z","avatar_url":"https://github.com/night0721.png","language":"TypeScript","funding_links":["https://ko-fi.com/I2I35XISJ"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e NXC Host \u003c/h1\u003e \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\nNXC is a simple host for URL shortener, paste bin and image uploader. It's written in NextJS with typescript and uses MongoDB as database.\n\nIf you like the repository, please consider giving it a star⭐!\n\n# Deployment\n\nYou can either watch the [video](https://youtu.be/VhNGKyPGF2g) or follow the steps below.\n\nFirst of all, you need to install [NodeJS](https://nodejs.org/en/) and [MongoDB](https://www.youtube.com/watch?v=aygw0wjW5bA) in your server.\n\nThen, clone the repository and install the dependencies:\n\n```cmd\ngit clone https://github.com/night0721/nxc-host\ncd nxc-host\nnpm install\n```\n\nAfter that, you need to change the `.env.example` file to `.env` and fill the variables.\n\nIn the `.env` file, you should put NEXT_PUBLIC_HOST(eg. http://localhost:3000 or https://google.com) as your domain name and MONGO as your MongoDB connection string.\n\nFinally, you can run the server with:\n\n```cmd\nnpm run build\nnpm run start\n```\n\nIf you have any question, please join my [Discord Server](https://discord.gg/SbQHChmGcp) and ask in the support channel.\n\n## Routes\n\n```md\n/s -\u003e URL Shortener\n/s/:id -\u003e Redirecting to Long URL\n/p -\u003e Paste Bin\n/p/:id -\u003e Paste by specific ID\n/raw/:id -\u003e Raw Paste by specific ID\n/i -\u003e Image Uploader\n/i/:id -\u003e Image by specific ID\n/i/raw/:id -\u003e Raw Image by specific ID\n/api/:type/delete -\u003e Delete model by type\nPOST /api/image -\u003e Send new image to server\nPOST /api/paste -\u003e Send new paste to server\nPOST /api/url -\u003e Send new URL to server\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnight0721%2Fnxc-host","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnight0721%2Fnxc-host","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnight0721%2Fnxc-host/lists"}