Skip to content

AlasDiablo/Paste

Repository files navigation

An url powered paste app

What is that ?

This app store the text right here into the page url (no data is store server side)

Software and library use to make this app:

  • Node.js, Js engine use for the server and the development of this project.
  • Ace, Web code editor.
  • Bootstrap, Css library.
  • Vite, Front-end development kit.
  • LZ-String, LZ compression algorithm use to encode data.
  • ESLint, Code quality checking.
  • Fira Code, Monospace font use in the code editor with ligatures related to programming and math.
  • Xolonium, Font use for the nav bar.
  • Express, Storage server api.
  • jQuery, Ajax communication to a storage server api.
  • better-sqlite3, Database use to store paste.

Want more functionality or juste report issues ?

How to setup a storage server ?

  1. Install NodeJS 16.17.0 LTS.
  2. Clone or download the official GitHub repository
  3. Run npm intall in the cloned repository to install dependencies.
  4. Run npm run server in the cloned repository to start the storage server.
  5. Get your server ip and use it on the application.

Default Server options:

{
  "serverPort": 3001, // server port
  "maxPasteSize": 8000, // Size of the paste in char (bytes)
  "daysBetweenRemoval": 1, // Time in day between each database check
  "pasteDuration": 1, // Duration of a paste in month
  "userQuotaByMonth": 10, // Number of paste generated by an ip in a month
  "useHttps": true // Use https (certificat need to be in the same folder)
}

Changelog

  • 2.2.0
    • Update project dependencies
      • Client
        • Ace from 1.8.1 to 1.16.0
        • JQuery from 3.6.1 to 3.6.4
        • lz-string from 1.4.4 to 1.5.0
      • Server
        • better-sqlite3 from 7.6.2 to 8.2.0
        • body-parser from 1.20.0 to 1.20.2
        • express from 4.18.1 to 4.18.2
      • Development
        • @types/lz-string from 1.3.34 to 1.5.0
        • eslint from 8.22.0 to 8.36.0
        • eslint-plugin-import from 2.26.0 to 2.27.5
        • vite from 2.9.15 to 4.2.1
  • 2.1.0
    • Use GitHub Actions to deploy the application
    • Add a link to the repository
    • Add a link to the documentation
  • 2.0.3
    • Fix typo
  • 2.0.2
    • Fix server issues with quota calculation
  • 2.0.1
    • Enforce https
  • 2.0.0
    • Add server application to store paste
    • Add client server share option
  • 1.1.0
    • Add file loading option
    • Bad url give the value of the landing page
    • New open source ! (MIT)
  • 1.0.1
    • Fix syntax selector when opening a url with data
    • Add a link on the title to go on the landing page
  • 1.0.0
    • Initial version