►
From YouTube: Fleek XYZ + IPFS Storage plugin Workshop - Max Boytsov
Description
1. We’ll write a skeleton with dummy modules for IPFS Storage Plugin
2. We’ll start to fulfil the plugin, starting from its metadata and ending all the different methods being written with an SDK
3. Once the plugin file is finished, we’ll build the plugin library for it and import it into the fleek-xyz GraphQL module.
4. We’ll go to the Fleek.xyz UI to show:
1. How the newly created plugin is displayed in the list of storage plugins
2. How we’re initializing that plugin.
A
A
So
in
case
you
don't
know
who
we
are.
Fleek
is
the
biggest
web
Tree
website
hosting
service,
and
we
and
ipf
has
placed
a
significant
role
in
our
infrastructure.
It
provides
the
decentralized
website
hosting
and
the
storage
in
our
platform,
so
so
yeah.
In
the
last
few
years,
we've
been
improving
our
platform
and
putting
a
lot
of
people's
energy
experiences
and
resources
to
provide
the
best
possible
user
experience
in
our
platform.
A
A
The
second
is
a
hundred
percent
open
sourced
plug-in
infrastructure
and
on
the
third
one,
which
is
the
flick,
Network,
the
decentralized
content
and
application
delivery
Network.
So
on
the
flick.
Network
I
encourage
everyone
to
visit
mahmoud's
talk
tomorrow
at
12
40
about
flick,
Network
I
promise
it'll
be
a
lot
of
fun
all
right.
So
now
is
the
first
time
we'll
present
the
alpha
alpha
Hands-On
plugins
development
and
how
we
use
it
to
build
the
simple
ipfs
hosting
plugin
in
almost
no
time.
A
A
So
the
first
thing
that
you
guys
will
see
in
the
repository
is
the
plugin
storage
ipfs
file
in
the
SRC
folder.
So
what
is
this
all
about?
You
would
ask.
So,
let's
do
this
quick
trick
that
vscot
provides
us
we're
going
to
implement
all
of
the
interfaces
and
see
what's
what?
What
actually
is
in
that
class
right
that
that
we
Implement?
First
of
all,
you
would
guys
see
this
plugin
helpers
right.
What
it
is
all
about.
A
It
is
the
package
that
we
provide
for
you
guys
to
have
the
ability
to
extend
our
interfaces
that
will
help
our
XYZ
platform
to
identify
what
actually
the
feature
you'd
like
to
provide
to
us
right
so,
first
time
you
will
do
that
you'll
you'd
be
able
to
so,
for
example,
we're
building
the
plugin
storage
ipfs
out
there.
So
the
plugin
storage,
abstract
class
provides
us
some
useful
methods
and
useful
methods
and
the
properties
for
for
the
child
class,
which
we're
gonna
now
Implement
right.
What
do
we
got
here?
A
We
got
get
package.data
right,
so
that's
another
utility
that
we
did.
The
plugin
helpers
provide
so
we're
going
to
import
this.
What
he's
gonna
do
is
actually
take
your
package
Json
file,
which
will
also
gonna
import,
yeah,
perfect
and
so
take
Taking
attention
on
the
ID.
It
takes
the
package
name
since
the
npm
provides
us
the
ability
to
Define
packages
as
a
unique
identifiers
right.
So
we
use
that
concept
to
differentiate
between
those
plugins
that
you
guys
will
create
and
yeah.
So
this
package
name
is
coming
from
the
package.json
file.
A
Thank
you.
Thank
you
very
much
he's
super
famous.
He
has
a
mic
holder.
No,
no
worries.
Okay,
so
now
we're
taking
the
package
name
from
the
get
package
data,
we're
missing
something,
of
course.
Let's
take
a
look,
can
anyone
see
what's
missing,
help
him
out
we're
doing
a
live
coding
session
here,
yeah,
yeah,
yeah
I
do
so.
A
A
All
right
it's
already
installed,
so
we
don't
need
to
do
anything.
Then
we
will
import
the
create
function
to
create
the
API
apfs
instance
right.
So
what
we're
going
to
do
here
is:
let's
write
the
let's,
try
it
one
of
the
required
methods
out
there,
which
is
called
the
upload
right,
I'm
gonna.
Do
it
this
way?
A
A
A
So
now
we
have
the
client
and
we're
gonna
provide
the
options
to
that
client.
A
Perfect,
so
what
we're
going
to
do
next?
Next,
we're
gonna,
we're
gonna,
use
the
glob
Source
sort
of
the
function
that
apfs
provides
to
us
and
that's
going
to
be
useful
for
taking
the
folder
in
the
local
environment
to
upload
it
to
ipfs
right.
A
So
let
me
connect
this.
As
you
can
see,
there
is
the
ipfs
client
ad
method
and
we
Leverage
The
glob
Source.
We
get
the
folder
name
from
the
instance
fields
which
I'm
going
to
explain
to
you
guys
right
now,
and
what
we're
going
to
return
from
that
function
is
the
instance
Fields.
That's
going
to
be
a
crucial
part
of
this
infrastructure
right,
perfect.
So.
A
A
This
and
zoom
in
a
bit
hope
you
guys
can
see
it
so
as
we
get
this
what's
the
magic
right
now
is
that
the
upload
function
is
gonna.
It's
gonna
be
all
that
is
necessary
to
deploy
your
plugin
to
the
flick
right
and
like.
Let
me
explain
that
so
think
about
it.
So
what
is
required
for
us
to
have
the
website
hosted
on
the
ipf
ipfs?
It's
only
the
content
right.
We
handle
the
other
parts
of
the
infrastructure
like
the
good
we
handle
CI
CD.
We
handle
everything.
A
So
we
don't
you
guys,
don't
have
to
worry
about
it
at
all,
and
once
you
define
this
upload
method,
it
is
all
done.
It
is
your
own
plugin
that
you
can
actually
put
into
the
flick
and
use
it
share
it
share
it
share
it
with
another
people
and
and
yeah,
so
it's
all
down
hosting.
So
what
are
we
going
to
continue
with,
or
you
guys
can
continue
with
is
like
defining
the
other
methods
in
this
case,
other
methods
in
this
class.
A
A
So
it's
up
to
you
guys
to
say:
hey
I,
want
to
use
ipfs
that
way
or
I
want
to
create
my
SDK
based
on
ipfs
use
it
there
and
put
it
into
the
Fleek
and
it's
going
to
work
the
what's
the
amazing
part.
What's
the
amazing
part
of
all
this
yeah?
It's
it's
the
freedom
right,
it's
the
freedom
of
a
choice.
Now,
let's
use
that
quick
trick
of
of
the
vs
God
to
see
what
actually
is
needed
to
have
the
storage
right.
A
Those
are
all
the
other
methods
that
storage
will
require
and
yeah.
So
this
is
only
quite
for
the
storage
we
get
this
all
done
and
once
you're
done,
you
would
have
that
ipfs
plugin
in
the
list
of
there's
some
other
plugins.
So
what
it
is
all
about
is
that
you
can
create
share,
use,
improve
plugins
right.
All
of
our
new
platforms.
Infrastructure
is
fully
pluginized.
So
it's
up
to
developer
Define.
A
What
he's
going
to
see
in
the
flick
XYZ
right,
unlike
thefleek.com,
so
we
let
all
the
developers
to
be
part
of
this
journey.
The
flick,
XYZ
platform
will
be
available.
This
year's
on
November,
so
we
will
also
open
source
all
of
the
plugins
infrastructure.
So
anyone
can
join
this
amazing
journey
building
with
us.
What's
another
crazy
thing
is
that
there
will
be
a
possibility
to
monetize
everything
right.
So,
as
a
plugin
developer,
you
would
get
a
the
monetization
from
the
usage.
A
As
your
plugin
gets
popular
more
popular,
more
popular,
you
get
more
monetization
the
scenario
huge
part.
Yes,
so
I
wanted
to
say
thanks
to
all
of
you,
that
was
the
quick
Hands-On
plugin
developments,
a
development
on
the
flick
XYZ.
Thank
you
very
much.
This
is
a
great.
This
is
a
great
event
thanks
for
inviting
and
hope
you
see
on
the
Journey
of
the
plugin
development
for
flick.
Thank
you.