مقدمة إلى IPFS
افهموا InterPlanetary File System (IPFS) باعتباره نظام ملفات موزعًا ندًا إلى ند لتخزين الملفات والوصول إليها.
مقدمة إلى IPFS درس مجاني في Web3 & DApp Development Fundamentals على CoddyKit. هذا هو الدرس 1 من أصل 3. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Web3 & DApp Development Fundamentals، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Web3 & DApp Development Fundamentals 3 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Welcome to IPFS!
Hello! Today, we're diving into the InterPlanetary File System (IPFS). It's a revolutionary way to store and access files, designed to make the internet more robust, decentralized, and efficient.
Think of it as a new foundation for how we share data online, moving beyond the traditional web.
The Centralized Web's Challenge
Currently, when you visit a website or download a file, your request goes to a specific server. This is called location addressing, as you're asking for content at a particular address.
- If that server goes down, the content is unavailable.
- It creates a single point of failure.
- Content can be censored or removed by the server owner.
IPFS: A Decentralized Vision
IPFS offers a decentralized alternative. Instead of relying on a few central servers, IPFS uses a peer-to-peer network. This means files are stored and shared across many computers (nodes) around the world.
It aims to create a permanent, decentralized web where content is always available.
Content Addressing Explained
One of IPFS's core innovations is content addressing. Instead of asking for a file at a specific location, you ask for a file based on what it is.
- Every piece of content gets a unique cryptographic fingerprint.
- This fingerprint is called a Content Identifier (CID).
- If even a single bit of the content changes, its CID changes too.
What is a CID?
A CID is like a unique ID for your file, generated by hashing its content. It's a string of letters and numbers that serves as the file's address on the IPFS network.
For example, a CID might look like this: QmY7Yh4Uq....
This ensures that if you have a CID, you can verify that the content you receive is exactly what was intended.
How IPFS Stores Files
When you add a file to IPFS, it's first broken down into smaller pieces. Each piece also gets its own CID.
These pieces are then distributed and stored across the IPFS network by various participating nodes. A node is simply any computer running the IPFS software.
Retrieving Content on IPFS
To retrieve a file, you provide its CID. The IPFS network then uses a mechanism called a Distributed Hash Table (DHT) to ask all participating nodes: "Who has content with this CID?"
Any node that has the content can send it to you. This means you can get the file from multiple sources, making it more resilient and often faster.
Immutability & Versioning
Once a file is added to IPFS and receives a CID, that content is immutable. This means it cannot be changed.
- If you modify a file, even slightly, it generates a completely new CID.
- The old version of the file (and its CID) still exists on the network, allowing for easy version history.
- This immutability is crucial for data integrity and security in decentralized applications.
IPFS Gateways: Bridging Web2 & Web3
While IPFS is a separate protocol, IPFS gateways allow regular web browsers (which primarily understand HTTP) to access IPFS content.
A gateway is a server that fetches content from the IPFS network and then serves it over standard HTTP. For example, you might access an IPFS file via https://ipfs.io/ipfs/<your-CID>.
Quick Check
Let's quickly check your understanding of IPFS's core mechanism for identifying files.
Recap: Introduction to IPFS
In this lesson, we explored the fundamentals of the InterPlanetary File System (IPFS).
- IPFS is a decentralized, peer-to-peer file system, offering an alternative to the centralized web.
- It uses content addressing, where files are identified by their unique Content Identifiers (CIDs), not their location.
- Content on IPFS is immutable; any change creates a new CID.
- IPFS gateways provide a bridge for traditional web browsers to access IPFS content.
Next, we'll dive deeper into how to store DApp assets and other files using IPFS!
الأسئلة الشائعة
هل درس «مقدمة إلى IPFS» مجاني؟
نعم — نص درس «مقدمة إلى IPFS» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Web3 & DApp Development Fundamentals، انتقل إلى CoddyKit PRO. تتضمن دورة Web3 & DApp Development Fundamentals 3 دروس في المجموع.
ماذا ستتعلم في «مقدمة إلى IPFS»؟
افهموا InterPlanetary File System (IPFS) باعتباره نظام ملفات موزعًا ندًا إلى ند لتخزين الملفات والوصول إليها. تتمرن على Web3 & DApp Development Fundamentals مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ Web3 & DApp Development Fundamentals؟
لا تُشترط خبرة سابقة. Web3 & DApp Development Fundamentals على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 1 من أصل 3.
كم من الوقت يستغرق درس «مقدمة إلى IPFS»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس Web3 & DApp Development Fundamentals هذا؟
نعم. كل درس في Web3 & DApp Development Fundamentals يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- مقدمة إلى IPFS
- تخزين أصول DApp
- Filecoin والتخزين اللامركزي