piece-desearch
v0.0.1
Published
Desearch web search custom piece for Activepieces
Readme
Desearch for Activepieces
piece-desearch provides a Web Search action that returns titles, links, and snippets from Desearch.
Create an Activepieces connection using the required API Key field. The action sends a Bearer-authenticated GET to https://api.desearch.ai/web. Query is required. Result Count defaults to 10, must be a positive integer, and is capped at 20. The piece does not read environment variables for authentication.
Install as a custom piece
Platform installation
Build locally with Node.js 22 or newer:
npm install
npm run build
npm packIn Activepieces, open Platform admin > Pieces > Install from npm, enter piece-desearch and the version once published. Current interfaces may place Pieces under Catalogue. Before npm publication, choose Upload tarball and upload piece-desearch-0.0.1.tgz. Custom piece availability depends on your deployment and platform permissions. Add the piece to the relevant piece set if required.
Installing this package with npm alone does not register it in an Activepieces instance.
Self-hosted development
Use an Activepieces source checkout. Copy this package into packages/pieces/custom/desearch, include it in that checkout's workspace/build configuration, and build the piece into the checkout's local dist layout using its piece build command. Enable it in the checkout's .env.dev:
AP_DEV_PIECES=desearch npm startAP_DEV_PIECES selects pieces already built in the Activepieces checkout. It does not install arbitrary npm packages. For deployed self-hosted instances, use the platform tarball installation above.
Verification
npm run build
npm test
npm run lint
npm run typecheck
npm run live_check
npm packThe live check requires DESEARCH_API_KEY already present in the process environment. It passes that value as the action connection auth and prints only the result count and first title. Do not put credentials in files or shell command arguments.
The package uses TypeScript to build CommonJS JavaScript and declarations into dist. main and types point to those outputs. Activepieces framework and common libraries are peer dependencies, with matching development versions locked for verification. Unit tests mock HTTP and invoke the registered action.
Publish notes
The npm organization is @desearch. Publication requires Temo OK, npm organization permission, and npm login. After approval and login, verify the package contents and run:
npm publish --access publicIncrement the version for later releases. This work does not publish, sign in, or push.
References
Docs checked on 2026-10-29:
- Custom piece builds
- Platform piece management and tarball upload
- Development setup and AP_DEV_PIECES
- Scoped npm pieces
- Custom piece synchronization
Based on the Desearch community piece in the Activepieces source checkout.
