@rohitaryal/whisk-api 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/package.json +5 -2
- package/bun.lock +0 -25
package/README.md
CHANGED
|
@@ -20,15 +20,15 @@ An unofficial TypeScript/JavaScript API wrapper for Google Labs' Whisk image gen
|
|
|
20
20
|
## Installation
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
|
-
bun i whisk-api
|
|
23
|
+
bun i @rohitaryal/whisk-api
|
|
24
24
|
# or
|
|
25
|
-
npm i whisk-api
|
|
25
|
+
npm i @rohitaryal/whisk-api
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
## Quick Start
|
|
29
29
|
|
|
30
30
|
```typescript
|
|
31
|
-
import Whisk from 'whisk-api';
|
|
31
|
+
import Whisk from '@rohitaryal/whisk-api';
|
|
32
32
|
|
|
33
33
|
const whisk = new Whisk({
|
|
34
34
|
cookie: "your_google_labs_cookie_here"
|
|
@@ -118,11 +118,12 @@ if (result.Err) {
|
|
|
118
118
|
# Install dependencies
|
|
119
119
|
bun install
|
|
120
120
|
|
|
121
|
+
# Set up environment
|
|
122
|
+
export COOKIE="your_cookie_here"
|
|
123
|
+
|
|
121
124
|
# Run tests
|
|
122
125
|
bun test
|
|
123
126
|
|
|
124
|
-
# Set up environment
|
|
125
|
-
export COOKIE="your_cookie_here"
|
|
126
127
|
```
|
|
127
128
|
|
|
128
129
|
## Testing
|
|
@@ -135,8 +136,7 @@ bun test
|
|
|
135
136
|
|
|
136
137
|
## Limitations
|
|
137
138
|
|
|
138
|
-
- Requires valid Google
|
|
139
|
-
- Rate limiting applies based on Google's policies
|
|
139
|
+
- Requires valid Google's logged in cookies.
|
|
140
140
|
- Regional availability may vary
|
|
141
141
|
- Unofficial API subject to changes
|
|
142
142
|
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"main": "src/index.ts",
|
|
16
16
|
"description": "[](https://github.com/rohitaryal/whisk-api/actions/workflows/test.yaml) [](https://github.com/rohitaryal/whisk-api/blob/main/LICENSE) [](https://www.typescriptlang.org/) [](https://nodejs.org/) [](https://nodejs.org/)",
|
|
17
|
-
"version": "1.0.
|
|
17
|
+
"version": "1.0.2",
|
|
18
18
|
"directories": {
|
|
19
19
|
"example": "examples",
|
|
20
20
|
"test": "tests"
|
|
@@ -29,7 +29,10 @@
|
|
|
29
29
|
"url": "git+https://github.com/rohitaryal/whisk-api.git"
|
|
30
30
|
},
|
|
31
31
|
"keywords": [
|
|
32
|
-
"whisk"
|
|
32
|
+
"whisk",
|
|
33
|
+
"whisk-api",
|
|
34
|
+
"ai-image-generator",
|
|
35
|
+
"labs-google"
|
|
33
36
|
],
|
|
34
37
|
"author": "rohitaryal",
|
|
35
38
|
"license": "MIT",
|
package/bun.lock
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lockfileVersion": 1,
|
|
3
|
-
"workspaces": {
|
|
4
|
-
"": {
|
|
5
|
-
"name": "whisk-api",
|
|
6
|
-
"devDependencies": {
|
|
7
|
-
"@types/bun": "latest",
|
|
8
|
-
},
|
|
9
|
-
"peerDependencies": {
|
|
10
|
-
"typescript": "^5",
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
"packages": {
|
|
15
|
-
"@types/bun": ["@types/bun@1.2.14", "", { "dependencies": { "bun-types": "1.2.14" } }, "sha512-VsFZKs8oKHzI7zwvECiAJ5oSorWndIWEVhfbYqZd4HI/45kzW7PN2Rr5biAzvGvRuNmYLSANY+H59ubHq8xw7Q=="],
|
|
16
|
-
|
|
17
|
-
"@types/node": ["@types/node@22.15.21", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-EV/37Td6c+MgKAbkcLG6vqZ2zEYHD7bvSrzqqs2RIhbA6w3x+Dqz8MZM3sP6kGTeLrdoOgKZe+Xja7tUB2DNkQ=="],
|
|
18
|
-
|
|
19
|
-
"bun-types": ["bun-types@1.2.14", "", { "dependencies": { "@types/node": "*" } }, "sha512-Kuh4Ub28ucMRWeiUUWMHsT9Wcbr4H3kLIO72RZZElSDxSu7vpetRvxIUDUaW6QtaIeixIpm7OXtNnZPf82EzwA=="],
|
|
20
|
-
|
|
21
|
-
"typescript": ["typescript@5.8.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ=="],
|
|
22
|
-
|
|
23
|
-
"undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],
|
|
24
|
-
}
|
|
25
|
-
}
|