{"id":16759628,"url":"https://github.com/shubhexists/prism","last_synced_at":"2025-08-04T11:38:01.759Z","repository":{"id":221872596,"uuid":"755568775","full_name":"shubhexists/prism","owner":"shubhexists","description":"Prism is a replica of ExpressJS written from scratch for learning purpose.","archived":false,"fork":false,"pushed_at":"2024-02-13T18:31:05.000Z","size":25,"stargazers_count":10,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T17:34:40.983Z","etag":null,"topics":["express","expressjs","nodejs","server","webserver"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shubhexists.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}},"created_at":"2024-02-10T16:00:59.000Z","updated_at":"2025-03-25T14:47:48.000Z","dependencies_parsed_at":"2024-02-13T19:53:34.226Z","dependency_job_id":null,"html_url":"https://github.com/shubhexists/prism","commit_stats":null,"previous_names":["shubhexists/prism"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shubhexists/prism","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhexists%2Fprism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhexists%2Fprism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhexists%2Fprism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhexists%2Fprism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shubhexists","download_url":"https://codeload.github.com/shubhexists/prism/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhexists%2Fprism/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268689818,"owners_count":24291079,"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-04T02:00:09.867Z","response_time":79,"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":["express","expressjs","nodejs","server","webserver"],"created_at":"2024-10-13T04:08:38.885Z","updated_at":"2025-08-04T11:38:01.702Z","avatar_url":"https://github.com/shubhexists.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prism \nA minimalist web framework, aimed to replicate ExpressJS.\n\n\u003e [!IMPORTANT]\n\u003e Prism might be in active development and **currently does not support enough features to match ExpressJS**. Also,\n\u003e it was written more for educational purposes rather than an actual replacement.\n\n## Installation \nPrism is still not published as a package on the npm registry. ( I would do it after is becomes stable (usable).)\nSo, for now, if you want ot use Prism, you need to build it from source by cloning the source code.\n\n## Usage\n\nUsage is exactly similar to ExpressJs. ( Some parameters are different because Prism is written in Typescript instead\nof Javascript ).\n\n```js\n// Import Dependencies\nimport cors from \"cors\";\n\n// Initialize Prism\nconst app = prism();\n\n// use() for middlewares\napp.use(cors());\n\n// GET method\napp.get({\n  path: \"/about/:id\",\n  callbackFunction: (req, res) =\u003e {\n    console.log(\"jrjr\");\n    console.log((req as any).params.id);\n    res.send(\"I am the about page\");\n  },\n});\n\n// POST method\napp.post({\n  path: \"/about\",\n  callbackFunction: (req, res) =\u003e {\n    res.send(\"I am the about page\");\n  },\n});\n\n// Starting the HTTP Server\napp.listen({\n  port: 3000,\n  callback: () =\u003e {\n    console.log(\"Server is running on port 3000\");\n  },\n});\n```\n\n## TODO \n- [ ] - Adding function for handling files ( Currently only `GET`, `POST`, `PUT` and `DELETE` methods are supported)\n- [ ] - Add other methods that might be relevant ( `PATCH` and `OPTIONS` etc etc )\n- [ ] - And security requirements that might be required \n\nThere are a lot of things that might be done/ improved . These are only a couple of things that I could think of.\n\n\n## Thanks\nIf you read till here, thanks for showing interest in the project :)    \nDrop of a ✨ if you liked it !\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubhexists%2Fprism","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshubhexists%2Fprism","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubhexists%2Fprism/lists"}