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

@seedgrid/fe-backup

v2026.8.8

Published

[![npm version](https://img.shields.io/npm/v/%40seedgrid%2Ffe-backup)](https://www.npmjs.com/package/@seedgrid/fe-backup) [![npm downloads](https://img.shields.io/npm/dm/%40seedgrid%2Ffe-backup)](https://www.npmjs.com/package/@seedgrid/fe-backup) [![TypeS

Readme

@seedgrid/fe-backup

npm version npm downloads TypeScript

Módulo front de backup/exportação de dados do SeedGrid: criação de jobs de export, acompanhamento de status com polling e download do artefato gerado. Compõe sobre o motor de sessão do @seedgrid/fe-security.

Sumário

Funcionalidades

  • Criar export — formatos CSV_ZIP e SQL_DUMP_ZIP, escopos DOMAIN / RAW / CUSTOM.
  • Acompanhar status — o job passa por 8 estados; helpers puros classificam o andamento: classifyExportStatus, isExportInProgress, isExportDownloadable (ExportStatusGroup).
  • Baixar o artefato — download em application/zip via rota-proxy do app.
  • Remover exports antigos.
  • i18n prontobackupMessages (bundle de mensagens das telas).

O pacote exporta:

  • BackupPaths — contrato dos endpoints REST (/exports, /exports/{jobId}, /exports/{jobId}/download).
  • DTOs client-safe: ExportRequest, ExportResponse, ArtifactInfo, BackupFormat, ExportScope, ExportStatus — conferidos 1:1 contra os enums/DTOs reais do backend.
  • Helpers de status (export-status) e backupMessages (i18n).
  • createBackupServer (em @seedgrid/fe-backup/server, SERVER-ONLY) — engine tipado sobre a sessão do fe-security.

Telas entregues pelo scaffold

| Tela | Rota | O que faz | | --- | --- | --- | | Lista de exports | /backup/exports | Grid dos jobs com ExportStatusBadge (status colorido), polling de andamento, download quando pronto e exclusão | | Novo export | /backup/exports/new | Formulário de criação (formato + escopo) |

O scaffold também traz o route handler de download (/api/backup/exports/[jobId]/download), a seção de navegação (useBackupAppShellSections, wireada automaticamente pelo CLI via module.json) e os services client-side com testes.

module.json: id: "backup", requires: ["security"], navegação e mensagens declaradas — o SeedGrid CLI registra tudo sozinho ao adicionar o módulo.

Instalação

pnpm add @seedgrid/fe-backup @seedgrid/fe-security @seedgrid/fe-core

Uso rápido

// server-only — compõe sobre a sessão do fe-security
import { createSecurityServer } from "@seedgrid/fe-security/server";
import { createBackupServer } from "@seedgrid/fe-backup/server";

const session = createSecurityServer({ /* ... */ });
export const backup = createBackupServer(session);

// Em uma rota/action:
const job = await backup.createExport({ format: "CSV_ZIP", scope: "DOMAIN" });
const status = await backup.getExportStatus(job.jobId);
// Client: classificar o status pra UI
import { classifyExportStatus, isExportDownloadable } from "@seedgrid/fe-backup";

const group = classifyExportStatus(job.status); // "inProgress" | "success" | "failure" ...
if (isExportDownloadable(job.status)) {
  // habilita o botão de download
}

Backend correspondente

Extensão Quarkus seedgrid-quarkus-ext-backup. BackupPaths é espelho do RestControllerPath.java da extensão; os DTOs foram conferidos contra BackupFormat, ExportScope, ExportStatus e ExportResponse reais.

Suporte

  • Issues: https://github.com/SeedGrid/seedgrid-fe-components/issues
  • Repositório: https://github.com/SeedGrid/seedgrid-fe-components

Licença

MIT