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

@neo-office/web-sdk

v0.1.1

Published

High-level browser SDK for viewing and editing Office documents (DOCX, PPTX, XLSX). Built on top of the Neo Office WASM engine — no server, no external services.

Readme

@neo-office/web-sdk

High-level browser SDK for viewing and editing Office documents (DOCX, PPTX, XLSX). Built on top of the Neo Office WASM engine — no server, no external services.

Installation

npm install @neo-office/web-sdk

Quick Start

import { NeoPreviewEngine } from '@neo-office/web-sdk';

const engine = new NeoPreviewEngine();
await engine.init();

// Open a file (File object from <input> or drag-and-drop)
const handle = await engine.openFile(file);

// Render a page to an HTML element
await engine.renderPage(handle, 0, document.getElementById('viewer'));

// Clean up
engine.dispose();

PPTX — HTML Renderer

Render a PowerPoint slide as a pixel-perfect HTML/CSS/SVG layout:

import { renderSlideToHtml } from '@neo-office/web-sdk';
import type { PptxHtmlRenderOptions } from '@neo-office/web-sdk';

const options: PptxHtmlRenderOptions = {
  slideIndex: 0,
  containerWidth: 960,
};

const html = renderSlideToHtml(presentation, options);
document.getElementById('slide').innerHTML = html;

PPTX — Animations

Play entrance animations and slide transitions:

import { PptxAnimationPlayer, playSlideTransition } from '@neo-office/web-sdk';

// Entrance animations (click-to-advance)
const player = new PptxAnimationPlayer(slideEl, slide.animations);
player.start();
player.advance(); // trigger next click group

// Slide transitions
await playSlideTransition(fromEl, toEl, transition);

Edit Session

Track mutations before committing them back to the document:

import { EditSession } from '@neo-office/web-sdk';

const session = new EditSession(handle);

session.apply({ type: 'SET_TEXT', shapeId: 'sp1', text: 'Hello' });
session.apply({ type: 'MOVE_SHAPE', shapeId: 'sp1', x: 100, y: 200 });

const mutations = session.mutations; // inspect pending changes
session.commit();                    // finalise

API Reference

NeoPreviewEngine

| Method | Returns | Description | |---|---|---| | init() | Promise<void> | Initialise the WASM engine | | openFile(file) | Promise<DocumentHandle> | Load a File object | | openBytes(bytes, name) | Promise<DocumentHandle> | Load raw Uint8Array | | renderPage(handle, page, el) | Promise<void> | Render a page into a DOM element | | getMetadata(handle) | Promise<object> | Title, author, word count, … | | search(handle, query) | Promise<SearchResult[]> | Full-text search | | dispose() | void | Release all resources |

renderSlideToHtml(presentation, options)

Converts a parsed PptxPresentation slide into an HTML string. Options:

interface PptxHtmlRenderOptions {
  slideIndex: number;        // 0-based
  containerWidth?: number;   // px, default 960
  containerHeight?: number;  // px, auto-calculated if omitted
}

Peer Dependencies

None — the WASM engine is bundled.

License

MIT