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 🙏

© 2024 – Pkg Stats / Ryan Hefner

photus

v1.0.3

Published

This project is a library that facilitates the creation of galleries for your systems

Downloads

13

Readme

Author GitHub Repo stars

💡 Motivo

Sabemos o quanto é difícil para um desenvolvedor web escolher e trabalhar com componentes e bibliotecas de construção de interfaces. Pensando nisso, desenvolvemos uma solução usando javascript puro para facilitar o gerencimento de um processo extremamente custoso: a construção de galerias de imagens; que permite mais agilidade e otimiza o seu tempo. Essa biblioteca está sendo projetada para ter alta escalabilidade e flexibilizade, além de integrar fielmente ao design definido.

⚠️ Esse projeto está em fase beta, por esse motivo não deve ser usado no ambiente de produção

📗 Requerimento

🛠️ Como utilizar

$ git clone [email protected]:brunofamiliar/photus.git
$ cd photus
$ npm install
$ npm run build
  • Copie os arquivos gerados dentro do diretório "photus/dist" para a raiz do seu projeto;
  • Para utilizar a lib em seu projeto, importe os arquivos .js e .css compilados e crie uma tag div com a id "pht__endpoint", essa tag é necessária para a injeção de dependência. Ex: index.html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="./css/main.css">
    <title>Photus - Simple Gallery</title>
</head>
<body>
    <div id="pht__endpoint"></div>
</body>
<script src="./photus.min.js"></script>
</html>

⚙️ Configurações disponíveis

Opções

Propriedade | Descrição | Tipo | Padrão ------------ | --------- | ---- | ------ type | Defina o tipo de layout a ser utilizado | string | grid images | Carrega as imagens da galeria | object[] | [] style | Edite o estilo para adaptar ao design | object[] | []

Images

Propriedade | Descrição | Tipo | Padrão ------------ | --------- | ---- | ------ name | Nome da imagem (será utilizado também como label) | string | - path | Url a ser buscado a imagem | string | -

Style

Layout Grid

Propriedade | Descrição | Tipo | Padrão ------------ | --------- | ---- | ------ columns | Quantidade de colunas | number | 4 cardSize | Tamanho do cartão de imagem | number | 200 contentWidth | Largura total do container | number | - gap | Espaçamento entre cards | number | 1 borderRadius | Borda dos cards (top, right, bottom, left) | array[number] | []