{"id":22080044,"url":"https://github.com/superfaceai/ast-js","last_synced_at":"2025-07-24T14:31:49.866Z","repository":{"id":42427748,"uuid":"272429768","full_name":"superfaceai/ast-js","owner":"superfaceai","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-19T11:02:08.000Z","size":792,"stargazers_count":6,"open_issues_count":4,"forks_count":1,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-06-30T04:04:41.191Z","etag":null,"topics":["api","ast","integration","javascript","rest","rest-api","typescript"],"latest_commit_sha":null,"homepage":"https://superface.ai","language":"TypeScript","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/superfaceai.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-15T12:14:36.000Z","updated_at":"2022-12-27T00:06:11.000Z","dependencies_parsed_at":"2024-06-19T00:18:51.189Z","dependency_job_id":"aab26607-3ec6-4b69-ae0a-c9abfa7dc05e","html_url":"https://github.com/superfaceai/ast-js","commit_stats":{"total_commits":252,"total_committers":16,"mean_commits":15.75,"dds":0.8611111111111112,"last_synced_commit":"12eb5b25f43842ef92a74cdec27e6dc93945a56e"},"previous_names":[],"tags_count":68,"template":false,"template_full_name":null,"purl":"pkg:github/superfaceai/ast-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superfaceai%2Fast-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superfaceai%2Fast-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superfaceai%2Fast-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superfaceai%2Fast-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superfaceai","download_url":"https://codeload.github.com/superfaceai/ast-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superfaceai%2Fast-js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266855781,"owners_count":23995550,"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-07-24T02:00:09.469Z","response_time":99,"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":["api","ast","integration","javascript","rest","rest-api","typescript"],"created_at":"2024-11-30T23:12:02.136Z","updated_at":"2025-07-24T14:31:49.498Z","avatar_url":"https://github.com/superfaceai.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ast-js\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/superfaceai/ast-js/main.yml)](https://github.com/superfaceai/ast-js/actions/workflows/main.yml)\n![NPM](https://img.shields.io/npm/v/@superfaceai/ast)\n[![NPM](https://img.shields.io/npm/l/@superfaceai/ast)](LICENSE)\n![TypeScript](https://img.shields.io/badge/%3C%2F%3E-Typescript-blue)\n\n\u003cimg src=\"https://github.com/superfaceai/ast-js/blob/main/docs/LogoGreen.png\" alt=\"superface logo\" width=\"150\" height=\"150\"\u003e\n\nSuperface AST definitions for Javascript/Typescript. The types in this repository define the common language that the Superface parser produces and the Superface SDK interprets.\n\n## Table of Contents\n\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Security](#security)\n- [Support](#support)\n- [Development](#development)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\n Superface (super-interface) is a higher-order API, an abstraction on top of the modern APIs like GraphQL and REST. Superface is one interface to discover, connect, and query any capabilities available via conventional APIs. \n\n Through its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy. \n\n Superface allows for switching capability providers without development at a runtime in milliseconds. Furthermore, Superface decentralizes the composition and aggregation, and thus creates an Autonomous Integration Mesh.\n\n Motivation behind Superface is nicely described in this [video](https://www.youtube.com/watch?v=BCvq3NXFb94) from APIdays conference.\n\n You can get more information at https://superface.ai and https://superface.ai/docs.\nSuperface AST definitions for Javascript/Typescript. The types in this repository define the common language that the Superface parser produces and the Superface SDK interprets.\n\n## Install\n\nInstall the ast into one of your projects:\n\n```shell\nyarn add @superfaceai/ast\n```\n\n## Usage\n\n```ts\nimport { ProfileDocumentNode } from '@superfaceai/ast';\nconst { Source, parseProfile } = require('@superfaceai/parser');\n\nconst content = `\nname = \"test\"\nversion = \"0.1.0\"\n\nusecase Test {}\n`;\nconst source = new Source(content);\nconst result: ProfileDocumentNode = parseProfile(source);\n```\n\n## Security\n\nSuperface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.\n\nYou can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).\n\n## Support\n\nIf you need any additional support, have any questions or you just want to talk you can do that through our [documentation page](https://docs.superface.ai). \n\n## Development\n\nWhen developing, start with cloning the repository using `git clone https://github.com/superfaceai/ast-js.git` (or `git clone git@github.com:superfaceai/ast-js.git` if you have repository access).\n\nAfter cloning, the dependencies must be downloaded using `yarn install` or `npm install`.\n\nNow the repository is ready for code changes.\n\nThe `package.json` also contains scripts (runnable by calling `yarn \u003cscript-name\u003e` or `npm run \u003cscript-name\u003e`):\n- `test` - run all tests\n- `lint` - lint the code (use `lint:fix` to run autofix)\n- `format` - check the code formatting (use `format:fix` to autoformat)\n- `prepush` - run `test`, `lint` and `format` checks. This should run without errors before you push anything to git.\n\nLastly, to build a local artifact run `yarn build` or `npm run build`.\n\n## Maintainers\n\n- [@Lukáš Valenta](https://github.com/lukas-valenta)\n- [@Edward](https://github.com/TheEdward162)\n\n## Contributing\n\n**Please open an issue first if you want to make larger changes**\n\nFeel free to contribute! Please follow the [Contribution Guide](CONTRIBUTION_GUIDE.md).\n\n## Licensing\n\nLicenses of node_modules are checked during CI/CD for every commit. Only the following licenses are allowed:\n\n- 0BDS\n- MIT\n- Apache-2.0\n- ISC\n- BSD-3-Clause\n- BSD-2-Clause\n- CC-BY-4.0\n- CC-BY-3.0;BSD\n- CC0-1.0\n- Unlicense\n\nNote: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\nThe Superface AST is licensed under the [MIT](LICENSE).\n© 2021 Superface\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperfaceai%2Fast-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperfaceai%2Fast-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperfaceai%2Fast-js/lists"}