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

@eventodaigreja/ei-core

v0.3.42

Published

Biblioteca core de UI, hooks e utilitários do EI (Evento da Igreja).

Readme

forlogic-core

Shared React component library, hooks, services, and configuration for Forlogic / Qualiex projects. Built on Vite + React 18 + Tailwind + shadcn primitives, opinionated for multi-tenant SaaS with Supabase.

Install

npm install forlogic-core

Quick Start

import { CoreProviders, Button } from 'ei-core';
import { setupQualiexCore } from 'ei-core/setup';
import ptBR from './i18n/pt-BR.json';

setupQualiexCore(); // injects fonts, favicon, etc.

function App() {
  return (
    <CoreProviders moduleAlias="my-module" appTranslations={{ 'pt-BR': ptBR }}>
      <Button variant="primary">Hello</Button>
    </CoreProviders>
  );
}

CoreProviders wires up auth, React Query, i18n and tooltip providers in the right order.

Modules

| Module | What it provides | README | |---|---|---| | ei-core (UI) | shadcn-based components (Button, Dialog, Combobox, Tabs, ...) | docs/design-system/ | | ei-core (CRUD) | createCrudPage, CrudTable, BaseForm, services hook | docs/design-system/crud.md | | ei-core/auth | OAuth + PKCE, multi-tenant alias routing, useAuth | lib/auth/README.md | | ei-core/services | BaseService, createSimpleService, Email, Error | lib/services/README.md | | ei-core/places | Hierarchical Org Units (UO) selectors and tree view | lib/places/README.md | | ei-core/approval-flow | Approval sidebar, dialogs and types | lib/approval-flow/README.md | | ei-core/media | VideoEditor, ImageEditor with pluggable upload | lib/media/README.md | | ei-core/integrations | Supabase client | lib/integrations/README.md |

Modular imports

Subpath exports keep bundles lean:

import { Button } from 'ei-core/ui';
import { createCrudPage } from 'ei-core/crud';
import { createSecurityHeadersPlugin } from 'ei-core/vite';
import { forlogicTailwindPreset } from 'ei-core/tailwind';

The flat ei-core export re-exports everything for convenience.


Schema do Projeto

⚠️ SCHEMA = common

Este é o único local onde o schema é definido. Toda query Supabase DEVE usar .schema('common').

// ✅ CORRETO
supabase.schema('common').from('tabela').select('*');

// ❌ ERRADO (vai falhar em produção)
supabase.from('tabela').select('*');

Documentação

| Documento | Caminho | Conteúdo | |-----------|---------|----------| | Constituição | spec/constitution.md | Regras, convenções e melhores práticas obrigatórias | | Design System | docs/design-system/ | Documentação de componentes, props e exemplos | | Design System (visual) | Rota /ds no app | Documentação interativa |


Cross-Project: Projeto Admin (DS + Lib)

Para consultar componentes, props, tipos, exemplos e implementação: use cross-project (@Admin).

| O que procurar | Caminho no Admin | |----------------|------------------| | Código-fonte dos componentes UI | lib/components/ui/ | | Sistema CRUD | lib/crud/ | | Barrel exports (lista completa) | lib/exports/ui.ts, lib/exports/index.ts | | Documentação MD do Design System | docs/design-system/ | | Docs interativos (código-fonte) | src/design-system/docs/ | | Hooks compartilhados | lib/hooks/ | | Providers (CoreProviders) | lib/providers/ | | Serviços (Base, Email, Error) | lib/services/ | | Config Vite/Tailwind | lib/vite/, lib/tailwind/ | | Prompt template | docs/PROMPT_TEMPLATE.md | | Project Knowledge template | docs/PROJECT_KNOWLEDGE_TEMPLATE.md | | Starter template | docs/STARTER_TEMPLATE.md | | Prompt de auditoria | docs/AUDIT_PROMPT.md | | Golden snippets | docs/design-system/examples.md |


Instrução para IA

QUANDO criar ou modificar qualquer arquivo .tsx com JSX:

  • SE contém tabela, listagem ou CRUD → LER @Admin docs/design-system/crud.md e @Admin docs/design-system/tables-grids.md ANTES
  • SE contém formulário, input ou campo → LER @Admin docs/design-system/inputs.md e @Admin docs/design-system/selectors.md ANTES
  • SE contém modal ou confirmação → LER @Admin docs/design-system/dialogs.md ANTES
  • SE contém botões ou ações de linha → LER @Admin docs/design-system/buttons-actions.md ANTES
  • SE é estrutura de página/layout → LER @Admin docs/design-system/layout.md ANTES

SEMPRE consultar @Admin docs/design-system/examples.md como referência de implementação.

VALIDAÇÃO pós-geração: Todo import de componente visual DEVE vir de ei-core. Se criou componente local que existe na lib, refatore imediatamente.