{"id":22186034,"url":"https://github.com/twhiston/max-api-or-nah","last_synced_at":"2026-01-29T03:41:05.031Z","repository":{"id":264201528,"uuid":"864300356","full_name":"twhiston/max-api-or-nah","owner":"twhiston","description":"Yes, how can I help you? to check if the max-api is available.","archived":false,"fork":false,"pushed_at":"2025-07-10T15:19:54.000Z","size":101,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-10T21:53:51.691Z","etag":null,"topics":["cycling74","javascript","max","msp"],"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/twhiston.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":"2024-09-27T22:16:12.000Z","updated_at":"2025-07-10T15:19:58.000Z","dependencies_parsed_at":"2024-11-22T16:21:02.083Z","dependency_job_id":"8f148788-87e9-4f44-9e5f-63913ba3e19c","html_url":"https://github.com/twhiston/max-api-or-nah","commit_stats":null,"previous_names":["twhiston/max-api-or-nah"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/twhiston/max-api-or-nah","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twhiston%2Fmax-api-or-nah","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twhiston%2Fmax-api-or-nah/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twhiston%2Fmax-api-or-nah/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twhiston%2Fmax-api-or-nah/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twhiston","download_url":"https://codeload.github.com/twhiston/max-api-or-nah/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twhiston%2Fmax-api-or-nah/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264710212,"owners_count":23652225,"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":["cycling74","javascript","max","msp"],"created_at":"2024-12-02T10:19:48.822Z","updated_at":"2026-01-29T03:41:00.010Z","avatar_url":"https://github.com/twhiston.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Max-api-or-nah\n\nTakes a very overengineered approach to generating a max-api class outside of\nthe max environment. Inspired by the excellent (but now slightly out of date)\n[max-api-or-not](https://github.com/dimitriaatos/max-api-or-not).\n\nFor those of us doing a lot of max coding with Typescript we can assume the\nTypescript definitions to be the source of truth for the API. Therefore this\nparses the current Typescript definition for the max-api from the\nDefinitelyTyped library (@types/max-api) and turns it into a wrapper so that we\ncan still use code that includes the max-api in tests etc... It does this by\ntraversing the AST tree of the d.ts file containing the type definition and then\ntemplating the output.\n\nAdditionally since inside max the `process.env.MAX_ENV` value will be set to a\nmember of the `MAX_ENV` enum when running something in the [node.script] object\nthis module sets this value to the additional value of `nah` when in use outside\nof Max.\n\n## Usage\n\nJust npm install the module and it will generate the `index.js` when installing.\n\nUsing it manually you should clone the repo `npm install` to get all the dev\ndependenciens and then `npm run build` to output `index.js`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwhiston%2Fmax-api-or-nah","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwhiston%2Fmax-api-or-nah","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwhiston%2Fmax-api-or-nah/lists"}