Skip to content

npm library for cards generation #16

@marcalexiei

Description

@marcalexiei

Creating an npm organization

If we decide to publish a package for rendering cards, I suggest creating an npm organization so that all related packages can live under a shared scope (e.g. @github-stats).
This would simplify ownership, improve discoverability, and support future expansion.

cards package

As an initial step, we could introduce a cards package that exports a render function for each supported card:

import { renderStatsCard, renderPinCard } from '@github-stats/cards';

The repository already contains both backend and frontend directories. Given the likelihood of additional packages,
it may be beneficial to convert the repository into a monorepo to better structure and isolate individual modules.

To keep this issue focused, I will open a separate discussion around adopting a monorepo.
This issue can remain scoped to the API design of the potential npm package(s).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions