Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blaze Components package explorer #31

Open
mitar opened this issue Apr 23, 2015 · 10 comments
Open

Blaze Components package explorer #31

mitar opened this issue Apr 23, 2015 · 10 comments

Comments

@mitar
Copy link
Member

mitar commented Apr 23, 2015

We could make a site which would be a simple package explorer for Meteor packages which provide Blaze Components. There is an API.

It would be great if we could put into Meteor package metadata somehow a way to display an example of a component automatically in the list. So that it would be more like a gallery of components one can browse through. Buttons, tabs, dialogs, you name it.

Of course this app should be written using Blaze Components. :-)

@Sivli-Embir
Copy link

👍

@offthegrass
Copy link
Contributor

There's an open-source meteor package search powered by Algolia. (Angolia has a free plan for community projects)

I made a quick fork and prefixed the query with blaze component.

It works pretty well. We could just manually omit packages from the results if they aren't blaze components.

@mitar
Copy link
Member Author

mitar commented Apr 24, 2015

This looks cool. How could we detect which packages are not Blaze Components?

So one idea is as I described in meteor/meteor#4267, allowing people to add some custom metadata.

How could we show the preview of the component? What I imagine is that it should be a package explorer, but component explorer. So if a package provides multiple components, all components should be listed as a search result. So search results would be two columns. Left one would be preview. And the right one would be short instruction how to use it (which package to add, what is the name of component to include in the template/name of the component class/exported symbol).

How we could do such previews? Load all packages and render them? Put them into iframes and publish for each a simple Meteor app which just render a preview of a component?

@mitar
Copy link
Member Author

mitar commented Apr 24, 2015

Or maybe just ask component developers to provide a screenshot. :-) And a possible link to a demo app.

@mitar
Copy link
Member Author

mitar commented Apr 25, 2015

I made this simple site: http://components-explorer.meteor.com/ :-)

@offthegrass
Copy link
Contributor

    'dependencies.peerlibrary:blaze-components':
      $exists: true

nice!

@mitar
Copy link
Member Author

mitar commented Apr 25, 2015

We should probably do such search recursively (so packages which depend on packages which depend on peerlibrary:blaze-components), but it is OK for now. :-)

Also, probably not all packages will provide components.

We should find a way now to describe which components are in the package. Maybe we could simply have a standard format one should use in README file before first and second heading which is then parsed by Meteor?

@mitar
Copy link
Member Author

mitar commented Apr 25, 2015

offthegrass:testing123

Skeptic! :-)

@offthegrass
Copy link
Contributor

very cool. I'm wrapping all my components in packages anyway, but yes you're right.

I'll think some more about it tonight.

@mitar
Copy link
Member Author

mitar commented Oct 9, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants