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

@dataverse-kit/export-engine

v1.22.0

Published

Code generator that emits self-contained PCF, Static Web App, and Web Resource projects (React + Fluent UI v8) from a Dynamics 365 form-builder design — including a live Dataverse data-access layer and vendored grid-kit subgrids.

Readme

@dataverse-kit/export-engine

Code generator for Dynamics 365 / Power Platform front-ends. It takes a form-builder design (FormBuilderProject — the document model produced by the form-builder app) and emits a self-contained TypeScript + React (Fluent UI v8) project for one of three targets, complete with a live Dataverse data-access layer and Dataverse subgrids rendered via vendored @dataverse-kit/grid-kit hosts.

What it does

  • One design → three targets: 'pcf' | 'static-web-app' | 'web-resource'. All targets funnel through one shared emission engine (generateAllFormCode), so subgrids, CRUD, and business rules behave identically across them.
  • Live data access: emits a React-Query Dataverse data-access layer (generateDataAccessLayer) so generated forms create/read/update/delete real records (mock/preview exports stay display-only by design).
  • Rich subgrids: flat (read-only / editable / card), grouped, nested (inline / side-panel / hover-callout / detail-pane), and focused-view (master-detail) — each emitted as the matching grid-kit host with a toolbar + per-row command menu (delete / activate / refresh / new / export / add-existing / filter / column-chooser).
  • Self-contained output: grid-kit source is vendored under src/lib/grid-kit/**, so a generated project only needs to resolve react + @fluentui/react.

When to use it

Use export-engine when you want to turn a visually designed form into runnable, deployable code rather than hand-writing it — e.g. scaffolding a Dynamics custom page, a Static Web App, a classic web resource, or a PCF control from a design. It is the engine behind create-dynamics-app --from-design. Reach for it (vs. composing grid-kit / reusable-components by hand) when the source of truth is a design document, not bespoke React.

Install

npm install @dataverse-kit/export-engine

Most users consume it indirectly via create-dynamics-app --from-design ./design.json <name>.

Minimal example

import { exportProject } from '@dataverse-kit/export-engine';

const result = await exportProject(formBuilderProject, {
  target: 'static-web-app', // 'pcf' | 'static-web-app' | 'web-resource'
  includeDataAccessLayer: true,
});
// result.files: Array<{ path, contents }> — write them to disk to get a runnable project.

Key exports

| Export | Purpose | |--------|---------| | exportProject / previewExport / validateExportTarget | Top-level pipeline — pick a target, emit files. | | generateAllFormCode / generateFormCode | The shared form/subgrid emission engine all targets funnel through. | | generatePcfProject | PCF control target. | | generateStaticWebAppProject / generateWebResourceProject | Static Web App + classic web-resource targets. | | generateDataAccessLayer / generateDataAccessLayerForGrid | The live Dataverse data-access layer. | | generateGridCustomizerProject | A standalone Power Apps Grid Customizer control. |

Notes

  • Fluent UI v8 is the grid-kit story; under componentLibrary: 'fluent-v9' subgrids fall back to native Fluent v9 <DataGrid> and do not vendor grid-kit.
  • Releases are Changesets-driven: add a .changeset/*.md, merge to main, then merge the auto-opened "Version Packages" PR to publish.

See CLAUDE.md for the full architecture/subgrid reference.