Giter Site home page Giter Site logo

lemonyte / wastebin Goto Github PK

View Code? Open in Web Editor NEW
24.0 1.0 5.0 183 KB

Simple pastebin service on Deta.

Home Page: https://wastebin.deta.dev/doc/readme.md

License: MIT License

Python 31.98% CSS 5.50% JavaScript 37.13% HTML 25.39%
css deta fastapi html javascript pastebin python w3css deta-space

wastebin's Introduction

Wastebin

Welcome to Wastebin, a simple, minimal pastebin service.

Note: this app will probably stop receiving updates for the foreseeable future. If I decide to pursue this project further, I will probably just start from scratch using another tech stack due to some technical limitations and difficulties in Python & Jinja2.

Demo

A public demo is available here.

You can view the source code of the app in the app itself, for example https://wastebin.deta.dev/doc/main.py.

Installation

Install your own instance of Wastebin on Deta Space by clicking the button below.

Install on Space

Why is it called Wastebin?

Because "w" was the only letter left that worked with "-astebin" and wasn't already used.

Planned features

  • Passwords for documents
  • Uploading folders or multiple files at once

Known issues

  • Ephemeral documents are the source of many problems and edge cases
  • Loading a document requires JavaScript, this was done to avoid making two requests to the server fetching the document

Privacy

When you install your own copy of Wastebin, all the data is stored in your own Deta Space. This means that you have full control over your data, and can delete it at any time.

License

MIT License

wastebin's People

Contributors

lemonyte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

wastebin's Issues

Highlight pastes at view time instead of at save time

Currently, saved pastes get highlighted when they are saved, and the generated HTML is saved in the database as metadata. This was done to avoid going over the 10-second request timeout limit on the hosting provider, https://deta.sh, as well as speed up page load times for viewing pastes. This comes with the tradeoff that pastes can only be highlighted once, and cannot be re-highlighted using a different language (for example, by adding a file extension to the URL), and content fetched from external sources cannot be highlighted (this would be useful to fetch raw content from GitHub and highlight it). The ideal solution would be to somehow optimize paste highlighting, which uses the Pygments package.

Possible to create pastes without loging in?

I realised I can only create new pastes if I login through Deta, so I was wondering if an option to turn this off could be added so that anyone who opens my Wastebin can create their own pastes?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.