{"id":30368487,"url":"https://github.com/jstarpl/lamus","last_synced_at":"2025-08-20T01:34:26.976Z","repository":{"id":302685200,"uuid":"1011103766","full_name":"jstarpl/lamus","owner":"jstarpl","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-11T21:58:50.000Z","size":46050,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-11T22:22:24.458Z","etag":null,"topics":["basic","basic-programming-language","pwa-app","retrocomputing","toy-project"],"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/jstarpl.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}},"created_at":"2025-06-30T09:59:36.000Z","updated_at":"2025-07-11T21:58:53.000Z","dependencies_parsed_at":"2025-07-03T18:36:47.092Z","dependency_job_id":null,"html_url":"https://github.com/jstarpl/lamus","commit_stats":null,"previous_names":["jstarpl/lamus"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jstarpl/lamus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstarpl%2Flamus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstarpl%2Flamus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstarpl%2Flamus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstarpl%2Flamus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jstarpl","download_url":"https://codeload.github.com/jstarpl/lamus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstarpl%2Flamus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271252555,"owners_count":24726913,"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-19T02:00:09.176Z","response_time":63,"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":["basic","basic-programming-language","pwa-app","retrocomputing","toy-project"],"created_at":"2025-08-20T01:34:26.232Z","updated_at":"2025-08-20T01:34:26.967Z","avatar_url":"https://github.com/jstarpl.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"```\n __         ______     __    __     __  __     ______    \n/\\ \\       /\\  __ \\   /\\ \"-./  \\   /\\ \\/\\ \\   /\\  ___\\   \n\\ \\ \\____  \\ \\  __ \\  \\ \\ \\-./\\ \\  \\ \\ \\_\\ \\  \\ \\___  \\  \n \\ \\_____\\  \\ \\_\\ \\_\\  \\ \\_\\ \\ \\_\\  \\ \\_____\\  \\/\\_____\\ \n  \\/_____/   \\/_/\\/_/   \\/_/  \\/_/   \\/_____/   \\/_____/ \n                                                         \n```\n\nInstalling\n===\n\nMake sure you have NodeJS version 18 or later and `corepack` enabled.\n\nInstall all dependencies using:\n\n```\nyarn\n```\n\nAnd later get the Vercel CLI to get the backend running:\n\n```\nnpm i -g vercel@latest\n```\n\nThen to build the QBasic Virtual Machine, run:\n\n```\nyarn build\n```\n\n\nRunning\n===\n\nRun a development server using\n\n```\nvercel dev\n```\n\n\nGenerating JWK encryption keys and secrets\n===\n\nIn order for the API to be implemented using lambda functions, the authorization implementation uses JWT tokens. These are produced when a user logs in, and then their signature is verified without having to query the user information data store. Because of that, a unique set of signing and encryption keys is required for every deployment. These are then decoded when the lambda function runs to verify the signature on the JWT.\n\nUse the `scripts/key-manager.mjs` to generate a KEY \u0026 IV pair using `generate-secret` command. Then you can generate a key pair for signing and encrypting the JWT tokens using `generate-pair`. You will need to generate two pairs, which will be encoded as a single, base64-encoded string. The resulting string needs to be put in the `keys.enc.json` file as `enc` and `sig` properties respectively. The KEY and IV secrets should be provided as environment variables `ENCRYPTION_KEY` and `ENCRYPTION_IV` for decryption by the lambda functions placed in the `/api` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjstarpl%2Flamus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjstarpl%2Flamus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjstarpl%2Flamus/lists"}