{"id":18412822,"url":"https://github.com/rproenza86/rrp-services-prpl","last_synced_at":"2025-07-08T19:04:45.619Z","repository":{"id":96673331,"uuid":"111327602","full_name":"rproenza86/rrp-services-prpl","owner":"rproenza86","description":"Express web server to provide different versions of your application to different browsers according with the their capabilities improving the webapp performance.","archived":false,"fork":false,"pushed_at":"2017-11-27T10:33:14.000Z","size":158,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T18:26:57.747Z","etag":null,"topics":["ceo","express-js","nodejs","polymer","prpl-pattern","ssr"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/rproenza86.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":"2017-11-19T20:00:53.000Z","updated_at":"2018-11-24T19:07:19.000Z","dependencies_parsed_at":"2023-04-27T20:01:55.756Z","dependency_job_id":null,"html_url":"https://github.com/rproenza86/rrp-services-prpl","commit_stats":{"total_commits":41,"total_committers":3,"mean_commits":"13.666666666666666","dds":0.2682926829268293,"last_synced_commit":"b2e44b5f38b40d9332bbbfd082cd854ccfd64f66"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rproenza86%2Frrp-services-prpl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rproenza86%2Frrp-services-prpl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rproenza86%2Frrp-services-prpl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rproenza86%2Frrp-services-prpl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rproenza86","download_url":"https://codeload.github.com/rproenza86/rrp-services-prpl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247644571,"owners_count":20972316,"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":["ceo","express-js","nodejs","polymer","prpl-pattern","ssr"],"created_at":"2024-11-06T03:43:40.937Z","updated_at":"2025-04-07T11:32:15.266Z","avatar_url":"https://github.com/rproenza86.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @rproenza/rrp-services-prpl\n\n\u003e Serve different versions of your prpl app application to different browsers by detecting browser capabilities using the user-agent header.\n\n\u003e Special focus in Progressive Web Apps and Polymer Web Apps.\n\n\u003e Serve [PRPL](https://developers.google.com/web/fundamentals/performance/prpl-pattern/) apps in production.\n\n# ExpressJS + TypeScript Node Server\n\n[![Build Status](https://travis-ci.org/rproenza86/rrp-services-prpl.svg?branch=feature%2Fnpm-deploy)](https://travis-ci.org/rproenza86/rrp-services-prpl)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/a7f6c9d884f04182a0d620ba6881bdb2)](https://www.codacy.com/app/raul.r.proenza/rrp-services-prpl?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=rproenza86/rrp-services-prpl\u0026amp;utm_campaign=Badge_Grade)\n[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/a7f6c9d884f04182a0d620ba6881bdb2)](https://www.codacy.com/app/raul.r.proenza/rrp-services-prpl?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=rproenza86/rrp-services-prpl\u0026utm_campaign=Badge_Coverage)\n[![Dependency Status](https://www.versioneye.com/user/projects/5a14ca6e0fb24f2a6d408d11/badge.svg?style=flat-square)](https://www.versioneye.com/user/projects/5a14ca6e0fb24f2a6d408d11)\n[![Greenkeeper badge](https://badges.greenkeeper.io/rproenza86/rrp-services-prpl.svg)](https://greenkeeper.io/)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![npm (scoped)](https://img.shields.io/npm/v/@rproenza/rrp-services-prpl.svg)](https://www.npmjs.com/package/@rproenza/rrp-services-prpl)\n[![npm](https://img.shields.io/npm/dt/@rproenza/rrp-services-prpl.svg)](https://www.npmjs.com/package/@rproenza/rrp-services-prpl)\n[![license](https://img.shields.io/github/license/rproenza86/rrp-services-prpl.svg)](https://github.com/rproenza86/rrp-services-prpl/blob/master/LICENSE)\n\n## Usage as a library\n\n```js\nconst server = require('@rproenza/rrp-services-prpl')\n\nconst port = 8787;\nconst builsPath = \"./src/public/\";\nconst buildsConfig = [\n        {name: \"es6-unbundled\", browserCapabilities: [\"es2015\", \"push\"]},\n        {name: \"es6-bundled\"},\n    ];\n\nserver.startServer(port, builsPath, buildsConfig);\n\n// output : App is running at http://localhost:8787 in development mode\n```\n## Usage as a server\n\n### Getting started\n- Clone the repository\n```\ngit clone --depth=1 https://github.com/rproenza86/rrp-services-prpl.git \u003cproject_name\u003e\n```\n- Install dependencies \n```\ncd \u003cproject_name\u003e\nnpm install\n```\n- Copy your builds directory to `src/public/`\n```\ncp -R /build/source src/public/ \n```\n- Update the directory names and others options in the `builds` array param of the function `prpl.makeHandler`:\n```\nserver.ts file\n```\n```\nline 89\n```\n- Build and run the project\n```\nnpm start\n```\nNavigate to `http://localhost:3000`\n\n## Environment variables\n - For the user session you can setup the environment variable `SESSION_SECRET`\n\n## Project Structure\nCheck the `README_EXPANDED.md` file .\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frproenza86%2Frrp-services-prpl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frproenza86%2Frrp-services-prpl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frproenza86%2Frrp-services-prpl/lists"}