{"id":15366323,"url":"https://github.com/petrbroz/forge-deno-sdk","last_synced_at":"2025-03-27T21:22:17.892Z","repository":{"id":62421913,"uuid":"336284253","full_name":"petrbroz/forge-deno-sdk","owner":"petrbroz","description":"Experimental Autodesk Forge SDK for Deno (v1.7.0).","archived":false,"fork":false,"pushed_at":"2021-02-05T15:06:26.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-02T03:51:57.385Z","etag":null,"topics":["autodesk-forge","deno"],"latest_commit_sha":null,"homepage":"https://doc.deno.land/https/deno.land/x/forge/mod.ts","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/petrbroz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-05T13:47:22.000Z","updated_at":"2021-02-06T03:14:06.000Z","dependencies_parsed_at":"2022-11-01T17:32:03.483Z","dependency_job_id":null,"html_url":"https://github.com/petrbroz/forge-deno-sdk","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petrbroz%2Fforge-deno-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petrbroz%2Fforge-deno-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petrbroz%2Fforge-deno-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petrbroz%2Fforge-deno-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petrbroz","download_url":"https://codeload.github.com/petrbroz/forge-deno-sdk/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245924739,"owners_count":20694774,"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":["autodesk-forge","deno"],"created_at":"2024-10-01T13:18:31.450Z","updated_at":"2025-03-27T21:22:17.853Z","avatar_url":"https://github.com/petrbroz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# forge-deno-sdk\n\n![.github/workflows/deno.yml](https://github.com/petrbroz/forge-deno-sdk/workflows/.github/workflows/deno.yml/badge.svg?branch=master)\n\nExperimental [Autodesk Forge](https://forge.autodesk.com) SDK for [Deno](https://deno.land) (v1.7.0).\n\nAvailable on https://deno.land:\n- Code: https://deno.land/x/forge@v0.1.0/mod.ts\n- Docs: https://doc.deno.land/https/deno.land/x/forge/mod.ts\n\n## Prerequisites\n\n- [Deno runtime (v1.7.0)](https://deno.land/manual/getting_started/installation)\n- [Autodesk Forge app](https://forge.autodesk.com/en/docs/oauth/v2/tutorials/create-app)\n\n## Usage\n\n- Import any classes you need from the _mod.ts_ file of a specific version of this module, for example:\n\n```typescript\n// app.ts\n\nimport { AuthenticationClient } from \"https://deno.land/x/forge@v0.1.0/mod.ts\";\n\nconst FORGE_CLIENT_ID = Deno.env.get(\"FORGE_CLIENT_ID\");\nconst FORGE_CLIENT_SECRET = Deno.env.get(\"FORGE_CLIENT_SECRET\");\nif (!FORGE_CLIENT_ID || !FORGE_CLIENT_SECRET) {\n  console.error(\"Missing environment variables\");\n  Deno.exit(1);\n}\n\nasync function run() {\n  const client = new AuthenticationClient(FORGE_CLIENT_ID, FORGE_CLIENT_SECRET);\n  const token = await client.authenticate([\"data:read\"], false);\n  console.log(token);\n}\n\nrun();\n```\n\n- Set the following environment variables:\n    - `FORGE_CLIENT_ID` - your Forge application's client ID\n    - `FORGE_CLIENT_SECRET` - your Forge application's client secret\n- Run your app from the terminal, for example:\n\n```bash\ndeno app.ts\n```\n\n## Test\n\n- Set the following environment variables:\n    - `FORGE_CLIENT_ID` - your Forge application's client ID\n    - `FORGE_CLIENT_SECRET` - your Forge application's client secret\n- Run the following command in the terminal:\n\n```bash\ndeno test\n```\n\n## Format code\n\n```bash\ndeno fmt **/*.ts\n```\n\n## Resources\n\n- [Deno Website](https://deno.land)\n- [Deno Style Guide](https://deno.land/std/style_guide.md)\n- [Deno Gitter](https://gitter.im/denolife/Lobby)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetrbroz%2Fforge-deno-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetrbroz%2Fforge-deno-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetrbroz%2Fforge-deno-sdk/lists"}