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

meteor-webpack-client

v0.9.1

Published

Use Meteor's native client packages in a non Meteor project

Readme

meteor-webpack-client

Use Meteor's native client packages in a non Meteor project.

The packages are from a local meteor install of any version whith their css files.

Installation

NPM

From your non-meteor client : npm install --save meteor-webpack-client

Usage

1. Meteor setup :

Install all packages you need in meteor and run it one time to refresh the client side.

2. Client setup (webpack client, not the client side of meteor) :

To define __meteor_runtime_config__ global variable you have to make a meteor-runtime-config.js file in your root. The following is the default if empty :

export const __meteor_runtime_config__ = {
  meteorEnv: {},
  DDP_DEFAULT_CONNECTION_URL: 'http://localhost:3000',
  PUBLIC_SETTINGS: {
    __global_scope__: true
  }
};
  • Set DDP connection url with DDP_DEFAULT_CONNECTION_URL if using DDP
  • Make Meteor objects global with __global_scope__: true; you still have to import your package in your main. Ex: import 'meteor/accounts-base' to have Accounts.

3. easy-webpack configuration :

This package is to be used with easy-webpack. You have to add the following code to your webpack.config.js :

config = generateConfig(
  config,
  require('meteor-webpack-client')()
);

You can add options :

  • meteorPath: where meteor is installed (can be absolute or relative),
  • meteorLibsPath: where meteor adapters will be written (can be absolute or relative),
  • exclude: a list of modules to be excluded from the bundle.

The following example show the options by default :

require('meteor-webpack-client')({
  meteorPath: '../server',
  meteorLibsPath: './.meteor-libs',
  exclude: [
    'autoupdate',
    'global-imports',
    'hot-code-push',
    'reload',
    'ecmascript'
  ]
})

It makes it possible to import the packages as in Meteor 1.3+ :

import { Meteor } from 'meteor/meteor';
import { DDP } from 'meteor/ddp';

The packages bundled by webpack are only those imported by your code with their dependencies.

All css files bundled by meteor are bundled by webpack.

What I've done

The code is in the native compiled version of Meteor for a given version.

I wanted to be able to use meteor's modules with webpack using import {...} from 'meteor/...' and working with Aurelia.