►
From YouTube: js-ipfs running in a Service Worker DEMO
Description
This demo was recording during May 22 IPFS All hands call.
A
Say
you'll
capture
the
touch
event,
and
then
you
fetch
the
file
on
my
PFS
and
any
pretty
big
response
with
your
own
errors,
and
you
resolve
that
responsible
by
resolving
your
reply
to
that
requests.
With
the
content
to
fetch
publications,
the
repo
is
called
a
confess
service
worker
and
if
you
download
it
you
can
see,
there
is
a
folder
called
examples
and
use
from
other
page.
The
thing
I
did
here
was
just
creating
a
static
HTTP
server,
that
is
loading.
A
So
if
there
is
any
like
serviceworker
experts
out
there,
that's
understand
why
the
heck
icon.
First,
it
doesn't
capture
the
fetch
event
but
like
after
a
quick
refresh,
avoids
please
let
me
know
and
my
couple
of
hours
trying
to
find
answers
on
the
way
cool.
So
then
I
don't
really
know
I
just
leave
it.
A
national
image
I
already
know
that
there
is
pretty
good
one
available
here
on
West
er
loads
to
go
with
yes,
here,
I'm
clicking
fetch
it
fetches
just
pretty
fast,
because
I
can
see
me
just
cached
on
the
gateway.
A
What
happened
was
okay,
the
fetch
event
was
captured
and
you
dinner
stood.
It
was
an
IP
FS
edge
again
did
not
miles
cattle
netting
th
receive
the
stream
to
the
panel.
We
just
concatenated
this
game
in
one
single
data
pool
and
we
create
a
response
to
the
browser
and
for
the
browser.
This
was
our
transfer
like
that.
This
web
page
doesn't
need
to
understand
that
this
is
content
with
all
the
true
service
for
care.
They
just
thought
got
it
loaded,
so
yeah,
let's
open
a
new
tab
to
bid
again
look.
B
A
Be
pressed
on
I
yeah,
not
yet
again.
These
would
an
Iroquois
who
have
another
page
to
like
you
that
what,
for
example,
to
ipfs
what
I
owe
this
serviceworker?
Okay,
you
wanna
narrow,
calm
and
from
Rio
you're
out
there
I
David
take
it
forget
it
was
it's
gone
after
I
you
go
the
other
night.
Let
the
Brotherhood
no
service
will
get
the
part
right
now.
The
only
thing
there's
no
justice.
A
B
A
On
that
machine
and
from
then
on,
high
quality
messages
can
be
loaded
for
the
service.
Another
game
that
I
was
talking
with
Matt
today
about
Lulu,
please,
oh
so
service
worker,
the
other
way
Mike
SW
got
PMS
or
IO.
So
it's
not
like
on
a
lame
page,
maybe
use
the
models.
Extension
redleg
ipfs
about
your
requests
to
death
service
work.
This
way,
people
that
are
using
everything
I
do
still
use
the
gateways
to
purge
the
content
and
people
that
are
using
the
IP
pass.
A
Exceptions
will
use
the
service
worker,
which
SPFs
to
fetch
the
content
from
a
lot
and
the
webex
engine
also
would
give
you
a
way
to
like
configure
the
service
or,
if
you
want
like
to
provide
to
provide
to
the
network
the
color
that
your
which,
if
you
want
to
wear
the
load,
turn
off
other
things
like
but
yeah.
This
is
very
much
MVB
just
to
show
it
words,
and
just
this
many
more.
A
Do
you
need
to
use
a
key
FS
so
like
we
are
going
to
release
a
new
version
of
Jessica
Fest
this
week?
0:24?
You
need
to
use
that
one
to
using
this
item
service
for
here,
because
there
was
a
couple
of
things
that
needed
to
be
fixed
in
our
first
word
and
there
yeah.
This
is
like
the
beginning
of
much
more
stuff,
but
but
yeah.
We
we
know
now
that,
like
happy
best
works
in
a
serviceworker
that
we
can
do.
This
redirect
magic
to
load
content
from
Jessica
fests
into
any
web
page
cool,
awesome,
okay,.
C
So
I
wanted
it.
I
want
to
just
jump
in
there
with
what
this
makes
possible.
Is
that
the
service
worker
service
workers,
the
thing
is
providing
JSF
EFS
is
the
thing
that's
providing
an
IP
FS
note
to
run
in
the
browser,
and
so
that
is
provided
somewhat
transparently
to
the
user
and
that
we
would
configure
the
service
worker
to
be
like
locked
down
by
default,
so
that
them,
when
you
install
the
web
extension
when
you're
like
hey
I,
want
to
use
I
feel
like
I
want
to
use
F
you
guys.
C
Actually,
you
will
have
already
been
used
using
IP
FS
intellect
constraint,
win
because
the
service
worker
has
already
been
injected
by
ipfs
that
IO
whenever
you
accessed
some
ipfs
content.
So
the
gateways
just
provide
the
service
worker
to
make
your
life
easier.
But
then,
when
you're,
like
hey,
I,
actively
want
to
engage
with
this
use
more
functionality
of
I
of
ipfs,
then
that's
when
you
install
the
web
extension
and
the
web
extension
use
the
web
extension.
C
Then
it
like
open
up
to
like
decrease,
to
unlock
your
lockdown
version
of
the
service
worker
sort
of
like
reconfigure
it
to
do
more
things
which
also
which
we
would
want
the
end-user
to
be
aware
of
the
fact
that
they
have
told
their
browser
to
have
the
service
worker
do
those
things
which
are
powerful.
But
we
don't
want
it
to
just
be
happening
without
someone
doing
and
so
yeah.
C
So
that's
like
a
super
I
think
it's
a
wonderful
Avenue
for
getting
getting
ipfs,
embedded
it
like
available
in
the
browser
without
having
to
convince
people
to
let
go
and
download
ipfs
and
like
in
order
to
be
benefit
from
it
sort
of
like
soon
as
they
access
I
believe
this
content.
They
start
benefiting
from
my
PFS.
E
D
A
A
So
what
we
can
we
can
do
in
order
to
make
this
all
happen
is
f
to
Jessica
Fest
notes,
one
running
on
the
web
extension
another
one
running
inside
the
serviceworker
and
make
them
super
peered
like
if
there
is
a
blog
that
the
jessica
festival
is
looking
for,
that
is
on
a
serviceworker,
then
the
one
that
is
on
the
web
extension
will
also
look
for
the
same
block
and
in
the
web
extension.
You
have
this.
You
know
like
using
web
RTC
and
in
the
service
worker.
A
You
have
this
node
connecting
using
WebSockets,
and
you
might
be
wondering
why
do
not
at
this
node
on
the
WebEx
session
in
the
first
place,
and
the
reason
to
that
is
because
the
web
extension
is
not
able
to
capture
requests.
We
have
to
have
a
service
worker
to
act
as
a
HTTP
proxy
for
our
requests
that
we
can
make
this
process
for
it.
The
the
web
extensions
today
only
weather
is
to
capture
the
headers
of
the
requests
and
do
read
directs.
We
cannot
do
create
responses
from
a
web
extension
so
yeah.
A
It
has
to
be
like
a
mix
of
these
two
technologies
that
exist
on
the
browser.
Unfortunately,
one
of
them
are
really
like
bleeding
edge
like
both
web
extensions
and
service
workers
are
fast
fast
and
they
are
still
getting
implemented
in
more
stable
on
the
browsers
and
the
regarding
C
support,
even
for
the
WebEx
session
is
out
there.
Yet
it's
just
a
proposal,
but
at
least
is
the
proposal
that
is
moving
so
yeah.
A
We
will
continue
actively
working
on
this
and
getting
it
more
stable,
unstable,
and
we
see
that
this
is
something
that
is
a
huge
abet
by
the
browser
vendors
like
service
workers
and
work
extensions,
so
yeah.
We
we
do
have
a
high
hopes
to
have
in
the
near
future
a
way
to
install
justify
pass
through
an
extension
and
ever
just
working
all
the
browsers
using
specs
that
we
do
see.
Specs
you
something
yeah
well,
I
was
it's
just
like.
C
C
Make
a
version
of
the
serviceworker
that
sort
of
locked
down
and
sick
more
like
defaults
to
do
being
very
safe?
That's
not
a
big
deal.
What
it
forces
us
to
tackle
is
connection
closing
which
is
hard
yeah,
and
so
maybe
the
view
could
explain
so.
A
On
that
right
now
do
I
do
I
possess
quirks
is
just
like
tries
to
maintain
all
the
connect,
all
the
connections
that
it
gets
to
all
the
peers
that
it
gets
to
know
as
it
lives,
and
that
makes
it
very
very
expensive
for
the
browser,
because
the
way,
but
because
we
have
all
this
routing
functionality
happening
in
one
single
trap.
A
There
is
very
intense
for
single
browser
process
to
execute
and
if
the
number
of
connections
increase
on
a
jessica
personnel,
let's
say
to
like
close
to
50
or
60,
there
has
been
other
experiments
that
see
something
very
similar
where
the
browser
would
crash
out
of
resources.
By
doing
so
much
work
on
trying
to
like
compute
all
of
these
functions,
to
figure
out
where
to
send
one
place
which
helps
to
connect
and
so
on.
A
So
we
will
need
to
get
this
deployed
into
the
network
a
way
to
understand
what
is
the
value
of
each
connection
at
to
be
at
12
years,
like
a
simple
reputation
mechanism,
so
that
we
can
understand
which
connections
we
can
close
at
given
point
in
time
and
then
limit
the
number
of
connections
at
each
browser
as
well.
We
don't
want
like
a
browser
with
one
little
connections
open
at
one
point
in
time,
because
it
will
just
exhausts
the
browser
resources,
yeah
yeah
yeah,
so
it
is
like
the
make
sense
I
really
like.
A
C
So
you
know
which
ones
are
ok
to
close.
That's
because
if
we
don't
have
that
and
then
we
make
it
so
that
everyone
who
hits
the
ipfs
that
I
hope
you
wait
is
going
to
get
the
serviceworker
installed
and
running
on
their
machines.
We're
going
to
get
an
explosion
of
machines,
running
they're,
all
going
to
look.
B
C
A
The
other
option
would
be
would
not
use
like
to
just
try
to
buy
onto
the
gateways,
and
that's
it
like
just
use
a
similar
connection
to
the
gateways.
I
like
what
you
use,
things
like
relay
to
open
more
connections
or
their
nose.
But
then
one
kid
stops
being
it's
all
more
interesting
than
you
just
using
the
gateway
right,
so
so
yeah.
A
E
E
A
Yeah
so
yeah
and
like
do
I,
do
it
yet
on
Mike
Evans,
who
is
working
on
the
service
worker
gonna
kick
ass
at
IO
and
I'm
like
every
new
extension
to
be
the
one
going
to
that
page
should
start.
You
know
creating
a
web
extension
to
control
that
service
worker,
because
the
service
workers
also
ever
a
messaging
mechanism
to
talk
with
it.
Given
that
back
to
fake
HP
requests
to
configure
it,
that's
actually
part
of
the
spec.
We
can
be
way
more
exclusive
with
our
users
like
they
are
using
at
the
FS.
A
There
is
this
thing
that
sits
on
your
machine
and
tell
them
like
statistics
of
what
it
is
doing
more
than
just
like,
because
the
service
work
is
Hollywood
today,
if
you
go
to
Chrome
column,
/
service
workers,
you'll
see
a
more
than
dancers,
work
and
I'm
sure
from
all
the
web
pages
that
you
are
visiting,
that
you
don't
even
know
that
they
are
there,
but
on
one
of
my
sites
on
user
there's
a
one
working
point.
We.
C
Are
like
a
walnut
line?
It
actually
would
not
break
the
convention
of
how
websites
use
service
workers
now,
if
I
confess
that
I
own
the
website
actually
install
the
service
worker.
When
you
visited
about
even
telling,
we
probably
would
tell
you,
but
but
like
plenty
of
websites
install
service
workers.
E
A
A
Times,
people
understand
that
they
are
actually
using
a
TMS
I.
Think
that's
going
to
be
valuable,
just
like
communication
there.
So
there's
one
more
thing
that
we
need
to
make
this
very
useful,
which
is
right
now,
eunuchs
and
fast
dozens
or
the
way
that
we
fetch
content
for
my
PFS.
Let
em
tell
us
necessarily
anything
about
it's
an
attack
and
for
the
browser
to
load,
counted
or
is
about
the
image
the
browser
could
figure
it
out.
A
It
was
an
image,
so
it
could
render
it
properly
because
I
was
using
an
image
tag,
but
for
many
other
content
types
we
actually
need
to
specify
on
the
Heather
what
type
of
content
it
is.
If
people
have
files
like
us
under
directory
and
if
they
don't
delete
the
file
extension,
then
we
probably
can
get
away
with
a
lot
of
file
formats.
A
But
for
some
people
have
like
some
PDF
again
on
the
machine
with
a
TFS
F
without
wrapping
on
a
directory,
then
we
completely
forget
that
it
is
a
PDF
and
we
need
to
have
a
way
basically
level
of
UNIX
FS
a
lot
of
formats
to
preserve
the
file
name,
the
file
type.
So
that
we
can,
we
are
serving
content
through
just
the
FS
and
we
are
fetching
it.
We
know
which
Heather
to
write
so
that
the
browser
loads
up
I
believe.
A
C
Let
it
be
that
you
have
to
install
the
web
extension
or
go
to
some
configuration
page
in
order
to
turn
on
functionality
that
you
want,
that
might,
depending
on
different
circumstances,
might
be
on
saved.
So,
for
example,
like
setting
up
persistent
connections
that
might
like
expose
you
in
some
way
to
like
being
Oh.
C
Having
a
be
known
that
you're
running
the
note
we
might
want
to
have
that
turned
off
by
default.
So
if
you
weigh
in
on
that
repo
Lars
or
anyone
else
who
has
ideas
about
how
it
like
one
of
the
things
that
we
should
absolutely
have,
the
serviceworker
turn
them
off
by
default.
You
should
put
that
in
an
issue
on
that
repo.