{"id":19830401,"url":"https://github.com/graphql-java/graphql-anonymizer","last_synced_at":"2025-05-01T15:30:24.258Z","repository":{"id":84726570,"uuid":"338981873","full_name":"graphql-java/graphql-anonymizer","owner":"graphql-java","description":"Anonymize GraphQL schemas and queries.","archived":false,"fork":false,"pushed_at":"2021-08-01T04:10:34.000Z","size":93,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-28T08:27:49.900Z","etag":null,"topics":["graalvm-native-image","graphql","java","npm"],"latest_commit_sha":null,"homepage":"","language":"Java","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/graphql-java.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}},"created_at":"2021-02-15T06:01:31.000Z","updated_at":"2024-07-17T15:09:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"0b40ea4b-2944-4529-915b-7b57729df0ea","html_url":"https://github.com/graphql-java/graphql-anonymizer","commit_stats":{"total_commits":33,"total_committers":2,"mean_commits":16.5,"dds":"0.030303030303030276","last_synced_commit":"ae8207df09ec2d6a33ec9f9a5ee476dd7add8c4c"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-java%2Fgraphql-anonymizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-java%2Fgraphql-anonymizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-java%2Fgraphql-anonymizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-java%2Fgraphql-anonymizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphql-java","download_url":"https://codeload.github.com/graphql-java/graphql-anonymizer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251898494,"owners_count":21661837,"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":["graalvm-native-image","graphql","java","npm"],"created_at":"2024-11-12T11:23:26.418Z","updated_at":"2025-05-01T15:30:23.989Z","avatar_url":"https://github.com/graphql-java.png","language":"Java","readme":"# Anonymize GraphQL schemas and queries\n\nGraphQL anonymizer is CLI tool to anonymize schemas and queries by replacing all names with generic values\nlike `field22`.\n\nFor example this schema and query:\n\n```graphql\ntype Query{\n   mySecret(arg: String): MySecret \n}\ntype MySecret {\n    id: ID\n    dontExposeThat: String\n}\n\nquery MySecretOp{mySecret(arg: \"myValue\") { id dontExposeThat } }\n```\n\nwill be anonymized into:\n\n```graphql\nschema {\n  query: Object1\n}\n\ntype Object1 {\n  field1(argument1: String): Object2\n}\n\ntype Object2 {\n  field2: ID\n  field3: String\n}\n\nquery {field1(argument1:\"stringValue1\") {field2 field3}}\n\n```\n\n## Installation and usage\n\nThe easiest way to install it is via `npm`:\n\n```sh\nnpm i -g graphql-anonymizer\n```\n\nTo anonymize a schema and query from a file:\n\n```sh\ngraphql-anonymizer -s schema-file -q query-file \n```\n\nThe `-q` option is optional, you can also just anonymize a schema:\n\n```sh\ngraphql-anonymizer -s schema-file \n```\n\nAlternatively the schema file can be read from stdin:\n\n```sh\ngraphql-anonymizer \u003c schema-file\n```\n\nThe full list of options is available via `--help`:\n\n```sh\ngraphql-anonymizer --help\n```\n\n## Bugs or feedback\n\nPlease open an Issue to raise a bug or other feedback.\n\n## Implementation details\n\nGraphQL Anonymizer is a thin wrapper around a\n[class inside GraphQL Java](https://github.com/graphql-java/graphql-java/blob/master/src/main/java/graphql/util/Anonymizer.java)\n. It is compiled via [GraalVM](graalvm.org) to a native binary and distributed via NPM.\n\nThe cross-platform compiling, releasing and testing is done fully automatically via GitHub Actions. Have a look\nat [release.yml](./.github/workflows/release.yml) and [npm](/npm) if you want to know all the details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphql-java%2Fgraphql-anonymizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphql-java%2Fgraphql-anonymizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphql-java%2Fgraphql-anonymizer/lists"}