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

dazscript-types

v1.0.3

Published

Daz Studio Scripting Types

Readme

DazScript Types

This project provides TypeScript typings for Daz Studio.

Overview

This project aims to provide TypeScript typings for Daz Script, making it easier to use in a TypeScript environment.

From Daz Script Documentation:

Daz Script 2 is a dynamically-typed, interpreted, object-oriented scripting language that is tightly integrated with the Daz Studio API. It is an extension of Qt Script, which is an extension of ECMAScript as defined in the ECMAScript Language Specification (ECMA-262), 5.1 Edition.

Syntactically Daz Script is very similar to JavaScript, JScript, and ActionScript.

Usage

To use these typings in your project, install the package from npm:

npm install dazscript-types

Then make sure you update your tsconfig.json to include the typings like so:

{
  "compilerOptions": {
    ...
  },
  "include": ["node_modules/dazscript-types/src/types/**/*"]
}

Updating The Types

When maintaining this package, update the types through the local sync pipeline instead of editing large generated sections by hand.

Recommended collaborator workflow:

  1. Refresh the saved DAZ HTML corpus.
  2. Bootstrap augments if needed.
  3. Run the HTML sync pipeline.
  4. Review the summary and the resulting diff.
  5. Recover missed undocumented members only if real consumer code proves they are needed.

Commands:

# Refresh the local HTML cache
node scripts/daz_scraper.mjs

# Refresh one type only
node scripts/daz_scraper.mjs --type DzNode

# Custom output directory if needed
node scripts/daz_scraper.mjs path/to/daz_api_html --type DzNode

# Bootstrap augment files from current legacy/generated types
npm run sync:extract-augments

# Rebuild eligible DAZ class files from saved HTML plus augments
npm run sync:html

# Rebuild and prune redundant augment members afterward
npm run sync:html -- --prune-augments

# Rebuild one type only
npm run sync:html -- --type DzNode

# Rebuild one type only and prune augments
npm run sync:html -- --type DzNode --prune-augments

# Standalone augment prune pass
npm run sync:prune-augments

# Recover candidate missing members from compiler errors
npm run sync:recover-errors -- path/to/tsc-errors.txt

What the pipeline does:

  • writes transient HTML models to .generated/html-models
  • stores repo-tracked undocumented members in src/augments/daz
  • rebuilds generated declarations from HTML + augments
  • removes inherited members already covered by ancestry
  • can prune redundant augment members after generation

Recommended flows:

  • Bootstrap or rebuild augments:
    1. npm run sync:extract-augments
    2. npm run sync:html -- --prune-augments
  • Normal ongoing sync:
    1. npm run sync:html
    2. optionally npm run sync:html -- --prune-augments

Detailed sync behavior, command reference, and cleanup workflow are documented in src/sync/README.md.

Contributing

Contributions are welcome! If you find a bug or think of a feature that should be added, please open an issue. If you want to contribute code, feel free to open a pull request.

License

This project is licensed under the Mozilla version 2.0 License. See the LICENSE file for more details.