1
1
# BrowserUse TypeScript Library
2
2
3
3
[ ![ fern shield] ( https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen )] ( https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fbrowser-use%2Fbrowser-use-node )
4
- [ ![ npm shield] ( https://img.shields.io/npm/v/ )] ( https://www.npmjs.com/package/ )
4
+ [ ![ npm shield] ( https://img.shields.io/npm/v/browser-use-sdk )] ( https://www.npmjs.com/package/browser-use-sdk )
5
5
6
6
The BrowserUse TypeScript library provides convenient access to the BrowserUse APIs from TypeScript.
7
7
@@ -403,7 +403,7 @@ On the other hand, contributions to the README are always very welcome!
403
403
## Installation
404
404
405
405
``` sh
406
- npm i -s
406
+ npm i -s browser-use-sdk
407
407
```
408
408
409
409
## Reference
@@ -415,7 +415,7 @@ A full reference for this library is available [here](https://github.com/browser
415
415
Instantiate and use the client with the following:
416
416
417
417
``` typescript
418
- import { BrowserUseClient } from " " ;
418
+ import { BrowserUseClient } from " browser-use-sdk " ;
419
419
420
420
const client = new BrowserUseClient ({ apiKey: " YOUR_API_KEY" });
421
421
await client .tasks .createTask ({
@@ -429,7 +429,7 @@ The SDK exports all request and response types as TypeScript interfaces. Simply
429
429
following namespace:
430
430
431
431
``` typescript
432
- import { BrowserUse } from " BrowserUse " ;
432
+ import { BrowserUse } from " browser-use-sdk " ;
433
433
434
434
const request: BrowserUse .ListTasksTasksGetRequest = {
435
435
...
@@ -442,7 +442,7 @@ When the API returns a non-success status code (4xx or 5xx response), a subclass
442
442
will be thrown.
443
443
444
444
``` typescript
445
- import { BrowserUseError } from " BrowserUse " ;
445
+ import { BrowserUseError } from " browser-use-sdk " ;
446
446
447
447
try {
448
448
await client .tasks .createTask (... );
@@ -553,7 +553,7 @@ The SDK provides a way for you to customize the underlying HTTP client / Fetch f
553
553
unsupported environment, this provides a way for you to break glass and ensure the SDK works.
554
554
555
555
``` typescript
556
- import { BrowserUseClient } from " BrowserUse " ;
556
+ import { BrowserUseClient } from " browser-use-sdk " ;
557
557
558
558
const client = new BrowserUseClient ({
559
559
...
0 commit comments