This is a project similar to Github Gists, Hastebin and Pastebin created using SvelteKit.
- Create A Paste
- View A Paste
- View A Paste As Raw (Plain Text)
- Copy A Paste
- Duplicate & Edit Existing Pastes
- Paste View Count
- Language Support (Syntax Highlighting)
- Latest Pastes Page
- Paste Visibility (Public/Private)
-
media uploads
-
Allow pastes to be password protected
-
Allow pastes to have timer to delete after a certain amount of time
-
Allowing pastes to be viewed once before being deleted
-
og:image for sharing on social media
- Do I want accounts?
- Do I want to allow users to edit their pastes?
- Do I want to allow users to delete their pastes?
- Do I want to allow users to edit their pastes?
- Possibly allow user to choose slug length / custom slug
- View count logic is probably wrong, do research
- No rate limiting
- Prisma apparently uses prepared statements, but I'm not sure if that's enough to prevent SQL injection attacks
- To improve perceived performance, move the loading of paste data to an onMount function and show skeleton cards to indicate loading
- Look at TODO comments
- Think more about og:images
- Might not be feasible trying to pull data from db on the fly