{"id":13802107,"url":"https://github.com/camelaissani/frontexpress","last_synced_at":"2025-04-07T17:08:28.667Z","repository":{"id":57242044,"uuid":"61982453","full_name":"camelaissani/frontexpress","owner":"camelaissani","description":"An Express.js-Style router for the front-end","archived":false,"fork":false,"pushed_at":"2017-08-04T19:28:06.000Z","size":263,"stargazers_count":259,"open_issues_count":3,"forks_count":16,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-05-14T00:34:42.895Z","etag":null,"topics":["browser","expressjs","front-end","history","javascript","middleware","navigation","router","spa","spa-application","url","url-parsing"],"latest_commit_sha":null,"homepage":"https://frontexpressjs.com","language":"JavaScript","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/camelaissani.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}},"created_at":"2016-06-26T09:34:44.000Z","updated_at":"2024-02-10T18:23:02.000Z","dependencies_parsed_at":"2022-09-04T15:13:04.471Z","dependency_job_id":null,"html_url":"https://github.com/camelaissani/frontexpress","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camelaissani%2Ffrontexpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camelaissani%2Ffrontexpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camelaissani%2Ffrontexpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camelaissani%2Ffrontexpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/camelaissani","download_url":"https://codeload.github.com/camelaissani/frontexpress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247694876,"owners_count":20980733,"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":["browser","expressjs","front-end","history","javascript","middleware","navigation","router","spa","spa-application","url","url-parsing"],"created_at":"2024-08-04T00:01:36.129Z","updated_at":"2025-04-07T17:08:28.647Z","avatar_url":"https://github.com/camelaissani.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"[![frontexpress](http://fontmeme.com/embed.php?text=frontexpress\u0026name=Atype%201%20Light.ttf\u0026size=90\u0026style_color=6F6F75)](https://frontexpressjs.com)\n\nAn Express.js-Style router for the front-end.\n\nCode the front-end like the back-end. Same language same framework.\n\n[frontexpress demo](https://github.com/camelaissani/frontexpress-demo)\n\n [![Build Status](https://travis-ci.org/camelaissani/frontexpress.svg?branch=master)](https://travis-ci.org/camelaissani/frontexpress)\n [![Code Climate](https://codeclimate.com/github/camelaissani/frontexpress/badges/gpa.svg)](https://codeclimate.com/github/camelaissani/frontexpress)\n [![Coverage Status](https://coveralls.io/repos/github/camelaissani/frontexpress/badge.svg?branch=master)](https://coveralls.io/github/camelaissani/frontexpress?branch=master)\n ![dependencies](https://img.shields.io/gemnasium/mathiasbynens/he.svg)\n ![Size Shield](https://img.shields.io/badge/size-3.55kb-brightgreen.svg)\n [![npm](https://img.shields.io/npm/dm/frontexpress.svg)](https://www.npmjs.com/package/frontexpress)\n\n```js\nimport frontexpress from 'frontexpress';\n\n// Front-end application\nconst app = frontexpress();\n\n// handles http 401\napp.use((req, res, next)  =\u003e {\n    if (res.status === 401) {\n        window.alert('You are not authenticated! Please sign in.');\n    } else {\n        next();\n    }\n});\n\napp.get('/', (req, res) =\u003e {\n    document.querySelector('.content').innerHTML = 'Hello World!';\n});\n\napp.post('/login/:user', (req, res) =\u003e {\n    document.querySelector('.content').innerHTML = `Welcome ${req.params.user}!`;\n});\n\n// start listening front-end requests (emitted/received)\napp.listen();\n```\n## Features\n\n  ✔️ You already know [ExpressJS](http://expressjs.com/) then you know FrontExpress\n\n  ✔️ Simple, minimal core extendable through plugins\n\n  ✔️ Lighweight framework\n\n  ✔️ Build your front-end application by handling routes\n\n  ✔️ Ideal for Single Page Application\n\n  ✔️ Manage ajax requests and browser history\n\n## Installation\n\n#### From npm repository\n\n```bash\n$ npm install frontexpress\n```\n\n#### From bower repository\n\n```bash\n$ bower install frontexpress\n```\n\n#### From CDN\n\nOn [jsDelivr](https://cdn.jsdelivr.net/npm/frontexpress@latest/frontexpress.min.js)\n\n## Documentation\n\n[Website and Documentation](https://frontexpressjs.com)\n\n## Tests\n\n Clone the repository:\n\n```bash\n$ git clone git@github.com:camelaissani/frontexpress.git\n$ cd frontexpress\n```\n\n Install the dependencies and run the test suite:\n\n```bash\n$ npm install\n$ npm test\n```\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamelaissani%2Ffrontexpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcamelaissani%2Ffrontexpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamelaissani%2Ffrontexpress/lists"}