mayocream / pastebin-ipfs Goto Github PK
View Code? Open in Web Editor NEW🌐 (Web 3.0) Pastebin built on IPFS, securely served by Distributed Web and Edge Network.
Home Page: https://paste.shoujo.io
License: MIT License
🌐 (Web 3.0) Pastebin built on IPFS, securely served by Distributed Web and Edge Network.
Home Page: https://paste.shoujo.io
License: MIT License
Render markdown files end with '.md'
This project can be redone server less if user has local ipfs node allowing writes. I haven’t tried: if you will write using ipfs gateway API ( not directed to local host but to remote server) browser plug-in might intercept it and redirect to local node.
https://paste.shoujo.io/gallery
I think this is supposed to not only display the word gallery.
Great app will try it out.
In __metadata.json you have size 0, not actual size
{"name":"plain.txt","mime_type":"text/plain","size":0}]}
TODO: AES decrypt
Some IPFS Gateway might not work, better way sending concurrent requests to different gateways, and take the first good response.
I'd like using Promise.any
API to arhive it. (o゚▽゚)
ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/any
Idk
Frontend can be served by cloudflare pages as SPA.
@Map1en src
文件夹里,pages
里面每个单页都一个文件夹,单独一个空的 index.ts
,这样没有必要吧,能精简成单文件么。
route
单独一个文件夹也有点多余。
Share link with the secret in the URL fragment.
pastebin-ipfs/src/pages/Publish.tsx
Lines 84 to 89 in 569b7d3
TODO
comment in 569b7d3. It's been assigned to @mayocream because they committed the code.You need to put and load raw data at /ipfs/CID path at your server so it can be picked up by IPFS browser plugin and replicated to local node.
API defined with OpenAPI v3.
YAML: https://github.com/mayocream/pastebin-ipfs/blob/main/docs/api/v0.yaml
Usage:
copy-and-paste content of YAML to
https://editor.swagger.io/
TODO:
Q:
Thumbs up, really like the project.
I have questions, i'm new to ipfs so wanted to understand how all of this works.
So if i make a paste on your platform, where does that text gets stored, because there is no one who have visited that paste hash by now, so its probably getting stored on only my node & if i turn off my computer will it be lost? or you are using some sort of pinning service for this.
Maybe i'm missing something here.
A:
How it works:
Your paste text is created, and then gets stored on an IPFS node (IPFS daemon running with the pastetbin-ipfs server), and the object gets pinned by default on the local node.
It's "possible" that your paste data is lost if the IPFS node is down and no other nodes having a duplicate copy of the object. :<
CDN and multiple public IPFS gateways help to deliver IPFS objects faster through HTTP protocol and cache on edge networks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.