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

ember-query-params-proxy

v0.1.2

Published

Ember addon for easier DDAU compatible handling of query parameters.

Readme

ember-query-params-proxy

Ember Observer Score npm package version license MIT

This addon enables you to do DDAU compatible handling of query parameters while passing the parameters on the subcomponents. This makes it easy to use query parameters in your application and let the controller contain the single source of truth with regards to the value of the parameters. The queryParams proxy gives you a convenient way to pass along several query parameters as well as their mutation actions to components without the need to enumerate each parameter and manually create mutation actions for them.

Usage

  • ember install ember-query-params-proxy

  • In your controller file you specify the query parameters to use in normal fashion but also create a computed property with the help of the queryParams proxy like this:

    import Controller from '@ember/controller';
    import proxy from 'ember-query-params-proxy';
    
    export default Controller.extend({
      queryParams: [ 'foo', 'bar' ],
      foo: 42,
      bar: 'someString',
      queryParamsProxy: proxy()
    });
  • Pass along the queryParams proxy to your component in your template like this:

    {{test-component queryParamsProxy=queryParamsProxy}}
  • The queryParams proxy contain aliased properties for all queryParams defined in your controller. These aliases can be used to read the properties <QUERY_PARAM_NAME>, and the proxy also contain mutation actions that can be used to mutate the same directly on the controller <QUERY_PARAM_NAME_mut>. The proxy can be use in you component template like this:

    <div>
      foo: {{queryParamsProxy.foo}}
    </div>
    <div>
      bar: {{queryParamsProxy.bar}}
    </div>
    <div>
      foo: <input oninput={{action queryParamsProxy.foo_mut value="target.value"}}>
    </div>
    <div>
      bar: <input oninput={{action queryParamsProxy.bar_mut value="target.value"}}>
    </div>
  • If using ember-form-for you probably want to use the third parameter of the update action which contains the value. In this you can simple include the option emberFormFor when creating the proxy like this:

    import proxy from 'ember-query-params-proxy';
    
    queryParamsProxy: proxy({ emberFormFor: true })

TODO:s & future enhancements

  • Currently we only support string-configured query parameters:

    queryParams: [ 'foo', 'bar' ]

    We should also support object-configured query parameters:

    queryParams: {
      foo: {
        type: 'number'
      },
      bar: {
        type: 'string'
      }
    }

    As well as mixed-mode configurations:

    queryParams: [ 'foo',
      { bar: 'query_params_bar' }
    ]
  • It might also be good to make it possible to hook into the mutation action before it updates the query parameter property. For instance with more complex objects like dates and such, some manual mangling might be wanted.

Development & Running

  • git clone <repository-url> this repository
  • cd ember-query-params-proxy
  • yarn install
  • ember serve
  • Visit your app at http://localhost:4200.

Running Tests

  • npm test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit https://ember-cli.com/.

Publishing

First time

  • Create a npm user account if you don't have one: npm adduser.
  • Use npm login to store the credentials on the client.
  • Ask an @ecraft npm organization admin to add you to the organization.

Every time

  • Make your changes
  • npm version <update_type>, where update_type is one of the semantic versioning release types, patch, minor, or major. This command will change the version number in package.json. Note that this will also add a tag with this release number to your git repository.
  • git push
  • npm publish
  • Give yourself a pat on the back