Beautiful pdf components, built on Takumi and Forme. 100% Free, Zero config, one command setup.
docs: add CONTRIBUTING.md and SECURITY.md, update README with community and contribution guidelines
Aniket-50848add4c1b41b
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.ymlnew file mode 100644index 0000000..fabb73a--- /dev/null+++ b/.github/ISSUE_TEMPLATE/bug_report.yml@@ -0,0 +1,92 @@+name: Bug report+description: Report a reproducible bug in pdfcn.+labels: ["bug"]+body:+ - type: markdown+ attributes:+ value: |+ Thanks for taking the time to file a bug report. Before opening a new issue:++ - [Search existing issues](https://github.com/shadcn-labs/pdfcn/issues) and upvote instead of duplicating — it gets bugs fixed faster.+ - Verify the bug still reproduces on the **latest** pdfcn release; it may already be fixed.+ - For questions or help with your own project, use [Discussions](https://github.com/shadcn-labs/pdfcn/discussions) instead.+ - type: input+ id: reproduction+ attributes:+ label: Link to a minimal reproduction+ description: |+ A link to a **public** GitHub repository that reproduces the issue. Include **only** the changes that contribute to the bug — no unrelated tools, connections, or app code.++ A minimal reproduction is the single most useful thing you can give us. **Issues without a valid reproduction link may be closed as not actionable.**+ placeholder: "https://github.com/user/my-pdfcn-bug-reproduction"+ validations:+ required: true+ - type: textarea+ id: steps+ attributes:+ label: Steps to reproduce+ description: A step-by-step description of how to trigger the bug using the linked reproduction.+ placeholder: |+ 1. Clone the reproduction repo+ 2. Run `pnpm install && pnpm dev`+ 3. Navigate to the affected page+ 4. See error+ validations:+ required: true+ - type: textarea+ id: behavior+ attributes:+ label: Current vs. expected behavior+ description: What happens today (including exact error output), and what you expected to happen instead.+ placeholder: "Following the steps above, I expected A, but observed B instead."+ validations:+ required: true+ - type: input+ id: pdfcn-version+ attributes:+ label: pdfcn version+ description: The exact version from your lockfile (`npm ls pdfcn` or check `package.json`), not a semver range.+ placeholder: "[email protected]"+ validations:+ required: true+ - type: textarea+ id: environment+ attributes:+ label: Environment+ description: |+ Your OS, Node.js version (`node --version`), and package manager.+ render: shell+ placeholder: |+ OS: macOS 15.5 (arm64)+ Node: v24.1.0+ Package manager: [email protected]+ validations:+ required: true+ - type: dropdown+ id: stage+ attributes:+ label: Where does the bug occur?+ multiple: true+ options:+ - Local dev (`pnpm dev`)+ - Build (`pnpm build`)+ - Production (`pnpm start` / deployed)+ - Other+ validations:+ required: true+ - type: textarea+ id: logs+ attributes:+ label: Build and runtime logs+ description: |+ Paste the relevant build output and runtime logs around the failure.+ render: shell+ validations:+ required: false+ - type: textarea+ id: context+ attributes:+ label: Additional context+ description: Anything else that might help — deployment platform, whether it reproduces locally vs. deployed only, the first version where you noticed the regression, etc.+ validations:+ required: falsediff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.ymlnew file mode 100644index 0000000..01668d7--- /dev/null+++ b/.github/ISSUE_TEMPLATE/config.yml@@ -0,0 +1,8 @@+blank_issues_enabled: false+contact_links:+ - name: Question / discussion+ url: https://github.com/shadcn-labs/pdfcn/discussions+ about: Ask questions and discuss ideas with the community.+ - name: Discord+ url: https://discord.gg/N6G36KhYK4+ about: Chat with the community on Discord.diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.ymlnew file mode 100644index 0000000..29df9ae--- /dev/null+++ b/.github/ISSUE_TEMPLATE/feature_request.yml@@ -0,0 +1,25 @@+name: Feature request+description: Suggest an idea or improvement for pdfcn.+labels: ["enhancement"]+body:+ - type: textarea+ id: problem+ attributes:+ label: What problem are you trying to solve?+ description: A clear description of the use case or pain point. Why does the current behavior fall short?+ validations:+ required: true+ - type: textarea+ id: solution+ attributes:+ label: Proposed solution+ description: What would you like to see? Include API sketches or examples if you have them.+ validations:+ required: true+ - type: textarea+ id: alternatives+ attributes:+ label: Alternatives considered+ description: Any workarounds or alternative designs you've considered.+ validations:+ required: falsediff --git a/.github/dco.yml b/.github/dco.ymlnew file mode 100644index 0000000..16b5435--- /dev/null+++ b/.github/dco.yml@@ -0,0 +1,4 @@+require:+ members: true+allowRemediationCommits:+ individual: truediff --git a/.github/pull_request_template.md b/.github/pull_request_template.mdnew file mode 100644index 0000000..d37c9f7--- /dev/null+++ b/.github/pull_request_template.md@@ -0,0 +1,22 @@+### Summary++<!--+Link the issue where this change was discussed (for example, "Closes #123" or+"Related to #123"). Explain the concrete problem and solution, then summarize+meaningful behavior or decisions — not changed files or commits. Call out breaking+changes, preserved behavior, scope boundaries, or stacked PRs when relevant.+-->++### Validation++<!--+List the exact commands you ran and useful manual coverage. Include relevant+results or limitations. Explain when tests are not applicable.+-->++### Checklist++- [ ] I linked an issue with prior discussion confirming this change is wanted+- [ ] I ran the relevant checks from [CONTRIBUTING.md](../CONTRIBUTING.md)+- [ ] I added tests and documentation where relevant+- [ ] I ran `pnpm check` and `pnpm typecheck` successfullydiff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdnew file mode 100644index 0000000..eef9e93--- /dev/null+++ b/CONTRIBUTING.md@@ -0,0 +1,109 @@+# Contributing to pdfcn++Thanks for your interest in contributing! This guide covers everything you need to get the repo running locally and land a change.++## Prerequisites++- **Node.js 20+**+- **pnpm** — version pinned in [`package.json`](./package.json)++## Getting started++```bash+git clone https://github.com/shadcn-labs/pdfcn.git+cd pdfcn+pnpm install+```++## Development++```bash+pnpm dev+```++This starts the Next.js dev server with the documentation site at [http://localhost:3000](http://localhost:3000).++## Building++```bash+pnpm build+```++This builds the shadcn registry first, then the Next.js app.++## Testing++```bash+pnpm typecheck # TypeScript type checking+```++## Linting and formatting++```bash+pnpm check # lint and format check (ultracite)+pnpm fix # auto-fix lint and format issues+```++All of these run in CI, so running them locally before pushing saves a round trip.++A pre-commit hook via [lefthook](https://github.com/evilmartians/lefthook) automatically runs `pnpm fix` on staged files.++## Before opening a pull request++Every pull request must be tied to an issue. Before opening a PR, search the existing issues, discussions, and pull requests so you do not duplicate active work. If there is no existing issue, open one with the relevant template and describe the problem, use case, or bug reproduction.++For non-trivial changes, wait for discussion on the issue before investing in the implementation. The goal is to agree that the problem is real and that the proposed direction fits pdfcn before review shifts to code.++To avoid PRs that are unlikely to be reviewed or merged:++- Do not send broad rewrites, style-only churn, or formatting-only changes unless a maintainer asked for them.+- Do not bundle unrelated fixes or refactors into one PR. Split them so each PR has one reviewable purpose.+- Do not change public behavior based only on a hypothetical use case. Include a concrete user story, reproduction, or test that shows the need.+- Do not claim an issue silently. Comment before starting work, and check the thread first in case someone else is already working on it.++## Submitting a pull request++1. Fork the repo and create a branch from `main`.+2. Link the issue where the change was discussed and agreed on.+3. Make your change, including tests and docs where relevant.+4. Sign off every commit with `git commit -s`.+5. Make sure `pnpm check` and `pnpm typecheck` pass.+6. Open the PR with a clear description of the problem and solution.++## Developer Certificate of Origin (DCO)++All contributions are made under the [Developer Certificate of Origin](https://developercertificate.org/). Every commit must include a `Signed-off-by` line matching the commit author's name and email:++```text+Signed-off-by: Jane Doe <[email protected]>+```++Add it automatically with:++```bash+git commit -s -m "your commit message"+```++If you forget, amend the last commit:++```bash+git commit --amend -s --no-edit+```++To sign off a series of commits, rebase with `--signoff`:++```bash+git rebase --signoff main+```++## Reporting bugs and requesting features++Please use the [issue templates](https://github.com/shadcn-labs/pdfcn/issues/new/choose). For security issues, **do not open a public issue** — follow [SECURITY.md](./SECURITY.md) instead.++## Code of conduct++This project follows the [Code of Conduct](./CODE_OF_CONDUCT.md). By participating, you agree to uphold it.++## License++pdfcn is licensed under the [MIT License](./LICENSE). By contributing, you agree that your contributions will be licensed under that same license (inbound = outbound).diff --git a/README.md b/README.mdindex 93a9853..635f4d2 100644--- a/README.md+++ b/README.md@@ -33,15 +33,17 @@- 🧩 **Composable** — Build documents from focused React components and renderer primitives- 📄 **Components and blocks** — Tables, forms, charts, invoices, reports, and more+## Community++The pdfcn community lives on [GitHub](https://github.com/shadcn-labs/pdfcn), where you can [report bugs, request features, and share ideas](https://github.com/shadcn-labs/pdfcn/issues).+## Contributing-Contributions are welcome! Please feel free to submit a Pull Request.+Contributions are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) to get the repo running locally and land a change, and use[issues](https://github.com/shadcn-labs/pdfcn/issues) and [discussions](https://github.com/shadcn-labs/pdfcn/discussions) to collaborate. By participating, you agree to the [Code of Conduct](./CODE_OF_CONDUCT.md).++## Security-1. Fork the repository-2. Create your feature branch (`git checkout -b feature/amazing-feature`)-3. Commit your changes (`git commit -m 'Add some amazing feature'`)-4. Push to the branch (`git push origin feature/amazing-feature`)-5. Open a Pull Request+Please do not open public issues for security vulnerabilities. Follow [SECURITY.md](./SECURITY.md) and report them privately through GitHub Security Advisories.## Licensediff --git a/SECURITY.md b/SECURITY.mdnew file mode 100644index 0000000..1ce2563--- /dev/null+++ b/SECURITY.md@@ -0,0 +1,9 @@+# Security Policy++## Reporting a Vulnerability++If you believe you have found a security vulnerability, please let us know right away.++We will investigate legitimate reports and do our best to fix confirmed problems quickly.++Report vulnerabilities privately through [GitHub Security Advisories](https://github.com/shadcn-labs/pdfcn/security/advisories/new). Do not open a public issue.