
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
@shipengine/connect-rendering-client
Advanced tools
The @shipengine/connect-rendering-client provides developers with the ability to access the rendering capabilities.
This example shows you how to render the documents within the CreateLabel method.
import { join } from 'path';
import { CreateLabelRequest, CreateLabelResponse } from '@shipengine/connect-carrier-api';
import { GetDocuments } from '@shipengine/connect-rendering-client';
export const CreateLabel = async (request: CreateLabelRequest): Promise<CreateLabelResponse> => {
const templatePath = join(__dirname, '../../assets/templates/dummy_carrier.carrier')
return await GetDocuments(request, templatePath);
}
If you prefer to use the template with multiple documents, it is possible to select the document to be rendered by its name. In the following example, two documents are selected.
return await GetDocuments(request, templatePath, ['standard_label', 'additional_label']);
DocumentTemplate: join(__dirname, "../../../assets/carrier_api_code.carrier"),
RENDERING_HOST has to be set. For modules deployed in dev environment, the app developer must run the following command prior to connect publish:connect env:set RENDERING_HOST http://connect-rendering-prod.kube.seplocal.com
In order to use Rendering in higher environment, the app developer must add the following environment variable to module's helm file:
RENDERING_HOST: "#{RENDERING_HOST}"
The value will be substituted by Octopus, according to environment where the module is deployed to.
Generic customs documents: customs form (CN22, CN23), commercial invoice (CI) are supported out of the box. Developer decides what kind of document should be generated by selecting document names. Customs documents are available in three languages: English (EN), German (DE), French (FR).
This example shows how to generate commercial invoice and customs form in French.
import { CreateLabelRequest, CreateLabelResponse } from '@shipengine/connect-carrier-api';
import { GetCustoms } from '@shipengine/connect-rendering-client';
export const CreateLabel = async (request: CreateLabelRequest): Promise<CreateLabelResponse> => {
return await GetCustoms(request, ['CI', 'CN22'], 'FR');
}
By default, customs documents are generated in English.
return await GetCustoms(request, ['CI', 'CN23']);
From the repository root, navigate to this package directory.
Install dependencies
yarn
Build
yarn build
FAQs
Rendering Service client
The npm package @shipengine/connect-rendering-client receives a total of 9 weekly downloads. As such, @shipengine/connect-rendering-client popularity was classified as not popular.
We found that @shipengine/connect-rendering-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 41 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.