
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@aavanamkit/engine
Advanced tools
A professional, headless Node.js engine for generating data-driven documents from AavanamKit templates.
@aavanamkit/engine
is the server-side counterpart to the @aavanamkit/designer
. It is a pure Node.js library with zero browser dependencies, designed for automated, high-performance document generation.
This engine takes the template.json
created by the visual designer, merges it with your live application data, and produces pixel-perfect documents in multiple formats. It's the "construction crew" that reads the architect's blueprint and builds the final product.
Install the engine in your Node.js project using npm:
npm install @aavanamkit/engine
The engine exposes a single generate
function. You provide the template, data, and desired output type, and it returns the final document as a buffer.
import { generate } from '@aavanamkit/engine';
import fs from 'fs';
// 1. Load your saved template object from your database or a file
import template from './templates/invoice.json';
// 2. Fetch the live data for the document you want to create
const liveData = {
customer: { name: "John Doe", address: "123 Main St, Anytown" },
invoiceNumber: "INV-2025-001",
totalAmount: 450.00,
items: [
{ description: "Screen Repair", qty: 1, total: 250.00 },
{ description: "Battery Replacement", qty: 1, total: 200.00 },
]
};
// 3. Call the generate function
async function createInvoice() {
try {
const pdfBuffer = await generate({
template: template,
data: liveData,
outputType: 'pdf'
});
// 4. Do something with the output buffer
fs.writeFileSync('invoice-001.pdf', pdfBuffer);
console.log('Successfully generated invoice-001.pdf!');
} catch (error) {
console.error('Error generating document:', error);
}
}
createInvoice();
generate({ template, data, outputType })
This is an asynchronous function that returns a Promise.
Parameters:
template
(object) - Required. The complete template object saved from the @aavanamkit/designer
. It must include pageSettings
and pages
properties.data
(object) - Required. The live data object to populate the template. Its structure should match the dataSchema
defined within the template.outputType
(string) - Required. The desired output format. Must be one of the following strings:
'pdf'
'docx'
'html'
Returns:
A Promise that resolves to:
Buffer
for pdf
and docx
output types.string
for the html
output type.The AavanamKit Project is a community-driven, open-source initiative and we welcome contributions of all kinds. Please read our CONTRIBUTING.md guide for details.
This project is licensed under the MIT License. See the LICENSE file for details.
The AavanamKit Project - Founded by JJSOFT GLOBAL
FAQs
The headless Node.js engine for AavanamKit document generation.
The npm package @aavanamkit/engine receives a total of 1 weekly downloads. As such, @aavanamkit/engine popularity was classified as not popular.
We found that @aavanamkit/engine demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.