
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@weweb/backend-pdfmonkey
Advanced tools
Pdfmonkey integration for WeWeb backend services. This package provides access to the PDFMonkey API within WeWeb backend workflows.
npm install @weweb/backend-pdfmonkey
# or
yarn add @weweb/backend-pdfmonkey
# or
pnpm add @weweb/backend-pdfmonkey
The integration can be configured using environment variables or by passing options to the createPdfmonkeyIntegration
function:
import { createPdfmonkeyIntegration } from '@weweb/backend-pdfmonkey';
// Using environment variables
const pdfmonkey = createPdfmonkeyIntegration();
// Or with custom options
const customPdfmonkey = createPdfmonkeyIntegration({
apiKey: 'your-api-key'
});
PDFMONKEY_API_KEY
: Your PDFMonkey API keyconst documents = await pdfmonkey.listDocuments({
page: 1,
status: 'success',
documentTemplateId: 'template-id',
workspaceId: 'workspace-id',
updatedSince: '2023-01-01T00:00:00Z'
});
const document = await pdfmonkey.getDocument({
id: 'document-id'
});
const documentCard = await pdfmonkey.getDocumentCard({
id: 'document-id'
});
const newDocument = await pdfmonkey.createDocument({
document_template_id: 'template-id',
status: 'pending', // or "draft"
payload: {
clientName: 'John Doe',
orderDate: '2023-01-01',
products: [
{ name: 'Product 1', quantity: 2, unitPrice: 10.99 },
{ name: 'Product 2', quantity: 1, unitPrice: 24.99 }
]
},
meta: {
_filename: '2023-01-01 John Doe.pdf',
clientRef: 'client-123'
}
});
const updatedDocument = await pdfmonkey.updateDocument({
id: 'document-id',
status: 'pending',
payload: {
clientName: 'Jane Doe'
}
});
await pdfmonkey.deleteDocument({
id: 'document-id'
});
const templates = await pdfmonkey.listTemplates({
page: 1,
workspaceId: 'workspace-id',
folders: 'folder-id-1,folder-id-2',
sort: 'identifier'
});
const template = await pdfmonkey.getTemplate({
id: 'template-id'
});
const newTemplate = await pdfmonkey.createTemplate({
identifier: 'Invoice Template',
edition_mode: 'code',
body: '<h1>Invoice for {{clientName}}</h1>',
scss_style: 'h1 { color: blue; }',
sample_data: JSON.stringify({ clientName: 'John Doe' }),
settings: {
orientation: 'portrait',
paper_format: 'a4',
margin: {
top: 10,
right: 10,
bottom: 10,
left: 10
}
},
pdf_engine_id: 'engine-id',
ttl: 86400 // 1 day
});
const updatedTemplate = await pdfmonkey.updateTemplate({
id: 'template-id',
body: '<h1>Updated Invoice for {{clientName}}</h1>'
});
await pdfmonkey.deleteTemplate({
id: 'template-id'
});
const engines = await pdfmonkey.listEngines();
MIT
FAQs
Pdfmonkey integration for WeWeb backend services
We found that @weweb/backend-pdfmonkey demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.