{"id":23555525,"url":"https://github.com/dreesq/serpent-client","last_synced_at":"2025-05-15T21:11:50.863Z","repository":{"id":34068142,"uuid":"155607169","full_name":"dreesq/serpent-client","owner":"dreesq","description":"Client library for Serpent containing plugins for actions, authentication, validation and communication with the server component","archived":false,"fork":false,"pushed_at":"2024-06-18T19:57:22.000Z","size":1978,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-26T13:17:27.144Z","etag":null,"topics":["javascript","serpent"],"latest_commit_sha":null,"homepage":"https://dreesq.github.io/serpent","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/dreesq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-31T18:43:25.000Z","updated_at":"2022-04-02T15:15:09.000Z","dependencies_parsed_at":"2023-01-15T04:22:23.414Z","dependency_job_id":null,"html_url":"https://github.com/dreesq/serpent-client","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreesq%2Fserpent-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreesq%2Fserpent-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreesq%2Fserpent-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreesq%2Fserpent-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dreesq","download_url":"https://codeload.github.com/dreesq/serpent-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239301939,"owners_count":19616451,"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":["javascript","serpent"],"created_at":"2024-12-26T13:17:32.024Z","updated_at":"2025-02-17T13:45:53.997Z","avatar_url":"https://github.com/dreesq.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e \n  \u003cimg src=\"https://user-images.githubusercontent.com/7228512/68618432-f72fc380-04d1-11ea-85af-5565c37ea947.png\" width=\"190\"\u003e\n\u003c/p\u003e\n\nClient component of the Serpent ecosystem. You may read more in our [documentation](https://dreesq.github.io/serpent/#/client/introduction).\n\n# Setup\n\n```\nnpm install @dreesq/serpent-client\n```\n\n#### Separate dependencies\nThese dependencies are passed in client constructor\n```\nnpm i axios socket.io-client\n```\n\n# Usage\n\nBasic client instantiation\n\n```js\nimport Serpent from '@dreesq/serpent-client'\nimport axios from 'axios';\n\nconst client = new Serpent({\n    debug: true,\n    axios,\n    handler: 'https://localhost:3000/o',\n    actions: 'https://localhost:3000/o'\n});\n\nawait client.setup();\n\n// Assuming there's an action defined with {name: 'hello'}\nconst {data, errors} = await client.hello({\n    name: 'World'\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreesq%2Fserpent-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdreesq%2Fserpent-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreesq%2Fserpent-client/lists"}