{"id":18817352,"url":"https://github.com/blueberryapps/haystack","last_synced_at":"2025-04-13T23:03:26.791Z","repository":{"id":19869034,"uuid":"78852063","full_name":"blueberryapps/haystack","owner":"blueberryapps","description":"Core developer stack for JavaScript applications with server side rendering, code splitting, webpack 3","archived":false,"fork":false,"pushed_at":"2023-01-24T17:54:33.000Z","size":13483,"stargazers_count":16,"open_issues_count":7,"forks_count":1,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-03-27T13:12:57.993Z","etag":null,"topics":["blueberry-opensource","bolierplate","express","react","react-native","redux","router","server-side-rendering"],"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/blueberryapps.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":"2017-01-13T13:35:13.000Z","updated_at":"2024-02-05T13:12:22.000Z","dependencies_parsed_at":"2023-02-14T00:01:41.970Z","dependency_job_id":null,"html_url":"https://github.com/blueberryapps/haystack","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/blueberryapps%2Fhaystack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blueberryapps%2Fhaystack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blueberryapps%2Fhaystack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blueberryapps%2Fhaystack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blueberryapps","download_url":"https://codeload.github.com/blueberryapps/haystack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248794565,"owners_count":21162614,"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":["blueberry-opensource","bolierplate","express","react","react-native","redux","router","server-side-rendering"],"created_at":"2024-11-08T00:11:01.114Z","updated_at":"2025-04-13T23:03:26.755Z","avatar_url":"https://github.com/blueberryapps.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Haystack](https://github.com/blueberryapps/haystack/blob/master/docs/haystack_logo.png?raw=true)\n# Haystack [![CircleCI](https://circleci.com/gh/blueberryapps/haystack/tree/master.svg?style=svg\u0026circle-token=e5efa5dbeb9c1f6c9f3bab2a2e7602d625055e31)](https://circleci.com/gh/blueberryapps/haystack/tree/master) [![Dependency Status](https://dependencyci.com/github/blueberryapps/haystack/badge)](https://dependencyci.com/github/blueberryapps/haystack)\n\n\u003e Blueberry JS Stack\n\n## Create brand new app by:\n```\nbash \u003c(curl https://raw.githubusercontent.com/blueberryapps/haystack/master/create-haystack-app) NEW_PROJECT_NAME\n```\n\n## Scripts\n\n- install dependencies: `yarn`\n- start app: `yarn start`\n- build app: `yarn build`\n- test app: `yarn test`\n\n## Development\n\n```\nyarn start\nopen https://localhost:8000\n```\n\n## Production Build\n- production build: `yarn production:build`\n- production server: `yarn production:server`\n- production build and server: `yarn run production`\n\n## Polyfills\n\nWe are using polyfills from www.polyfill.io and to add new polyfill go to\n`src/server/frontend/Html.react.js` and update this line\n`\u003cScript src=\"https://cdn.polyfill.io/v2/polyfill.min.js?features=Symbol\" /\u003e`.\n\n## Configuration\n\nYou can set ENV variables from `.bash_profile`, `export NODE_ENV=production`, running them inline `NODE_ENV=production yarn start` or use `.env` file in project root.\n\n| env | values | default | meaning |\n|-----|--------|---------|---------|\n| NODE_ENV | development, production | development  | development - hot reload, production - compiled \u0026 minified code |\n| APP_ENV | development, staging, production | development | env for APP where it runs |\n| PORT | number | 8000 | which port to use to run server side express App |\n| HTML_ERRORS | true | enabled by default in production | Show nicely formatted html errors for 404 and 500 |\n| ROLLBAR_CLIENT_TOKEN | string | default project in rollbar | token for browser error reporting |\n| ROLLBAR_SERVER_TOKEN | string | default project in rollbar | token for server error reporting |\n| GTM_ID | string | null | add this to enable Google Tag Manager |\n| DEBUG_BUNDLE | boolean | false | show webpack BundleAnalyzer |\n| ENABLE_SEARCH_BOTS | boolean | false | for production enable this so your page will be indexed by search bots |\n| FEATURES | string | '' | add comma separated values with names of features |\n| | | | |\n\n## Variants\n\n* [with basic redux](https://github.com/blueberryapps/haystack/tree/redux)\n* [with basic router](https://github.com/blueberryapps/haystack/tree/router)\n* [with redux + router](https://github.com/blueberryapps/haystack/tree/redux-router)\n\n## Future toggles\n\nWhen you need to use feature toggles you can use them like this:\n\n```javascript\nimport isFeatureOn from '../common/featureToggl';\n\nisFeatureOn('nameOfFeature'); // returns true/false based on FEATURES enabled\n```\n\nNaming of features `snakeCase`.\n\nHow to enable feature:\n\n`FEATURES=featureA,featureB yarn start`\n\nOr add feature to cookie named `FEATURES` with value: `featureA,featureB`\n\n**! Be aware that enabling FEATURES by Cookie will not work with server side rendering and it is not a bug !**\n\n## Made with love by\n[![](https://camo.githubusercontent.com/d88ee6842f3ff2be96d11488aa0d878793aa67cd/68747470733a2f2f7777772e676f6f676c652e636f6d2f612f626c75656265727279617070732e636f6d2f696d616765732f6c6f676f2e676966)](https://www.blueberry.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblueberryapps%2Fhaystack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblueberryapps%2Fhaystack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblueberryapps%2Fhaystack/lists"}