{"id":20174268,"url":"https://github.com/syroegkin/nxtp-js","last_synced_at":"2026-02-13T21:19:54.726Z","repository":{"id":164795165,"uuid":"633103074","full_name":"syroegkin/nxtp-js","owner":"syroegkin","description":"The JavaScript implementation of the nxtp (time server for zx-spectrum next)","archived":false,"fork":false,"pushed_at":"2024-10-30T22:36:41.000Z","size":360,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-07T13:37:55.621Z","etag":null,"topics":["javascript","nxtp","speccy","spectrum-next","timeserver","zx-spectrum","zx-spectrum-next"],"latest_commit_sha":null,"homepage":"","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/syroegkin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-04-26T19:36:23.000Z","updated_at":"2024-10-30T22:36:45.000Z","dependencies_parsed_at":"2025-07-07T13:33:41.593Z","dependency_job_id":"711bc02e-b280-4c87-8e12-687ebc2dba1c","html_url":"https://github.com/syroegkin/nxtp-js","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/syroegkin/nxtp-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syroegkin%2Fnxtp-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syroegkin%2Fnxtp-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syroegkin%2Fnxtp-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syroegkin%2Fnxtp-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syroegkin","download_url":"https://codeload.github.com/syroegkin/nxtp-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syroegkin%2Fnxtp-js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268348591,"owners_count":24236297,"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-02T02:00:12.353Z","response_time":74,"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":["javascript","nxtp","speccy","spectrum-next","timeserver","zx-spectrum","zx-spectrum-next"],"created_at":"2024-11-14T01:42:07.692Z","updated_at":"2025-10-06T16:03:48.146Z","avatar_url":"https://github.com/syroegkin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nxtp-js\n\nnxtp-js is a JavaScript implementation of the nxtp library, developed for the ZX Spectrum Next computer. It provides a convenient method for configuring the local time on vintage computers that possess both a Real Time Clock (RTC) and a network interface.\n\nThis library is inspired by the original [nxtp](https://github.com/Threetwosevensixseven/nxtp) project for the ZX Spectrum Next.\n\n\n\n## Installation\n\nTo use this project, you need to have Node.js version 18 or higher installed. As an alternative you can use nvm.\n\n\n```shell\ngit clone https://github.com/syroegkin/nxtp-js.git\nnvm use # if you use nvm\nnpm install\nnpm run build\nnpm start\n```\n\nBy default, the library listens on port 12300. However, you can configure a different port by setting the environment variable **PORT**:\n\n```shell\nPORT=12500 npm start\n```\n\nAlternatively you can use provided docker-compose file:\n```shell\ndocker-compose up -d\n```\n\nThere is an available pre-built Docker image that you can utilize:\n```shell\ndocker pull ghcr.io/syroegkin/nxtp-js:latest\n```\n\nDocker-compose uses this pre-built image by default, but if you wish, you can build it by yourself:\n* Open docker-compose.yml.\n* Comment out the image: line.\n* Uncomment the build: line.\n\n\nThe public time server is available at \n* http://time.zx.in.net:12300\n* http://time1.zx.in.net:12300\n\nOn your ZX Spectrum Nextr, you have the option to configure fallback servers. In the event that one server is unavailable, the system will automatically attempt to switch to a backup server.\n\nYour `autoexec.bas` file may look like this:\n\n```basic\n   5 REM First server\n  10 ON ERROR GO TO 50\n  20 .nxtp time.zx.in.net 12300 -z=W.EuropeStandardTime\n  30 ON ERROR\n  40 GO TO 140\n  45 REM Second server\n  50 ON ERROR GO TO 90\n  55 PAUSE 100\n  60 .nxtp time.nxtel.org 12300 -z=W.EuropeStandardTime\n  70 ON ERROR\n  80 GO TO 140\n  85 REM Third server\n  90 ON ERROR GO TO 130\n  95 PAUSE 100\n 100 .nxtp time1.zx.in.net 12300 -z=W.EuropeStandardTime\n 110 ON ERROR\n 120 GO TO 140\n 130 PRINT: PRINT \"Can not fetch time\"\n 140 REM the rest of the code goes here...\n9997 GO TO 9999\n9998 SAVE \"c:/nextzxos/autoexec.bas\" LINE 0\n9999 ERASE\n\n```\n\nZX Spectrum Next is a trademark of SpecNext Ltd.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyroegkin%2Fnxtp-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyroegkin%2Fnxtp-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyroegkin%2Fnxtp-js/lists"}