{"id":15756098,"url":"https://github.com/simenandre/scrivejs","last_synced_at":"2026-03-01T19:02:00.142Z","repository":{"id":42521906,"uuid":"455720925","full_name":"simenandre/scrivejs","owner":"simenandre","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-16T21:32:12.000Z","size":260,"stargazers_count":0,"open_issues_count":12,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-17T04:09:09.309Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/simenandre.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-02-04T22:59:08.000Z","updated_at":"2022-02-05T02:20:01.000Z","dependencies_parsed_at":"2024-05-08T22:42:06.943Z","dependency_job_id":"dfd81ea8-8e00-4304-83bd-e27686e4b3e6","html_url":"https://github.com/simenandre/scrivejs","commit_stats":null,"previous_names":["cobraz/scrivejs"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/simenandre/scrivejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenandre%2Fscrivejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenandre%2Fscrivejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenandre%2Fscrivejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenandre%2Fscrivejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simenandre","download_url":"https://codeload.github.com/simenandre/scrivejs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenandre%2Fscrivejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29980794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-10-04T08:41:47.417Z","updated_at":"2026-03-01T19:02:00.100Z","avatar_url":"https://github.com/simenandre.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scrive Typescript SDK\n\n[![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)\n[![NPM version](https://img.shields.io/npm/v/scrive-sdk.svg)](https://www.npmjs.com/package/scrive-sdk)\n[![codecov](https://codecov.io/gh/cobraz/scrivejs/branch/main/graph/badge.svg)](https://codecov.io/gh/cobraz/scrivejs)\n![npm bundle size](https://img.shields.io/bundlephobia/min/scrive-sdk)\n\nUse this to integrate with the [Scrive API][scrive-docs].\n\n**Note**: Don't expect full coverage for the API, as there is no code generating\ninvolved; we add features as we go. Contributions are very welcome!\n\n[scrive-docs]: https://apidocs.scrive.com/\n\n## Features\n\n- ✅ Great test coverage\n- 💁‍♂️ Inline documentation\n- 🔒 Runtime type-checking\n\n## Documentation\n\nTo get started, install the NPM package.\n\n```shell\nyarn add scrive-sdk\n```\n\nLet's look at an example where we are creating a new document based on a\ntemplate.\n\n**Tip**: In the Scrive UI, you'll find the ID as the numeric value in the URL.\nLet's say the URL to the document is `https://scrive.com/d/9222321123123`, then\nthe ID is `9222321123123\n\n```typescript\nimport { ScriveSdk } from 'scrive-sdk';\n\nconst client = ScriveSdk.usePersonalAccessCredentials({\n  apitoken: 'something',\n  accesstoken: 'is-something',\n  apisecret: 'when-there-nothing',\n  accesssecret: 'here',\n});\n\nclient.prepare().newDocumentFromTemplate('9222321123123');\n```\n\nThe SDK provides a way to construct the SDK class based on which way you are\ngoing to authenticate with the API. For now, we only support _personal access\ncredentails_ as shown above, but I imagine this will look very similar once\nOAuth is added too.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimenandre%2Fscrivejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimenandre%2Fscrivejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimenandre%2Fscrivejs/lists"}