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

@lucaspalharesbarbosa/backstage-plugin-world-clock-plugin

v0.1.0

Published

Backstage frontend plugin - World Clock

Readme

World Clock — plugin Backstage

Plugin de frontend para o Backstage que exibe relógios em tempo real para fusos horários de escritórios (Nova York, Londres e Tóquio por padrão). O item World clock aparece automaticamente na barra lateral.

Construída com o novo sistema de frontend do Backstage (@backstage/frontend-plugin-api).

Requisitos

  • App Backstage com o novo frontend system (padrão em apps criados recentemente com create-app).
  • No app-config.yaml, a descoberta automática de plugins costuma estar habilitada com app.packages: all (valor padrão em apps novos).

Se o seu app ainda usa o frontend legado, esta plugin não é compatível sem migração.

Instalação

Na raiz do monorepo do seu app Backstage (não na pasta da plugin):

yarn --cwd packages/app add @lucaspalharesbarbosa/backstage-plugin-world-clock-plugin

A dependência deve ficar em packages/app, onde ficam as plugins de interface.

Descoberta automática (recomendado)

Confirme que o app-config.yaml contém:

app:
  packages: all

Com isso, não é necessário alterar código: a plugin é detectada após a instalação.

Suba o app e acesse:

http://localhost:3000/world-clock-plugin

Instalação manual (opcional)

Use apenas se não utilizar app.packages: all ou precisar de controle explícito sobre as features do app.

Em packages/app/src/App.tsx (o caminho pode variar no seu projeto):

import { createApp } from '@backstage/frontend-defaults';
import worldClockPlugin from '@lucaspalharesbarbosa/backstage-plugin-world-clock-plugin';

const app = createApp({
  features: [
    worldClockPlugin,
    // ...demais plugins
  ],
});

export default app.createRoot();

Documentação oficial: Configuring App with plugins.

Uso

| Item | Valor | |------|--------| | Rota | /world-clock-plugin | | Título na sidebar | World clock | | ID da plugin | world-clock-plugin |

As cidades exibidas vêm da constante DISPLAY_CITIES exportada pelo pacote. Para personalizar fusos no código do seu app, importe e use os tipos exportados (CityClockConfig, DISPLAY_CITIES) conforme a necessidade do seu time.

Atualização

Para instalar uma versão mais recente publicada no npm:

yarn --cwd packages/app upgrade @lucaspalharesbarbosa/backstage-plugin-world-clock-plugin

Desenvolvimento local (mantenedores)

Para trabalhar neste repositório da plugin, não no app Backstage consumidor:

yarn install
yarn start

O modo isolado em dev/ oferece hot reload mais rápido e serve apenas para desenvolvimento.

Outros comandos úteis:

yarn build   # gera dist/ para publicação no npm
yarn test
yarn lint

Links

Licença

UNLICENSED — consulte o autor antes de redistribuir ou usar fora do contexto acordado.