{"id":15713991,"url":"https://github.com/hashnuke/prick","last_synced_at":"2025-03-30T19:24:56.298Z","repository":{"id":66983738,"uuid":"918958","full_name":"HashNuke/Prick","owner":"HashNuke","description":"Prick.js lightweight web framework for node,js. Apologies for the bad name. I named it without knowing the other meaning of `Prick`","archived":false,"fork":false,"pushed_at":"2010-09-18T16:08:01.000Z","size":444,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T21:58:41.569Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://github.com/HashNuke/prick","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HashNuke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-09-17T17:28:51.000Z","updated_at":"2014-06-17T18:42:58.000Z","dependencies_parsed_at":"2023-02-20T15:45:20.313Z","dependency_job_id":null,"html_url":"https://github.com/HashNuke/Prick","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HashNuke%2FPrick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HashNuke%2FPrick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HashNuke%2FPrick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HashNuke%2FPrick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HashNuke","download_url":"https://codeload.github.com/HashNuke/Prick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246367188,"owners_count":20765838,"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-10-03T21:34:27.007Z","updated_at":"2025-03-30T19:24:56.273Z","avatar_url":"https://github.com/HashNuke.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Prick.js\n=========\n\n### A simple web framework for Node.js\n\nThere's example.js for you to checkout and the there code is documented.\n\n*   import prick\n\n        var prick = require('prick');\n\n*   create a new prick\n\n        var app = new prick(); // skipping the new keyword is ok too\n\n*   Start pricking urls\n\n        app.forPath(\"/xyz\", function(request, response){\n            response.writeHead(200, {\"Content-Type\":\"text/html\"})\n            response.write(\"\u003ch1\u003ehello world\u003c/h1\u003e\");\n            response.end();\n        });\n\n*   Incase of a regex url pass a regex object and a match is passed to your callback\n\n        app.forPath(\"/xyz\", function(request, response, match){\n            response.writeHead(200, {\"Content-Type\":\"text/html\"})\n            response.write(\"the match is \"+ match);\n            response.end();\n        });\n\n\n404s are handled based on unfinished responses, so if you leave a request unended... i'll threaten you with a 404 :)\n\nRight now there's no default headers. So this damn thing sounds lengthy. I'll fix this soon.\n\n## TODO\n\n* helpers to set headers and status code\n* Static file handlers\n* WebSocket support (via Faye)\n* Session and cookie support\n* Dependency management\n\nUntil then take a look at example.js for some goodness :)\n\n### Happy message\n\nI'm happy coz I can say...\n\u003e \"dude, I wrote a web framework\".\n\nOk seriously, I wrote this because I wanted to learn how frameworks worked and I needed a nice little framework to handle static files too (easily). Haven't reached that milestone, but soon will.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashnuke%2Fprick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhashnuke%2Fprick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashnuke%2Fprick/lists"}