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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@burgan-tech/vnext-template

v0.0.5

Published

vNext template package with domain-based workflow components and schema validation

Downloads

168

Readme

core

A structured template package for vNext workflow components with domain-based architecture.

📦 Installation

Create a new project with your domain name:

npx @burgan-tech/vnext-template <domain-name>

Example

npx @burgan-tech/vnext-template user-management

This will create a new directory with your domain name, copy all template files, replace core instances, and install dependencies automatically.

Install specific version

npx @burgan-tech/vnext-template@<version> <domain-name>

Example:

npx @burgan-tech/[email protected] user-management

Alternative: Install as dependency

npm install @burgan-tech/vnext-template
npm run setup <domain-name>

Or install specific version:

npm install @burgan-tech/vnext-template@<version>
npm run setup <domain-name>

Or use environment variable:

DOMAIN_NAME=user-management npm install @burgan-tech/vnext-template@<version>

🚀 Usage

After installation, your project structure will be:

<domain-name>/
├── Extensions/
├── Functions/
├── Schemas/
├── Tasks/
├── Views/
└── Workflows/

Access components in code

const vnextTemplate = require('@burgan-tech/vnext-template');

// Get domain configuration
const config = vnextTemplate.getDomainConfig();

// Get paths configuration
const paths = vnextTemplate.getPathsConfig();

// Get all schemas
const schemas = vnextTemplate.getSchemas();

// Get all workflows
const workflows = vnextTemplate.getWorkflows();

// Get all tasks
const tasks = vnextTemplate.getTasks();

// Get component path for a specific type
const schemasPath = vnextTemplate.getComponentPath('schemas');

Available methods

| Method | Description | |--------|-------------| | getDomainConfig() | Get domain configuration from vnext.config.json | | getPathsConfig() | Get paths configuration with defaults | | getSchemas() | Get all schemas | | getWorkflows() | Get all workflows | | getTasks() | Get all tasks | | getViews() | Get all views | | getFunctions() | Get all functions | | getExtensions() | Get all extensions | | getDomainName() | Get domain directory name | | getAvailableTypes() | Get list of available component types | | getComponentPath(type) | Get full path for a component type |

⚙️ Configuration

The vnext.config.json file allows you to customize paths and exports:

{
  "domain": "my-domain",
  "paths": {
    "componentsRoot": "my-domain",
    "schemas": "Schemas",
    "workflows": "Workflows",
    "tasks": "Tasks",
    "views": "Views",
    "functions": "Functions",
    "extensions": "Extensions"
  },
  "exports": {
    "schemas": ["schema1.json", "schema2.json"],
    "workflows": ["workflow1.json"],
    "tasks": [],
    "views": [],
    "functions": [],
    "extensions": []
  }
}

Path Configuration

You can customize component directory names:

{
  "paths": {
    "componentsRoot": "src",
    "workflows": "Flows",
    "schemas": "Models"
  }
}

✅ Validation

Validate your project structure and schemas:

npm run validate

This will check:

  • Package.json structure and content
  • Main entry point functionality
  • vnext.config.json validation
  • Domain directory structure
  • JSON file syntax validation
  • Schema validation using @burgan-tech/vnext-schema
  • Module functionality
  • Semantic versioning compliance

Validation Output

The validation provides detailed output with:

  • ✅ Passed validations
  • ❌ Failed validations with file paths and line numbers
  • 📊 Summary statistics
  • 📋 Failed files summary for easy navigation

🏗️ Build

Build your domain package for deployment or cross-domain usage:

# Runtime build (default) - Complete domain structure
npm run build

# Reference build - Only exported components
npm run build:reference

# Runtime build explicitly
npm run build:runtime

Build Options

npm run build -- [options]

Options:
  -o, --output <dir>     Output directory (default: dist)
  -t, --type <type>      Build type: reference or runtime (default: runtime)
  --skip-validation      Skip validation during build
  -h, --help             Show help message

Build Types

| Type | Description | Use Case | |------|-------------|----------| | runtime | Complete domain structure with all files | Engine deployment | | reference | Only exported components from vnext.config.json | Cross-domain usage |

Examples

# Build to custom directory
npm run build -- -o my-build

# Reference build to custom directory
npm run build -- -t reference -o packages/ref

# Skip validation for faster builds
npm run build -- --skip-validation

Build Output Structure

Runtime Build:

dist/
├── <domain>/
│   ├── Extensions/
│   ├── Functions/
│   ├── Schemas/
│   ├── Tasks/
│   ├── Views/
│   └── Workflows/
├── vnext.config.json
├── package.json
├── README.md
└── LICENSE

Reference Build:

dist/
├── <domain>/
│   ├── Extensions/     # Only exported files
│   ├── Functions/      # Only exported files
│   ├── Schemas/        # Only exported files
│   ├── Tasks/          # Only exported files
│   ├── Views/          # Only exported files
│   └── Workflows/      # Only exported files
├── vnext.config.json
├── package.json
├── README.md
└── LICENSE

📜 Available Scripts

| Script | Description | |--------|-------------| | npm run validate | Validate project structure and schemas | | npm run build | Build runtime package to dist/ | | npm run build:runtime | Build runtime package explicitly | | npm run build:reference | Build reference package with exports only | | npm run setup <name> | Setup domain with given name | | npm run sync-schema | Sync schema version from dependencies | | npm test | Run tests |

📄 License

MIT