{"id":23505106,"url":"https://github.com/arkemishub/clientjs","last_synced_at":"2025-04-15T23:50:45.128Z","repository":{"id":166039370,"uuid":"639808918","full_name":"arkemishub/clientjs","owner":"arkemishub","description":"JS client for interacting with Arke backends","archived":false,"fork":false,"pushed_at":"2024-10-22T10:32:21.000Z","size":1270,"stargazers_count":7,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T02:51:32.376Z","etag":null,"topics":["arke","client","javascript"],"latest_commit_sha":null,"homepage":"https://client.arkehub.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arkemishub.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-12T09:19:40.000Z","updated_at":"2024-10-22T10:31:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"2170dc60-42ea-43c5-a5ef-f37b55ab03ab","html_url":"https://github.com/arkemishub/clientjs","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkemishub%2Fclientjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkemishub%2Fclientjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkemishub%2Fclientjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkemishub%2Fclientjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arkemishub","download_url":"https://codeload.github.com/arkemishub/clientjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173061,"owners_count":21224481,"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":["arke","client","javascript"],"created_at":"2024-12-25T09:19:10.515Z","updated_at":"2025-04-15T23:50:45.111Z","avatar_url":"https://github.com/arkemishub.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @arkejs/client\n\n![Client](https://github.com/arkemishub/clientjs/assets/81776297/cf43c6aa-e219-48e3-9c7c-eb4e1ff56225)\n\n[![License](https://img.shields.io/badge/license-Apache2.0-blue.svg)](https://github.com/arkemishub/arke-monorepo/blob/master/LICENSE.txt)\n\nAn isomorphic JavaScript client for Arke backend connection\n\n## Usage\n\nFirst of all, you need to install the library:\n\n```shell\nnpm install @arkejs/client\npnpm install @arkejs/client\n```\n\nThen you're able to import the library and establish the connection with the database:\n\n```tsx\nimport Client from '@arkejs/client'\n\n// Create a single arke js for interacting with your server\nconst client = new Client({ \n    serverUrl: 'http://localhost:4000',\n    project: 'PROJECT_NAME',\n})\n\nclient.arke.get('my_arke').then(\n  res =\u003e console.log(res.data),\n  err =\u003e console.error(err.response.data)\n)\n```\n\nWhen you initialize the client you can define custom methods to get the Auth session:\n\n```tsx\nconst client = new Client({\n    serverUrl: 'http://localhost:4000',\n    project: 'PROJECT_NAME',\n    getSession: async () =\u003e {\n      const session = await AsyncStorage.getItem('@session');\n      return session;\n    },\n    setSession: async session =\u003e {\n      await AsyncStorage.setItem('@session', JSON.stringify(session.content));\n    },\n  });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farkemishub%2Fclientjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farkemishub%2Fclientjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farkemishub%2Fclientjs/lists"}