{"id":16492724,"url":"https://github.com/ytkj/ag-grid-axios","last_synced_at":"2026-01-17T07:14:03.921Z","repository":{"id":34922690,"uuid":"190003099","full_name":"ytkj/ag-grid-axios","owner":"ytkj","description":"frontend utilities for AgGrid and Axios HTTP client, powered by TypeScript.","archived":false,"fork":false,"pushed_at":"2023-01-07T06:04:25.000Z","size":3306,"stargazers_count":0,"open_issues_count":15,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T00:41:37.452Z","etag":null,"topics":["aggrid","axios","typescript"],"latest_commit_sha":null,"homepage":"","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/ytkj.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}},"created_at":"2019-06-03T12:42:11.000Z","updated_at":"2020-07-23T10:03:02.000Z","dependencies_parsed_at":"2023-01-15T10:30:59.371Z","dependency_job_id":null,"html_url":"https://github.com/ytkj/ag-grid-axios","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ytkj/ag-grid-axios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytkj%2Fag-grid-axios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytkj%2Fag-grid-axios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytkj%2Fag-grid-axios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytkj%2Fag-grid-axios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ytkj","download_url":"https://codeload.github.com/ytkj/ag-grid-axios/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ytkj%2Fag-grid-axios/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28503250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aggrid","axios","typescript"],"created_at":"2024-10-11T14:07:00.510Z","updated_at":"2026-01-17T07:14:03.894Z","avatar_url":"https://github.com/ytkj.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ag-grid-axios\n\nfrontend utilities for AgGrid and Axios HTTP client, powered by TypeScript.\nthis is client-side counter part for [sqlalchemy_ag_grid](https://github.com/ytkj/sqlalchemy-ag-grid).\n\n## Installation\n\n`npm install -S @ytkj/ag-grid-axios`\n\n## Usage\n\n`DataSource` implements [datasource interface](https://www.ag-grid.com/javascript-grid-infinite-scrolling/#datasource-interface)\nof AgGrid [**Infinite Scroll Model**](https://www.ag-grid.com/javascript-grid-infinite-scrolling).\npassing `DataSource` instance to AgGrid `api.setDatasource()` setter method.\n\nhere is React example.\n\n```typescript\nimport { DataSource } from '@ytkj/ag-grid-axios';\n\n/* other import statements or something */\n\nexport class AgGridView extends React.Component\u003cAgGridViewProps\u003e {\n\n    private gridDataSource: IDatasource;\n    \n    public componentDidMount(): void {\n        this.gridDataSource = DataSource.factory(\n            '/api/grid/start/{{startRow}}/end/{{endRow}}'\n        )\n    }\n    \n    public render(): React.ReactNode {\n        return (\n            \u003cdiv\u003e\n                \u003cAgGridReact\n                    onGridReady={this.handleGridReady.bind(this)}\n                    /* other attributes */\n                /\u003e\n            \u003c/div\u003e\n        );\n    }\n    \n    private handleGridReady(param: GridReadyEvent): void {\n        param.api.setDatasource(this.gridDataSource);\n    }\n}\n```\n\nEvery time current cached rows scrolled out, AgGrid call the `DataSource` instance in appropreate timing.\nThe `DataSource` instance will build a HTTP request from start/end row index and `FilterModel`/`SortModel` and send it server.\nReceiving response from server, the `DataSource#getRow` will pass response contents to AgGrid.\n\n### React, Vue.js, Angular\n\nag-grid-axios does not depend on React, so can be used with not only React, but also Angular, Vue.js or Vanilla.\n\n## API\n\n### `DataSource.factory()`\n\nstatic factory method to instanciate `DataSource`.\n\n#### Arguments\n\n|#|type|description|\n|---|---|---|\n|1|`string`|required parameter. this will be used as url template string, and `'{{startRow}}'` and `'{{endRow}}'` will be replaced to requesting row start/end index set by AgGrid|\n|2|[`AxiosInstance`](https://github.com/axios/axios#creating-an-instance)|optional parameter. this will be used as HTTP client. default to pre-configured axios instance.|\n\n## REST API\n\nschema of HTTP request made by `DataSource` is described in [here](https://ytkj.github.io/ag-grid-axios/openapi/swagger-ui/index.html#/default/get_any_url_including__startRow__and__endRow_).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fytkj%2Fag-grid-axios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fytkj%2Fag-grid-axios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fytkj%2Fag-grid-axios/lists"}