crw-sdk 0.30.0 → 0.31.0

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 CHANGED
@@ -14,7 +14,7 @@ npm install crw-sdk
14
14
 
15
15
  ## Quick start — Cloud (default)
16
16
 
17
- CRW is **cloud-first**. [Sign up for 500 free credits](https://fastcrw.com/dashboard)
17
+ CRW is **cloud-first**. [Sign up for 1000 free credits](https://fastcrw.com/dashboard)
18
18
  — no payment, no monthly reset (GitHub/Google, ~10s) — then set `CRW_API_KEY`:
19
19
 
20
20
  ```ts
@@ -10,7 +10,7 @@ exports.CLOUD_API_URL = "https://api.fastcrw.com";
10
10
  exports.DASHBOARD_URL = "https://fastcrw.com/dashboard";
11
11
  exports.DOCS_URL = "https://us.github.io/crw";
12
12
  const SIGNUP_NUDGE = `No CRW API key found. CRW uses the managed cloud (${exports.CLOUD_API_URL}) by default.\n` +
13
- ` -> Sign up at ${exports.DASHBOARD_URL} for 500 free credits — no payment, no monthly ` +
13
+ ` -> Sign up at ${exports.DASHBOARD_URL} for 1000 free credits — no payment, no monthly ` +
14
14
  `reset (GitHub/Google, ~10s) — then set CRW_API_KEY (or pass apiKey).\n` +
15
15
  ` -> Prefer to self-host? Set CRW_LOCAL=1 to run the local engine. Docs: ${exports.DOCS_URL}`;
16
16
  function envTruthy(value) {
@@ -27,7 +27,7 @@ class CrwClient {
27
27
  local = null;
28
28
  /**
29
29
  * CRW is cloud-first. With no arguments the client targets the managed cloud
30
- * (api.fastcrw.com) and needs an API key — sign up for 500 free credits at
30
+ * (api.fastcrw.com) and needs an API key — sign up for 1000 free credits at
31
31
  * https://fastcrw.com/dashboard. To self-host locally, set `CRW_LOCAL=1`.
32
32
  */
33
33
  constructor(opts = {}) {
@@ -145,7 +145,7 @@ class CrwClient {
145
145
  }
146
146
  /**
147
147
  * Firecrawl-compatible Research API (cloud only). Mirrors the Firecrawl
148
- * research SDK surface over `/v2/search/research/*`. Each method GETs the
148
+ * research SDK surface over `/v1/search/research/*`. Each method GETs the
149
149
  * hosted endpoint and returns its `{ success, ... }` payload verbatim.
150
150
  */
151
151
  get research() {
@@ -161,10 +161,10 @@ class CrwClient {
161
161
  });
162
162
  };
163
163
  return {
164
- searchPapers: (query, opts = {}) => get("/v2/search/research/papers", { query, ...opts }),
165
- getPaper: (id, opts = {}) => get(`/v2/search/research/papers/${encodeURIComponent(id)}`, { ...opts }),
166
- similarPapers: (id, opts) => get(`/v2/search/research/papers/${encodeURIComponent(id)}/similar`, { ...opts }),
167
- searchGithub: (query, opts = {}) => get("/v2/search/research/github", { query, ...opts }),
164
+ searchPapers: (query, opts = {}) => get("/v1/search/research/papers", { query, ...opts }),
165
+ getPaper: (id, opts = {}) => get(`/v1/search/research/papers/${encodeURIComponent(id)}`, { ...opts }),
166
+ similarPapers: (id, opts) => get(`/v1/search/research/papers/${encodeURIComponent(id)}/similar`, { ...opts }),
167
+ searchGithub: (query, opts = {}) => get("/v1/search/research/github", { query, ...opts }),
168
168
  };
169
169
  }
170
170
  /**
@@ -9,7 +9,7 @@ export declare class CrwClient {
9
9
  private local;
10
10
  /**
11
11
  * CRW is cloud-first. With no arguments the client targets the managed cloud
12
- * (api.fastcrw.com) and needs an API key — sign up for 500 free credits at
12
+ * (api.fastcrw.com) and needs an API key — sign up for 1000 free credits at
13
13
  * https://fastcrw.com/dashboard. To self-host locally, set `CRW_LOCAL=1`.
14
14
  */
