TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: A simple Pastebin Clone using Deno

58 点作者 JLCarveth超过 1 年前
This is a simple Pastebin clone I made using the Deno Typescript runtime.<p>I created a simple templating system, and implemented server-side rendering for the UI.<p>Demo: <a href="https:&#x2F;&#x2F;paste.jlcarveth.dev&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;paste.jlcarveth.dev&#x2F;</a>

3 条评论

fiddlerwoaroof超过 1 年前
I was looking around for a pastebin a while back, and I realized that a self-hosted pastebin is way too much overhead for a simple problem: easily serving possibly-highlighted rich text to people. I already have an editor I like for _writing_, so the problem becomes a matter of hooking into the editor’s syntax highlighting to generate equivalent JavaScript. A quick htmlize + tramp hack later, I could serve my current emacs buffer with the world:<p><a href="https:&#x2F;&#x2F;fwoar.co&#x2F;pastebin&#x2F;3daaf7ce49ca221702c70b0d10ac5caec8962b78.el*.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;fwoar.co&#x2F;pastebin&#x2F;3daaf7ce49ca221702c70b0d10ac5caec8...</a>
评论 #37800700 未加载
juliend2超过 1 年前
After reading &quot;A love letter to Deno&quot;[1] I think I might actually start installing deno apps like this one on my home server.<p>Not only because they would be more secure by default, but also because Deno apps don&#x27;t seem to need&#x2F;want to be dockerized. Which means less overhead.<p>Not sure if it&#x27;s a cultural thing or just some features of Deno that make Docker less necessary.<p>[1] <a href="https:&#x2F;&#x2F;matklad.github.io&#x2F;2023&#x2F;02&#x2F;12&#x2F;a-love-letter-to-deno.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;matklad.github.io&#x2F;2023&#x2F;02&#x2F;12&#x2F;a-love-letter-to-deno.h...</a>
评论 #37797329 未加载
jokethrowaway超过 1 年前
Nice and clean!<p>I feel like the biggest issues with pastebins are:<p>- Data is known by the provider - Not enough economic incentive to keep the pastebin running for a long time (you still need pocket money and some maintenance to keep it running)
评论 #37797882 未加载
评论 #37798884 未加载
评论 #37798388 未加载