Skip to content

Waaiez/pasterr

Repository files navigation

Pasterr

This is a project similar to Github Gists, Hastebin and Pastebin created using SvelteKit.

Technologies used:

SvelteKit Svelte Skeleton.dev TailwindCSS Vercel Prisma CockroachLabs

Features:

  • 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)

Future Plans:

  • 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

Things to think about:

  • Do I want accounts?
    • Do I want to allow users to edit their pastes?
      • Do I want to allow users to delete their pastes?
  • Possibly allow user to choose slug length / custom slug
  • View count logic is probably wrong, do research

Considerations:

  • 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

TODO:

  • Look at TODO comments
  • Think more about og:images
    • Might not be feasible trying to pull data from db on the fly

Attribution:

Favicon is using the Paste icon by Icons8

About

Quickly share your Pastes with Pasterr

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published