https://github.com/raisiqueira/secure-nextjs-app
Demo of a secure Next.js application
https://github.com/raisiqueira/secure-nextjs-app
frontend-security nextjs nextjs14 security
Last synced: 4 months ago
JSON representation
Demo of a secure Next.js application
- Host: GitHub
- URL: https://github.com/raisiqueira/secure-nextjs-app
- Owner: raisiqueira
- Created: 2024-09-01T16:28:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-11T00:14:12.000Z (over 1 year ago)
- Last Synced: 2025-10-14T22:13:57.803Z (8 months ago)
- Topics: frontend-security, nextjs, nextjs14, security
- Language: TypeScript
- Homepage:
- Size: 206 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Secure Next.js Playground
This is a playground for testing and learning about secure actions in Next.js. It is built with Next.js, Next Safe Action.
## Getting Started
First, install dependencies:
```bash
pnpm install
```
Then, run the development server:
```bash
pnpm dev
```
## Features examples
- [Edge CSRF Protection](./app/(examples)/csrf/page.tsx)
- [Stateful Next Safe Actions](./app/(examples)/task-stateful/page.tsx)
- [Stateless Next Safe Actions](./app/(examples)/task-stateless/page.tsx)
### Packages
- [`next-safe-action`](https://github.com/next-safe-action/next-safe-action)
- [`@edge-csrf/nextjs`](https://github.com/kubetail-org/edge-csrf)
## License
MIT @ [Rai Siqueira](https://github.com/raisiqueira)