{"id":18684743,"url":"https://github.com/craigsdennis/taste","last_synced_at":"2025-10-18T02:04:16.722Z","repository":{"id":84491677,"uuid":"100913021","full_name":"craigsdennis/taste","owner":"craigsdennis","description":"Get a taste of a code base","archived":false,"fork":false,"pushed_at":"2017-08-24T07:27:57.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T00:20:17.057Z","etag":null,"topics":["aggregator","ast","javascript","parser"],"latest_commit_sha":null,"homepage":null,"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/craigsdennis.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-21T04:40:45.000Z","updated_at":"2017-09-06T20:15:52.000Z","dependencies_parsed_at":"2023-03-02T20:30:22.368Z","dependency_job_id":null,"html_url":"https://github.com/craigsdennis/taste","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/craigsdennis%2Ftaste","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigsdennis%2Ftaste/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigsdennis%2Ftaste/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigsdennis%2Ftaste/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/craigsdennis","download_url":"https://codeload.github.com/craigsdennis/taste/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239539628,"owners_count":19655846,"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":["aggregator","ast","javascript","parser"],"created_at":"2024-11-07T10:19:14.486Z","updated_at":"2025-10-18T02:04:16.715Z","avatar_url":"https://github.com/craigsdennis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Taste\nRun this over your codebase and produce a overview to share with others.\n\nThis is very, very rough at the moment.  t**AST**e, get it?\n\n## Flavor Profiles\nThe idea is that you can run different flavor profiles to help define specific technology.\n\n### counts\nGathers counts of matches\n\nHere is a snippet from [the flavor profile for es6](flavor_profiles/javascript/es6.json)\n\n```json\n{\n    \"name\": \"es6 usage\",\n    \"counts\": [\n        {\n            \"name\": \"forEach\",\n            \"query\": \"call[callee=member[prop=#forEach]]\"\n        },\n```\n\nAnd JSON will produced from running over a codebase using that profile.  Counts will gather and count occurrences of matching nodes across files.\n\n```json\n{\n  \"es6 usage\": {\n    \"counts\": {\n      \"forEach\": 4,\n```\n\n#### values\nPulls values from AST and produces a unique list of sorted values\n\nHere is a snippet from [the flavor profile for imports](flavor_profiles/javascript/imports.json)\n\n```json\n{\n    \"name\": \"Imported\",\n    \"values\": [\n        {\n            \"name\": \"external requires\",\n            \"query\": \"call[callee=#require] str[value~=/^[^.]/]\"\n        },\n```\n\nAnd the results all require statements in the codebase that are external (do not start with a .)\n\n```json\n\"Imported\": {\n    \"values\": {\n      \"external requires\": [\n        \"assert\",\n        \"events\",\n        \"fs\",\n        \"fs.realpath\",\n        \"inflight\",\n        \"inherits\",\n        \"minimatch\",\n        \"once\",\n        \"path\",\n        \"path-is-absolute\",\n        \"util\"\n      ],\n```\n\n## TODO\n- [x] Support globs\n- [ ] Add better ignoring\n- [ ] Support multiple languages by pluggable Tasters for querying AST.\n- [x] Allow profiles to specify taster, but fallback to the default.\n\n## Contributing\nNot quite yet...but if you are interested, give me a ping.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraigsdennis%2Ftaste","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcraigsdennis%2Ftaste","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraigsdennis%2Ftaste/lists"}