## A markdown-enabled comment engine powered by leveldb
This page is generated using a single leveldb forward-scan via a **materialized view** of the comment heirarchies.
### Instant comments on your site/blog
Put this anywhere in the html body (although it is advisable to put it last)
\```
<div id="comments"></div>
<script>
window.rpc_host = 'https://rpc.dyuproject.com';
window.comments_max_depth = 10; // max: 127
window.comments_collapse_depth = 7; // the depth where comments get collapsed by default
</script>
<script src="https://netlify-comments.dyuproject.com/dist/build.js"></script>
<link rel="stylesheet" href="https://netlify-comments.dyuproject.com/dist/build.css" />
\```
**Note**: Uses the same instance powering the demo. No tracking whatsoever.
1. The [css](dist/build.css) is 6.2kb minified, built with [pavilion](https://github.com/getpavilion/pavilion) core.
2. The [js](dist/build.js) is 79.7kb minified, built with:
- [sveltjs](https://github.com/sveltejs/svelte)
- [showdown](https://github.com/showdownjs/showdown)
- [dompurify](https://github.com/cure53/DOMPurify)
- [string-hash](https://github.com/darkskyapp/string-hash)
- [color-hash](https://github.com/zenozeng/color-hash)
github repo: https://github.com/dyu/comments/
Ah. The content was too large but it didn't reach the @Length(min = 1, max = 2048, msg = "The content is too long") validator.
I need to a better job of communicating the error.
dyu
Woops. Didn't know showdown with GFM would convert @Length to a github user's profile.
To invoke the hive-mind ...
Invoking the feeling ...
ok
ok
mind-blown
cool!
Nick
Test
Chris
Why just static sites?
dyu
Actually, any site is supported.
It's just happens to be the title on the submission posted (since it is a common need for those usecases).
The word static can't be seen anywhere in the first comment (you were the first to bring it up)
dyu
A markdown-enabled comment engine powered by leveldb
This page is generated using a single leveldb forward-scan via a materialized view of the comment heirarchies.
Instant comments on your site/blog
Put this anywhere in the html body (although it is advisable to put it last)
Note: Uses the same instance powering the demo. No tracking whatsoever.
github repo: https://github.com/dyu/comments/
md-source
Test
discussion
At lobste.rs
meh
Interesting. Very interesting!
485
95
name!!!
XYU
test
test
sdfsdf
fdgdfg
zia
zia
v
zia
zia
zia
zia
zia
r
r
cvx
cvx
yo
quionda
dfgdfg
fdgfdg
lol
lol
a
adasdas
hjk
asdasd
pedro
wow
Super George
Too much?
Super George
What about Privacy?
Same Super
zia
zia
hello
cool
google
https://www.google.com
aa
aa
sdfs
sdfsdfsdfsdf
NAME!!!
hey, that's big!
dd
hh
Desi Girlfriend Leaked XXX!
https://www.redgifs.com/users/fluffy_mangoes
tt
46546
sdee
treallr
dsadwq
dsada
rkrk
xdrtherttzrjk
rtkrk
rkkurku
Fffgg
Ggggg
Ghuj
Ggtdd
sdee
Test
cxvxc
vcxc
Anonymous
Great
Kirdik
Ababagalamaga
dffda
sajmp
asdfgasdgdfg
dfgsdasg
Ss
Zc
flea
well, kinda interesting...
xzcvxasdsa
asdfsdxc
p
Ok
aaa
test
9iup9
][\
aefaef
aef
Tester
fdssdsfdsfdsfds
sa
sa
sd
sd
sd
sad
adsadsa
Bravo
Hello
Phillip Mason
yo
Philllip Mason
yoyo
frf
ffff
sdfsf
dfgdfg
lol
Yum
Yum pusy
vukas
bnvb
smooke
hello
ce
lol
j
b
bvn
v
vcbvcbcvb
cvvbc
fghfghfgh
dfhfhfghfghfghfghfghfghfg
Louis
dfgd
hhhhh
ggg
Hi
Hi
hhhhh
ggg
Q
Q
Yoyo
Test 4
Mark
Test
dwqqqq
dw
RussellJ
how does this work?
mvnvm
,mnm,nm,nm,
Bob Geldoff
Gavin loves bum!
Gavin
Sure
dd
hmm
Anon
Test
Main Tester
A reply to test
KJ
hmmm
dc
stuff goes here
apoofad
me
good
jj
jhkh
m
mm
sssss
ddddd
BOMB
ALLAHU SHITBAR
GG of f
C Fu yfg
hi
hi
bob
lol
sdfsdf
sdfsdf
im fucked
i like you
myname
my test
ertetert
tttert
sa
sadsd
sdfsdf
dsfsfdf
hagit
xx
md1337
mayday
Gamma
Some know the truth
a
a
65
565
cli
really
123
123
??
!?
testers
test
apoorva
dawdawd
faefafa
eaf
ddd
ddd
hjghgjh jh jg jh
hgjhgj
Mermaid
just a quick test.
A simple heading
This is a link.
So
what
Apache
It works
dgfdgfd
fgbhfdf
fdgfdgdf
fgdfg
ghfghfg
tgfhfghf
hfghfgh
fghfgfghf
sfasf
asdasd
BOMB
ALLAHU SHITBAR
hi
hi
Me and only me
Quite good, wondering if a rating system could be enabled(stars)
efedf
frrewrfewf
sdfbsdfb
sdfbsdfb
retard
ur gaye
test
test
du
ca;lms
sebastián
lindos colores
hi
hi
asds
asddadasd
csac
xsXC
evt
Looking good
test
this is interesting...
hahaha
Test again
asd
Test
sad
assd
kupa
random
test bro
aaa
mbb,
LOBSTR
imma lobster
asf
afs
jjj
jjj
j
h
kj
good
TheySaidOhLordJesusIt'sOnFire
Jesus loves you.
god
ya right
satan
where's the party at
test
good DX
G
G
test
test
me
ok
foobar
\aaaaaaa\aaaaaa\aaaaaaaaaaaaaaaaa\aaaaaaaaaaaaaaaaaa\aaaaaaaa\aaa\\\\aaaaaaaaaaaa\aaaaaaaaaaa\aaaaaaaaaaa
test
\\bbbbbb\\bbbbbbbbbbb\\bbbbbbbbbbbbbb\\bbbbbbbb
me
neat
Casey Ryback
Test!
Q
Yyrur
Ujs
Jjsjs
Marvin
this is a test
Cool
:D Test
:D
георгий
круто
ggg
gggg
5895
5
dsa
dsadsaa
xD
waazzzzup
z
aa
haha
haha
omer
hello world :)
craig
Header1
tel me it ain't so
Batman
Thing
Super George
The Thing
dfgd
cvbcvb
a
hi
asdasdasd ad ada
asd ad a
Growlerson
Meow
0hl1
Wow i like this, Thanks for this!
0hl1
Hello weirdos
..even the markdown preview works
Some list:
xxxx
Very good.
af
AFASF
test
test
A Person
Test Comment
This may or may not work and there could be
some code
.1
11
a
test
fy
frf
justin
hello
antD
NICE
halaroo
heloo
Desi Hot Girlfriend Exposed!
https://www.redgifs.com/users/fluffy_mangoes
xxx
via RedGIFs
Bangladeshi Hot Girlfriend Leaked!
https://www.redgifs.com/users/fluffy_mangoes
Hot Bangladeshi Girlfriend Leaked!
https://www.redgifs.com/users/fluffy_mangoes
Bangladeshi Girlfriend showing Hot Pussy
https://www.redgifs.com/users/fluffy_mangoes
Bangladeshi Secret Slutty Girlfriend!!
https://www.redgifs.com/users/fluffy_mangoes
gf
ggg
asd
pull up
sfb
test
f
afaefeaf
fghf
fghf
sss
sssss
sss
sss
ghfghfghfgh
dtytrysrty
99
9999
bar
foo
hf
fxzbfsg
Hello
This is a Test
Manam
This is a test to be used in Hugo.
این یک تست است برای نامزدی در هیوگو
Unfortunately this does not have support for RTL languages such as Persian, Hebrew, etc :(
Kk
K
ss
err
Manam
Will you add auto-detection support for RTL languages?
dyu
I'll add that to the roadmap! Haven't done that before so I'll have to do some research.
If you'd like to help, I'd get glad to accept PRs
ok
ok....
jews
fart
phyrt
no you fart
jews
no, jews fart
Лл
Оог
test
test
Wally
HELLO
HELLO
HELLO
HELLO
Tester
Test
HTML
Tester2
Script
william
呵呵
49
4949
Test
ing
jojo
testujem
flyingfisch
test
Just Someone.
How does this look?
#wow, headings!
Pi
You have to put a space
"# wow headings"
wow headings!
#wow
#wow, headings!!!
wow
(you don't have to!)
Dan
This is a test of the emergency broadcast system
fdsfdsf
lol
Dan
this is a test
fooest of bars
Attempting to paste the entire contents of Ulysses by James Joyce results in:
dyu
Can you post the url where I can the contents are available?
barest of foos
https://www.gutenberg.org/files/4300/4300-h/4300-h.htm
dyu
thanks!
fooest of bars
Input: Contents of the US Constitution
Output:
dyu
Ah. The content was too large but it didn't reach the @Length(min = 1, max = 2048, msg = "The content is too long") validator.
I need to a better job of communicating the error.
dyu
Woops. Didn't know showdown with GFM would convert
@Length
to a github user's profile.fooest of bars
Input: Bee Movie Script
Output:
Well uh, nice
dyu
Yeah I've limited the comment body to 2048 at the moment.
I'm not sure what the optimal number is. Any suggestions?
fooest of bars
2048 sounds reasonable to me: user configurable is even better IMO.
dyu
Are you planning to self-host?
The configuration could be done via jvm flags.
-Dcomments.max_content_size=4096
fooest of bars
I was just spitballing; it seems like something that a user might want to configure (i.e. if I want Twitter sized comments versus long form).
dyu
I've just added this functionality.
phyrt
Xablau
heyo
Dorothy
Gone with the wind
sackgsicht
Bdndbdbd
fooest of bars
fooest of bars
Hey where'd my content go :'(
dyu
Likely stripped by dompurify
br
#hi
ss
hi
br
header 1
header 2
** Item 1.1
header 3
me
blob
gdfgdfg
A markdown-enabled comment engine powered by leveldb
This page is generated using a single leveldb forward-scan via a materialized view of the comment heirarchies.
Instant comments on your site/blog
Put this anywhere in the html body (although it is advisable to put it last)
Bangladeshi GF Leaked Nude XXX!
https://www.redgifs.com/users/fluffy_mangoes
Bangladeshi GF Leaked Nude XXX!
https://www.redgifs.com/users/fluffy_mangoes
31337
'test' "test" \"test\" \'test\' ?test? '; "; \; \\
hax0r
\\ ???
no thanks.
3 \ characters is shown as 2 \ characters.
i can't use a library or service that corrupts data. pass.
asdf
junk
HTML tags are stripped rather than encoded? tag content is deleted? why?
this service is junk. surely no one would ever talk about HTML in a comment.
dyu
It is most likely the js sanitizer I'm using (dompurify) that stripped the data.
Any recommendations on other libs to test against?
zzzzzzzzzzzzz
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Testing an alternative
<div><em>test inline code</em></div>
Z͙̮ͦ̋̍ͯ̇̄̌̏ͅA̶̼̔̀͢L̒ͧ͊͊͊͋͏̖̯͈͈̠͙̺͔̼Ġ͖̞͙̝̰̟ͫͥ̌ͫ̒̀͘ͅO̷̡͓̫̯͙̊ͭ̕!̛̝̜͗́
Ţ̈̏̓͂̾̈́̓̒͠͏͍̮͎͇o̻͔̼͚͚̓ͤͭ̊ͮ̒ ̧̫̹ͪ͢ȉ͖̮͚͉̏̎͛n̻̥̟̥̠̣̋͌ͨͦͭ̏̒̒́v͓̯͙͍̟͈̱ͫ̇͋ơ̧̥͈̞̤̤̬͙ͭ̊̋ͤ͒͛ͅḵ̸̜̹̗̙̟̩̌͆̇̚e͖̲̲͇͛̑́ͭ͡ ̢͈̗̞̜̱̳̻̳̍̓̒̓͠ṯ̞͖̗̃̑͐ͬͧͨͫ̒h̗̖̬͇̩̗͊͂͑͜͞ͅe͔̠̦͚͚̪ͭͨ ̛̟̣̭ͮ̾́̉h̗̙͐ͨ̒ͣͤ́ͥͤ̑͠i͙̲̻̘͈̻ͫ͐̾̌v̯͉̯̥̪̫̪̜ͮ̈́̂̋̇́͌e̸̳͉͂̆͜-̋̊͆̀̌͒ͣ͏̛̩̮͙̹͇̙̝ͅm̹̳̪̳̜̙̲̯͗ͥ͋͒ͮ͐̔̄͝ͅỉ̵̬̹͍̒̐̅̈̃̔̚n͔̦͔̞̰̜̈́̉̍̍ͥ́̈́ͮ̈́dͥ̐ͦ͋ͮͯ͋҉̦̥ ̵̭̹̖͒̓r̛͇̼͙̪̱̖̦̟̰͊ͬ̆̐̌̈̆̚e͋ͥͭ̌̎͏͇͠p̶̥͚̑͆̐͜r̶̩̟ͬͭ̓ͮͨ̐̀e̛̹͇͚̼̩̥͛ͪͮͤ̔s̢̠̯ͮ̔̒̀̕ẹ̹͔͍̳͈͚́ͨ̆̌̽͝͞n̷̷̳̮͇̜͕̟̭ͩ̋̈ͨͅt͚̘̂ͦ̏͂͒̈́ȉ̢̜͇͖͔̲̺̘̠͋̚n̷̡̻̣͙̭͇͓͓̓ͪ̏̏ģ͕̮̫̣̽ͬ̽ ͭ͊̕҉̟̖̫̰͉̝̹c̢̣̊̍̍̄ͩ̋͂̀͡h̛͉̲͍͇ͫ̇ͦ̉ͫͥ̒̒a̢̻̘̲͎͇͔̓̇̈́̿ͧ͝͡o̹̝̙͍ͥͭ͂͋̓͊ͅs͍͍̳̯̉ͮ͠.͆̅ͬ́̍̈́҉̲͍̲͡
̛̣͖͓̹̹̯̞̅ͅI̛̫̳͔ͥ̈ͅṉ̛̪͍̦̯ͭ̏͡v͙̐ͣͫ͠ͅo̥̓̈́͗͂̊k̡̧̻̟̗͈͓̦̲̓̊̇͌͑ͨ̓̃i̻̖̝̠̮̲̦̮̎̔͘ņ͊̂ͭ͏̺̫̳g̡̗̦ͦ̃̚ ͎̣̞͍̬̅̓ͣ̔͌͒͆̕͜t̔҉̠̜̳̼̰̯̬h̃̒̃͋ͮͫ̋́͞͏͇̯̬͉̹̦e̻̥͓̾̃̓ͯ̎̀͜͠ ̵̞̥͕͙̬ͣ͋ͨ̋̊̓f͙̮̱̲̰͋ͤ̎̀ͅȇ̫̯̝̬͍̓̀͝e͖̖͓͚͍͎͕͆͐̎̆ͤ͑̇̉͞ļ̶̘͍̤ͯͨ̐̾̃i̵̧̻͉̱͚͐͂̂̎̾̈́̿̕n̞̝͓͈͍̹̗̽̽̂͜g̨̦̻̫ͨ̃ ͓̻͔̥͓͎̻ͥ̓̌̓ͬͬ̚̕͠o̿ͬ҉͉̜̫̲̦̀͝ͅf̛̲̗̫͎̺̋ͫ ̋͐̋̀͏̞͖͎͓̙̣̱c̸̭͔̰̜̖͈͓̜͐͑ͫ̉̈̄̒ͭ͠h̨̛̜̰͒͗ȧ̭͇̰̱̼̈́͘o̸̡̙̗ͩ́ͫ̊̇͑̀͞s̴͓͉̲̩͓̹͓ͯ͒ͣ̈̉̒͋̊̓.̢̠̣̒͒
̷̙̤̭͕͕͚ͤͣͦ͊ͧ̉̏̃W̍̐̔͏̖͉̟ĭ̴̬̥̺͇̫̀͜ṯ̛͒ͭͭ̌̀̽͒͘ͅh̘̤̪̠̗͇̤͉̜̃̇̇̕͠ ̸̛̞̩̞͈̫̱̞̜̿ͅo̸͈̲͙̔ͭ̈́ͩu̯͇̦̤͔͎͔̳͂ͪ̿ͣ͝t̡̮̹̜̮̟̀͛͋̏̾̒ͧ̓͝ ̨̣̳̓͌͌ͯ̿͊͋ͨ̀̚ô҉̧͍̰̱̙̤̩͉́ͅr̗̺̱̖ͫͯ͌͛̈̑̈́̽̀͢ḓ̼̗̲̱̎̒̇̀ͦ̈̇e͕̤͓̹̮̗̣̓̃̍͒͆̽r̮͕̪̜̄̐̿͟͡.ͬ̓͏̸̳̞̗̖̞̥̦
aa
wat ?
ascii-art?
To invoke the hive-mind ...
Invoking the feeling ...
ok
ok
mind-blown
cool!
Nick
Test
Chris
Why just static sites?
dyu
Actually, any site is supported.
It's just happens to be the title on the submission posted (since it is a common need for those usecases).
The word static can't be seen anywhere in the first comment (you were the first to bring it up)
'; OR 1=1;--
'; OR 1=1;--
simin
ssss
gg
f
Test
This is awesome
zezer
zerrtzr
teste
test
_
_
test
CAT LOVER
I LIKE YOUR CAT
test
a
asdasd
qwe
qwe
cioccio
ciccio
ameba
wowek
donofdons
pass it
testing
Hello
hmm
Really ?
test
let me see - does it work?
maybe
Doobie
Wow.
am
test
asdasda
asdasda
asdf
asdf
Whatev
Test
List
~ #include int main(int argc, char* argv[]) { printf("Hello world!\n"); return 0; }~lolnow
Code blocks?
elloå
yy
titan
asdad
query
1!1
Eidid
Djjdjd
fff
fasdf
trxx
fshyvvs
Hey
Hey
test
testing
testing
rr
hey
79
test
Hola
Hola
Ioji
<s
sadf
sadfasdf
testisonja
kitica testis
asg
aggaaagaga
wut
Lol wut
sad
dsdasda
bijikuda
refresh
yes
chris
test comment
This is a test
=== TEST
This is a test
impshum
One does like MD.
bn
gh
test
play
alert('yo Mama!');
alert('yo Mama!');
alice
wat
Mike
Test
whatchathinking
Oy mate
hhh
hgh
testing the thing
IS this realtime?
dyu
Since the 0.5.x release
anshul
test
anshul
test
anshul
anshul test
ttt
https://www.youtube.com/watch?v=AHE-CbKC8Vc
dsfvsdf
asdfds
fvfv
sdfvsdfv
Tesr
Yedg
hello
hello
opiuioup
iouiouuiouiui
hi
salam
asdasd
sadsad
aaaa
ssss
LA GURU
whoa
test
lol
yo
yo
fd
hello world
titties
are good
chris
yeah lol
humbler
hell yeah
Test
Test it
Hehe
Test it
11
test
Reality is here
FOR REAL this is FOR REAL this is NOT a test, NOT NOT NOT NOT.
11
sadsadsad
sadasdsa
Philllip Mason
chatgptimageprompts.com
Philllip Mason
"http://chatgptimageprompts.com
Philllip Mason
HTTP://chatgptimageprompts.com
my name
test
aaa
sss
New Twitter Test
https://twitter.com/ICondrey/status/890750389385080832
dd
sssss
WhatWhat
What?
haebla
how does it work?
frag
test comment
YEAH
Test
Tp
#Oh
##Hi
###There
####Everyone
WhatWhat
What?What
ff
Hi
444
Hello
Everyone
How
Are
YOU?
:)
#Hello
##World
:)
Hello
hah
Hello World
asd
:robot:
fsfds
:smile:
test
😍
fdgfd
😅
fafas
💛
hdfhd
❤️
fdgdgfd
😀
dsfsdfs
😵
hiuihuihi
😜
WhatWhat
What?
Foo bar baz
Test
WhatWhat
What?
WhatWhat
What?
gg
vdgf
dsadsa
5sfdsfds
WhatWhat
What?
as
asfd
WhatWhat
What?
hase
COM
MENT
AA
xxxx
sdasdasd
WhatWhat
What?
a
test
WhatWhat
What? Why? No?
xoxo
damn
WhatWhat
What?
Reality
FOR REAL this is FOR REAL this is NOT a test, NOT NOT NOT NOT.
REALREALREAL
Really FOR REAL.
REALREALREALREALREALREALREALREALREALREALREALREAL
FOR REAL. FOR REAL. FOR REAL. FOR REAL. FOR REAL. FOR REAL. FOR REAL. FOR REAL. FOR REAL. FOR REAL. FOR REAL.
R REAL. FOR REAL. FOR REAL. FOR REAL. FOR REAL. FOR REAL. FOR R
FOR REAL. FOR REAL. FOR REAL. FOR REAL. FOR REAL. FOR REAL. FOR REAL. FOR REAL. FOR REAL. FOR REAL. FOR REAL.
aaa
fezfe
test
test
13
123
大师傅大师傅
123
是多少
2132
??
PLAIN TEXT
f
SDFDS
kk
hi
pwe
sqdsq
Kyle
Test
Bernd
Anal ist ein reichsparteitag im wald.
Peter
rot ist gelber als brsaun
dsf
check!