feat: bless crawl integration #17
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces the
bless-crawlextension integration.The bless-crawl plugin can be used in quickjs environment (for bless browser runtime).
A simple example is provided (JS) which displays how one can utilize the bless crawl plugin.
AI description
This pull request introduces the new
BlessCrawlSDK for distributed web scraping on the BLESS Network, along with updates to the documentation, examples, and package configuration to support it.The most significant changes include the addition of the
BlessCrawlSDK implementation, updates to supported features, and new examples to demonstrate its usage.New SDK Implementation:
BlessCrawlSDK with core functions (scrape,map, andcrawl) for web scraping, link discovery, and recursive crawling. Includes detailed configuration options and examples. (docs/bless-crawl.md,lib/index.ts,lib/bless-crawl)Documentation Updates:
README.mdto include instructions for building and using theBlessCrawlexample. (README.md, [1] [2]BlessCrawlSDK, including architecture, installation, and usage examples. (docs/bless-crawl.md, docs/bless-crawl.mdR1-R211)Example Projects:
examples/crawl) with sample scripts (index.ts,scrape-stdin-example.ts) to demonstrate theBlessCrawlSDK's capabilities. (examples/crawl/index.ts,examples/crawl/scrape-stdin-example.ts,examples/crawl/README.md,examples/crawl/package.json)Feature and Dependency Updates:
SUPPORTED_FEATURESarray to includecrawlandwasip1features. (bundler/index.ts, bundler/index.tsL29-R29)zodas a new dependency for schema validation. (package.json, package.jsonL38-R40)Miscellaneous:
lib/entry.tsto remove unnecessary blank lines. (lib/entry.ts, lib/entry.tsL12-L18)