npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-dms-import

v0.1.9

Published

n8n community node for scraping DMS sale orders with order line details.

Readme

DMS Import

n8n community node package for scraping sale orders from the legacy DMS web UI.

Flow

  1. n8n runs a Schedule Trigger.
  2. The DMS Import node opens DMS with Playwright, navigates to Giao dịch > Đơn hàng, opens each order, and returns sale order JSON including OrderDetails.
  3. n8n builds the ERP payload and calls ERP_CREATE_ORDER_URL for each order.

Setup

npm install
npx playwright install chromium
cp .env.example .env

Fill .env with DMS credentials. Do not commit .env or credential.txt.

The scraper can read credential.txt using this format when DMS_USERNAME and DMS_PASSWORD are not set:

URL: https://vn-dms.accenture.com/DMS_VNM/Default.aspx
Username: your-user
Password: your-password
2FA KEY: BASE32_AUTHENTICATOR_SECRET

DMS 2FA

For unattended runs, set a TOTP secret:

DMS_TOTP_SECRET=BASE32_AUTHENTICATOR_SECRET

For first-time session capture, run visibly and enter the authenticator code manually:

DMS_HEADLESS=false npm run scrape

After a successful login, Playwright stores session cookies in .auth/dms-storage-state.json.

n8n Community Node

Install in n8n:

n8n-nodes-dms-import

Create DMS Credentials with Base URL, Username, Password, and TOTP Secret.

The node exposes one operation: Scrape orders — one output item per sale order, including OrderDetails.

The n8n host/container must have Chromium dependencies for Playwright.

Workflow

Example workflow: n8n/dms-hourly-order-sync.workflow.js

Schedule → Scrape orders → Build ERP Payload → Create ERP Order

Set n8n environment variables:

ERP_CREATE_ORDER_URL=https://erp.example.com/api/orders
ERP_AUTH_HEADER=Authorization
ERP_AUTH_VALUE='Bearer replace-me'
ERP_IDEMPOTENCY_HEADER=Idempotency-Key

Local scrape

npm run scrape