15
15
  constructor(opts?: ClientOptions);
@@ -22,7 +22,7 @@ export declare class CrwClient {
22
22
  search(query: string, opts?: SearchOptions): Promise<SearchResult>;
23
23
  /**
24
24
  * Firecrawl-compatible Research API (cloud only). Mirrors the Firecrawl
25
- * research SDK surface over `/v2/search/research/*`. Each method GETs the
25
+ * research SDK surface over `/v1/search/research/*`. Each method GETs the
26
26
  * hosted endpoint and returns its `{ success, ... }` payload verbatim.
27
27
  */
28
28
  get research(): {
@@ -7,7 +7,7 @@ export const CLOUD_API_URL = "https://api.fastcrw.com";
7
7
  export const DASHBOARD_URL = "https://fastcrw.com/dashboard";
8
8
  export const DOCS_URL = "https://us.github.io/crw";
9
9
  const SIGNUP_NUDGE = `No CRW API key found. CRW uses the managed cloud (${CLOUD_API_URL}) by default.\n` +
10
- ` -> Sign up at ${DASHBOARD_URL} for 500 free credits — no payment, no monthly ` +
10
+ ` -> Sign up at ${DASHBOARD_URL} for 1000 free credits — no payment, no monthly ` +
11
11
  `reset (GitHub/Google, ~10s) — then set CRW_API_KEY (or pass apiKey).\n` +
12
12
  ` -> Prefer to self-host? Set CRW_LOCAL=1 to run the local engine. Docs: ${DOCS_URL}`;
13
13
  function envTruthy(value) {
@@ -24,7 +24,7 @@ export class CrwClient {
24
24
  local = null;
25
25
  /**
26
26
  * CRW is cloud-first. With no arguments the client targets the managed cloud
27
- * (api.fastcrw.com) and needs an API key — sign up for 500 free credits at
27
+ * (api.fastcrw.com) and needs an API key — sign up for 1000 free credits at
28
28
  * https://fastcrw.com/dashboard. To self-host locally, set `CRW_LOCAL=1`.
29
29
  */
30
30
  constructor(opts = {}) {
@@ -142,7 +142,7 @@ export class CrwClient {
142
142
  }
143
143
  /**
144
144
  * Firecrawl-compatible Research API (cloud only). Mirrors the Firecrawl
145
- * research SDK surface over `/v2/search/research/*`. Each method GETs the
145
+ * research SDK surface over `/v1/search/research/*`. Each method GETs the
146
146
  * hosted endpoint and returns its `{ success, ... }` payload verbatim.
147
147
  */
148
148
  get research() {
@@ -158,10 +158,10 @@ export class CrwClient {
158
158
  });
159
159
  };
160
160
  return {
161
- searchPapers: (query, opts = {}) => get("/v2/search/research/papers", { query, ...opts }),
162
- getPaper: (id, opts = {}) => get(`/v2/search/research/papers/${encodeURIComponent(id)}`, { ...opts }),
163
- similarPapers: (id, opts) => get(`/v2/search/research/papers/${encodeURIComponent(id)}/similar`, { ...opts }),
164
- searchGithub: (query, opts = {}) => get("/v2/search/research/github", { query, ...opts }),
161
+ searchPapers: (query, opts = {}) => get("/v1/search/research/papers", { query, ...opts }),
162
+ getPaper: (id, opts = {}) => get(`/v1/search/research/papers/${encodeURIComponent(id)}`, { ...opts }),
163
+ similarPapers: (id, opts) => get(`/v1/search/research/papers/${encodeURIComponent(id)}/similar`, { ...opts }),
164
+ searchGithub: (query, opts = {}) => get("/v1/search/research/github", { query, ...opts }),
165
165
  };
166
166
  }
167
167
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crw-sdk",
3
- "version": "0.30.0",
3
+ "version": "0.31.0",
4
4
  "description": "TypeScript/JavaScript SDK for CRW — scrape, crawl, map, search, parse, and extract any website",
5
5
  "license": "MIT",
6
6
  "author": "fastCRW <hello@fastcrw.com>",
@@ -44,6 +44,6 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/node": "^26",
47
- "typescript": "^6"
47
+ "typescript": "^7"
48
48
  }
49
49
  }