@suman-jangili/secure-web-product
v0.1.1
Published
A privacy‑first audit‑logging solution (maintains product management artifacts, encryption, Netlify serverless function that writes to an immutable log.)
Readme
Secure Web Product Starter Kit
A privacy‑first audit‑logging solution that also serves as a product‑management hub.
It ships a minimal Vite + React front‑end, a Netlify serverless function for immutable logs, and a set of documentation artefacts (roadmap, regulatory matrix, stakeholder map).
Features
- Docs – Version‑controlled product‑management artefacts (
docs/). - Privacy‑first UX – All data encrypted client‑side; no telemetry collected.
- Transparent Architecture – Front‑end talks only to a Netlify serverless function that writes to an immutable log.
- Minimal Vite‑React UI – Demonstrates privacy‑first components, client‑side cryptography, and audit‑log integration.
Installation
Add the package to any Node project from npm:
npm install @suman-jangili/secure-web-productOR using the shorthand
npm i @suman-jangili/secure-web-productNote: The package publishes its TypeScript declaration files (.d.ts) automatically, so consumers get full type safety out of the box.*
Development
If you want to work on the source code itself:
- Clone the repository:
git clone https://github.com/sumanjangili/secure-web-product.git - Navigate to the project directory:
cd secure-web-product/frontend - Install front‑end dependencies:
npm ci - Run the front‑end development server (Vite):
npm run dev # → http://localhost:5173
SCRIPTS
SCRIPT DESCRIPTION
- dev Starts the Vite dev server (localhost:5173).
- build Produces a production bundle in dist/.
- lint Runs ESLint over the codebase.
- type-check Executes tsc --noEmit to verify TypeScript types.
- test Runs Vitest unit tests.
- generate-docs Generates markdown docs from source (see scripts/).
Building & Publishing
When you’re ready to release a new version to npm:
- Bump the version (patch/minor/major):
npm version patch - Build the production assets:
npm run build - Publish the package (public access):
npm publish --access public
The npm version command automatically creates a Git tag, updates package.json, and commits the change.
Contributing
We welcome contributions! Please follow these steps:
- Fork the repository.
- Create a feature branch:
git checkout -b feat/awesome-feature - Implement your change.
- Run the test suite and linting:
npm test && npm run lint - Ensure TypeScript compiles without errors:
npm run type-check - Open a Pull Request against the main branch.
Guidelines
- Keep the public API stable.
- Add documentation for any new endpoints or UI components.
- Update the changelog (CHANGELOG.md) with a concise entry.
License
MIT © Suman Jangili. See the LICENSE file for full terms.
