{"id":16997319,"url":"https://github.com/stylesuxx/generator-es6-graphql","last_synced_at":"2026-03-06T14:02:44.646Z","repository":{"id":44881791,"uuid":"44756269","full_name":"stylesuxx/generator-es6-graphql","owner":"stylesuxx","description":"Yeoman generator for an ES2015 enabled GraphQL Server","archived":false,"fork":false,"pushed_at":"2016-12-25T06:23:08.000Z","size":95,"stargazers_count":20,"open_issues_count":2,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-08T14:45:54.801Z","etag":null,"topics":[],"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/stylesuxx.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-10-22T15:53:21.000Z","updated_at":"2023-05-21T18:56:33.000Z","dependencies_parsed_at":"2022-09-10T05:40:31.283Z","dependency_job_id":null,"html_url":"https://github.com/stylesuxx/generator-es6-graphql","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/stylesuxx/generator-es6-graphql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylesuxx%2Fgenerator-es6-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylesuxx%2Fgenerator-es6-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylesuxx%2Fgenerator-es6-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylesuxx%2Fgenerator-es6-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stylesuxx","download_url":"https://codeload.github.com/stylesuxx/generator-es6-graphql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylesuxx%2Fgenerator-es6-graphql/sbom","scorecard":{"id":856584,"data":{"date":"2025-08-11","repo":{"name":"github.com/stylesuxx/generator-es6-graphql","commit":"ef0d2a5413b833d667925710eb814b67e120d264"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-24T00:00:40.378Z","repository_id":44881791,"created_at":"2025-08-24T00:00:40.378Z","updated_at":"2025-08-24T00:00:40.378Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281341164,"owners_count":26484537,"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-10-27T02:00:05.855Z","response_time":61,"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":[],"created_at":"2024-10-14T03:54:33.089Z","updated_at":"2025-10-27T21:05:10.236Z","avatar_url":"https://github.com/stylesuxx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# generator-es6-graphql\n[![npm version](https://badge.fury.io/js/generator-es6-graphql.svg)](https://badge.fury.io/js/generator-es6-graphql) [![Build Status](https://secure.travis-ci.org/stylesuxx/generator-es6-graphql.png?branch=master)](https://travis-ci.org/stylesuxx/generator-es6-graphql) [![Dependency Status](https://david-dm.org/stylesuxx/generator-es6-graphql.svg)](https://david-dm.org/stylesuxx/generator-es6-graphql)\n\n\u003e This [yeoman](http://yeoman.io/) generator enables you to quickly create an [ES6 (ES2105)](http://es6-features.org/) [graphql](https://facebook.github.io/graphql/) enabled server with a lot of optional additions.\n\n## Goal\nThe goal of this yeoman generator is to enable you to quickly set up an ES6 (ES2105) enabled GraphQL server without dependencies you do not need.\n\nThis means that the choice of for example *database* and *testing framework* is up to you, although some choices are available during setup to make your life easier:\n* *mongoose* as database\n* *passport* for authentication\n* *local authentication* with basic user model skeleton\n* *persistent sessions* if mongoose and authentication are enabled\n\n## Installation\nInstall yo and the generator globally by running:\n\n    sudo npm install -g yo generator-es6-graphql\n\nCreate a directory for your new project and run the generator:\n\n    mkdir yourProject\n    cd yourProject\n    yo es6-graphql\n\nTo start your newly generated GraphQL server on port **1234** run:\n\n    npm start\n\n## First steps\nIf you chose to enable *GraphiQL* you can now browse to your [GraphQL endpoint](http://localhost:1234/graphql) and play around with the *Documentation Explorer* or invoke your own queries:\n\n```\n{\n  getItem(id: 1){\n    id,\n    name\n  }\n}\n```\n\n### Authentication\nIf you chose to enable authentication and selected at least one OAuth strategy, do not forget to add your API credentials for the chosen services to *src/passportConfig.js*.\n\n#### Local Authentication\nIf you chose to enable a database and local authentication, you will get a basic *User* model and routes for authentication.\n\n##### User model\nThe *User* model is very basic and only has the following fields:\n* \\_id\n* username\n* password\n\nThe Model also provides functionality to check if passwords match and to store passwords encrypted via *bcrypt*.\n\n##### /login (POST)\nParameters:\n* username\n* password\n\nReturns:\n* *200* if user could be logged\n* *400* if parameters are missing\n* *401* if credentials do not match\n\n##### /logout (GET)\nLogs out a user and destroys his session.\n\n#### Usage\nOpen *GraphiQL* and run:\n```\n{\n  users {_id, username, mail},\n  self {_id, username, mail}\n}\n```\n\nYou will see that *users* is an empty array and *self is null*, this is because there are no users signed up yet and you are not logged in.\n\nSign up a user via mutation:\n```\nmutation {\n  signup(username: \"username\", password: \"password\") {\n    _id,\n    username\n  }\n}\n```\n\nNow login via the route mentioned above and query the *user* and *self* again. The users array still has one user, but now self should contain information about the currently logged in user.\n\nIn a similar way you can now set your E-Mail address:\n```\nmutation {\n  updateEmail(mail: \"you@domain.com\") {\n    _id,\n    username,\n    mail\n  }\n}\n```\n\nIf you open the logout route mentioned above and run the commands again, self is null again.\n\n## Development\nThis generator is *work in progress*, feel free to submit issues if you have a problem or PR's if you want to contribute.\n\nTests are in place and may be run by invoking:\n\n    npm run test\n\n### Versioning\nThe version of the npm package reflects the current master branch. If you want to check out bleeding edge functionality check out the dev branch.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstylesuxx%2Fgenerator-es6-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstylesuxx%2Fgenerator-es6-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstylesuxx%2Fgenerator-es6-graphql/lists"}