{"id":20565729,"url":"https://github.com/phenax/oxynode","last_synced_at":"2026-04-21T07:33:06.784Z","repository":{"id":57317327,"uuid":"52374777","full_name":"phenax/oxynode","owner":"phenax","description":"OxyNode is a nodeJS microframework for developing web applications with ease","archived":false,"fork":false,"pushed_at":"2018-04-28T14:25:05.000Z","size":6,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T18:02:02.091Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/phenax.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":"2016-02-23T16:44:05.000Z","updated_at":"2021-11-11T16:26:24.000Z","dependencies_parsed_at":"2022-08-25T21:11:49.162Z","dependency_job_id":null,"html_url":"https://github.com/phenax/oxynode","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/phenax%2Foxynode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenax%2Foxynode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenax%2Foxynode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenax%2Foxynode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phenax","download_url":"https://codeload.github.com/phenax/oxynode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242179251,"owners_count":20084940,"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-11-16T04:38:51.370Z","updated_at":"2026-04-21T07:33:01.757Z","avatar_url":"https://github.com/phenax.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OxyNode\nOxyNode is a simple node framework for developing web applications with ease\n\n# How to install?\n* Install [nodeJS](https://nodejs.org/en/)\n* Run `npm install --save oxynode`\n\n\n# How to use?\n```javascript\nconst OxyNode= require('oxynode');\n\n\n// Initialize\nconst oxy= OxyNode();\n\n\n// Configuration\noxy.config.$set('port', 3000);\n\n\n// Route methods\nvar MainPage= (req,res)=\u003e {\n\tres.render(\"./index.html\", { name: \"Akshay\" });\n};\n\nvar AboutPage= (req,res)=\u003e {\n\tres.send(\"About Me\");\n};\n\n\n// Route config\noxy.routes([\n\t{ url: '/', callback: MainPage },\n\t{ url: '/about', callback: AboutPage, method: 'POST' }\n]);\n\n\n// 404 error handler\noxy.errorHandling('404',(req,res)=\u003e {\n\tres.send(\"Not found\");\n});\n\n\n// Listen\noxy.listen({ port: oxy.config.$get('port') });\n```\n\n## Event Handling\n```javascript\nvar events= oxy.pubsub();\n\nevents.on('message msg', ()=\u003e {\n  console.log(\"Hello World\");\n});\n\nevents.emit('message');\n\nevents.off('message');\n```\n\n## Templating engine\n```javascript\nconst ejs= require('ejs');\noxy.config.$set('templating', ejs);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphenax%2Foxynode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphenax%2Foxynode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphenax%2Foxynode/lists"}