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-cli-fixture-loader

v0.0.3

Published

A fixture loader to keep your fixtures separate from your models

Readme

Ember CLI Fixture Loader

An ember-cli addon to keep your fixtures separate from your models.

Install

Install the addon and run the ember-cli blueprint.

npm install ember-cli-fixture-loader --save

Fixture Generation

To generate fixture with standard syntax:

ember generate fixture <model-name>
ember generate fixture <model-name> --pod

It will generate app/fixtures/tag.js and app/pods/tag/fixture.js respectively

Configuration

This addon can be configured in environment config:

ENV.FIXTURES = {
  enabled: true
};

enabled: true/false - control whether fixture addon will search for fixtures or not. Also you can use this setting in adapter to control which adapter should be used.

Usage

Model.reopenClass({...}) will be handled automatically based on where fixture for model can be found:

Example /app/models/post.js

import DS from "ember-data";

export default DS.Model.extend({
  name: DS.attr("string");
});

Example /app/fixtures/post.js or /app/pods/post/fixture.js

export default [
 {
   id: 1,
   title: 'Example'
 },
 {
  id: 2,
  title: 'Example 2'
 }
];

FixtureAdapter per environment control

If you want to dynamically control adapter based on enabled or disabled Fixtures setting, you can do it easily in application adapter:

import DS from 'ember-data';
import Configuration from '<app-name>/config/environment';

var adapter = DS.RESTAdapter.extend();

if (Configuration.FIXTURES.enabled) {
  adapter = DS.FixtureAdapter.extend();
}

export default adapter;

Also you can control adapter by each model type, consider case when part of the API was released but other part is in development.

Troubleshooting

Error while processing route: templates Assertion Failed: Unable to find fixtures for model type 

you have enabled Fixture adapter for the model, which do not have fixtures but you request this model via store. Add fixture for this model.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request