{"id":25538758,"url":"https://github.com/zebulonj/exygen","last_synced_at":"2026-04-11T02:07:07.925Z","repository":{"id":143879129,"uuid":"89644285","full_name":"zebulonj/exygen","owner":"zebulonj","description":"Not so much a framework, closer to boilerplate... but maintained and bundled with useful connectors. An out-of-box (and slightly opinionated) foundation for building \"universal\" React/Redux applications.","archived":false,"fork":false,"pushed_at":"2017-07-25T17:29:15.000Z","size":27,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-29T20:45:28.657Z","etag":null,"topics":["react","redux","universal-javascript"],"latest_commit_sha":null,"homepage":"","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/zebulonj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2017-04-27T22:08:57.000Z","updated_at":"2018-10-19T19:38:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"0887d738-e497-4f5a-b672-70dda02836e9","html_url":"https://github.com/zebulonj/exygen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zebulonj/exygen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebulonj%2Fexygen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebulonj%2Fexygen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebulonj%2Fexygen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebulonj%2Fexygen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zebulonj","download_url":"https://codeload.github.com/zebulonj/exygen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebulonj%2Fexygen/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265678639,"owners_count":23810115,"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":["react","redux","universal-javascript"],"created_at":"2025-02-20T05:24:01.798Z","updated_at":"2026-04-11T02:07:07.880Z","avatar_url":"https://github.com/zebulonj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Exygen\nNot so much a framework, closer to boilerplate... but maintained and bundled with useful connectors. An out-of-box (and slightly opinionated) foundation for building \"universal\" React/Redux applications.\n\n## Install\n\n```shell\nnpm install --save exygen\n```\n\n## Quickstart\nThe guiding principal behind Exygen is to reduce boilerplate (and boilerplate maintenance), without getting in the way of your use of the core libraries it bundles (`react`, `redux`, `react-router`,...). At its most basic, Exygen cares about just two things: your routes and your root reducer.\n\n**routes.js**\n```js\nimport { Dashboard } from './pages';\n\nexport const routes = [\n  {\n    path: '/',\n    exact: true,\n    component: Dashboard\n  }\n];\n\nexport default routes;\n\n```\n\n**reducer.js**\n```js\nimport { combineReducers } from 'redux';\n\nimport { todos } from './modules/todos/reducer';\n\nexport default combineReducers({\n  todos\n});\n\n```\n\nPass those into the entry points for client and server, and... voila!\n\n**server.js**\n```js\nimport path from 'path';\nimport server from 'exygen/server';\n\nimport routes from './routes';\nimport reducer from './reducer';\n\nserver({\n  routes,\n  reducer,\n  assets: path.resolve( __dirname, './public' )\n});\n```\n\n**client.js**\n```js\nimport client from 'exygen/client';\n\nimport routes from './routes';\nimport reducer from './reducer';\n\nclient({\n  routes,\n  reducer\n});\n\n```\n\n_This is an **incomplete setup**, but it gives you a good sense of the flavor of Exygen._\n\n## Features\n\n### Hot Module Replacement\n\nThe `Exygen` connectors provide `webpack` and `React` hot-module-replacement out-of-box, in the development environment.\n\n### Route Actions\n\n\"Route Actions\" are actions that are dispatched to the Redux store when a route matches. Their most important use is pre-fetching data based on routes, for server-side rendering. They are managed by the `Exygen` connectors, and fire on both server and client.\n\n**routes.js**\n```js\nimport { Dashboard, TodoList } from './pages';\nimport { fetchList } from './actions';\n\nexport const routes = [\n  {\n    path: '/',\n    exact: true,\n    component: Dashboard\n  },\n  {\n    path: '/list/:listId',\n    component: TodoList,\n    fetch: ({ params }) =\u003e fetchList( params.listId )\n  }\n];\n\nexport default routes;\n\n```\n\n**actions.js**\n```js\nexport const fetchList = ( listId ) =\u003e {\n  return dispatch =\u003e {\n    dispatch({ type: 'LIST_REQUESTED', listId });\n\n    return fetch( `/api/lists/${ listId }` )\n      .then(\n        res =\u003e dispatch({ type: 'LIST_RECEIVED', list: res }),\n        err =\u003e dispatch({ type: 'LIST_ERROR' })\n      );\n  }\n}\n```\n\n### Boilerplate\n\nThis project isn't simply boilerplate, but it does offer a quick starting point for your project.\n\n```shell\nnpm install -g exygen\nexygen init\n```\n\n`Exygen` will install a minimal project template (directory structure and essential files) into the current working directory.\n\n## API Documentation\n\n### Server\n\n`server( options )`\n\n* **initialState**. A state initializer—object or function.\n  * If a function, receives the `express` request object.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzebulonj%2Fexygen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzebulonj%2Fexygen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzebulonj%2Fexygen/lists"}