{"id":13541359,"url":"https://github.com/mikayla-maki/nuPHP","last_synced_at":"2025-04-02T08:31:15.985Z","repository":{"id":192866629,"uuid":"687620082","full_name":"mikayla-maki/nuPHP","owner":"mikayla-maki","description":"The nu Personal HomePage webserver and example website","archived":false,"fork":false,"pushed_at":"2023-09-29T01:09:39.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-03T07:32:04.929Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikayla-maki.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}},"created_at":"2023-09-05T16:47:22.000Z","updated_at":"2023-09-07T22:39:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"c677a1e2-669f-49a5-8828-bfc30c3b5d9a","html_url":"https://github.com/mikayla-maki/nuPHP","commit_stats":null,"previous_names":["mikayla-maki/nuphp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikayla-maki%2FnuPHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikayla-maki%2FnuPHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikayla-maki%2FnuPHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikayla-maki%2FnuPHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikayla-maki","download_url":"https://codeload.github.com/mikayla-maki/nuPHP/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246782114,"owners_count":20832976,"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":[],"created_at":"2024-08-01T10:00:44.953Z","updated_at":"2025-04-02T08:31:15.402Z","avatar_url":"https://github.com/mikayla-maki.png","language":"Rust","funding_links":[],"categories":["Integrations"],"sub_categories":[],"readme":"nuPHP is a small Rust based web server for responding to HTTP requests with the Nushell language. You must have `nu` available in your path to run this webserver.\n\nUse `nu site/db/init.nu` to create the database.\n\nUse `cargo run` to start the webserver\n\nSee the `site` directory for the current example for how you could use this server to create a website.\n\nSome notes on how it all fits together:\n\n- The contents of the `site/public` directory will be available (via the web server) at `/`\n- Non-Nushell files must have a file extension (not `.nu`) and will be served as static files.\n- Nu files will be executed and the standard output will be sent as the response. Standard error will be printed to the console.\n- Requests for paths without an extension will have `.nu` added automatically.\n- All nu scripts are executed with `$env.GET`, `$env.POST` and `$env.HEADERS` available as variables.\n\nSome cool observations:\n\n- You can test the nu page scripts by running them directly with the `$env.GET` and `$env.POST` variables set, no complex mocking required!\n- Since nu is table based, you can mostly just use normal nu code to interface with the database.\n\nTODO:\n- [x] Add cookies for identifying sessions\n- [x] Optimize concurrency for session and session identifier\n- [x] Implement session and header parsing via nuphp.nu script\n- [x] Figure out a way to do file uploads\n- [ ] Add a $COOKIE input/output variable\n- [ ] file bug about highlighting for $env.REQUEST_PATH\n- [ ] File highlight bug about # with nothing following it\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikayla-maki%2FnuPHP","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikayla-maki%2FnuPHP","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikayla-maki%2FnuPHP/lists"}