A CLI tool to crawl documentation sites and create a search index for Upstash Search.
TypeScript
18
39 commits
updated Sep 3, 2025
A CLI tool and library to crawl documentation sites and create a search index for Upstash Search.
You can run the CLI directly using npx (no installation required):
npx @upstash/search-crawler
Or with command-line options:
npx @upstash/search-crawler \
--upstash-url "UPSTASH_SEARCH_REST_URL" \
--upstash-token "UPSTASH_SEARCH_REST_TOKEN" \
--index-name "my-index" \
--doc-url "https://example.com/docs"
You will be prompted for any missing options:
The tool will:
You can also use this as a library in your own code:
import { crawlAndIndex, type CrawlerOptions, type CrawlerResult } from '@upstash/search-crawler';
const options: CrawlerOptions = {
upstashUrl: 'UPSTASH_SEARCH_REST_URL',
upstashToken: 'UPSTASH_SEARCH_REST_TOKEN',
indexName: 'my-docs',
docUrl: 'https://example.com/docs',
silent: true // no console output
};
const result: CrawlerResult = await crawlAndIndex(options);
UPSTASH_SEARCH_REST_URL and UPSTASH_SEARCH_REST_TOKEN.212 followers · starred Jul 2025
959 followers · starred Mar 2026
A CLI tool to crawl documentation sites and create a search index for Upstash Search.
TypeScript
18
39 commits
updated Sep 3, 2025
A CLI tool and library to crawl documentation sites and create a search index for Upstash Search.
You can run the CLI directly using npx (no installation required):
npx @upstash/search-crawler
Or with command-line options:
npx @upstash/search-crawler \
--upstash-url "UPSTASH_SEARCH_REST_URL" \
--upstash-token "UPSTASH_SEARCH_REST_TOKEN" \
--index-name "my-index" \
--doc-url "https://example.com/docs"
You will be prompted for any missing options:
The tool will:
You can also use this as a library in your own code:
import { crawlAndIndex, type CrawlerOptions, type CrawlerResult } from '@upstash/search-crawler';
const options: CrawlerOptions = {
upstashUrl: 'UPSTASH_SEARCH_REST_URL',
upstashToken: 'UPSTASH_SEARCH_REST_TOKEN',
indexName: 'my-docs',
docUrl: 'https://example.com/docs',
silent: true // no console output
};
const result: CrawlerResult = await crawlAndIndex(options);
UPSTASH_SEARCH_REST_URL and UPSTASH_SEARCH_REST_TOKEN.212 followers · starred Jul 2025
959 followers · starred Mar 2026