DOCUMENTATION
Project Structure
A standard Nalth project looks very similar to a Vite project, keeping things familiar while adding power where needed.
plaintext
my-secure-app/
├── public/ # Static assets
├── src/
│ ├── components/ # React/Vue/Svelte components
│ ├── lib/ # Utilities
│ ├── main.tsx # Entry point
│ └── vite-env.d.ts # Types
├── index.html # Entry HTML
├── package.json # Dependencies
├── tsconfig.json # TypeScript config
└── nalth.config.ts # Optional security configKey Files:
- nalth.config.ts: The only new configuration file you might need. It fully supports all Vite config options plus Nalth-specific security settings.
- index.html: Your entry point. Nalth automatically injects CSP nonces and SRI hashes here during build.