Skip to content

Commit b782faf

Browse files
authored
docs improvements (#294)
1 parent 00d3047 commit b782faf

File tree

5 files changed

+16
-146
lines changed

5 files changed

+16
-146
lines changed
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
---
22
slug: hypergraph-alpha-released
3-
title: Announcing Hypergraph - A New Chapter in Web Development
4-
date: 2025-06-11
3+
title: Announcing Hypergraph (Developer Preview)
4+
date: 2025-07-03
55
authors: [nik, pablo]
66
tags: [release, alpha, hypergraph]
77
---
88

9-
After months of development and countless conversations with developers like you, **we're thrilled to unveil the Alpha version of Hypergraph**. This is more than just another data layer—it's a fundamental rethinking of how we build collaborative, secure, and offline-first Web3 applications.
9+
After months of development and countless conversations with developers like you, **we're thrilled to unveil the Developer Preview version of Hypergraph**. This is more than just another data layer—it's a fundamental rethinking of how we build collaborative, secure, and offline-first Web3 applications.
1010

1111
<!-- truncate -->
1212

1313
## Why We Built Hypergraph
1414

1515
The challenges of modern app development are clear: users expect real-time collaboration, bulletproof security, and apps that work flawlessly even when offline. Traditional architectures force uncomfortable trade-offs between these needs. We knew there had to be a better way.
1616

17-
Enter Hypergraph, built on two core innovations: a local-first architecture that puts your data where it belongs—on the client—and our implementation of the GRC-20 standard for truly composable knowledge graphs.
17+
Enter Hypergraph, built on two core innovations: a architecture that puts your data where it belongs—on the client—and our implementation of the GRC-20 standard for truly composable knowledge graphs.
1818

1919
<!-- TODO: ADD IMAGE OF HYPGRAPH UI -->
2020

2121
## What Makes Hypergraph Different
2222

23-
At its heart, Hypergraph is local-first. Every piece of data is stored on the client, making reads and writes instant—no waiting for server responses. When you're online, our CRDT-based sync ensures your data flows seamlessly between devices and collaborators. When you're offline? Everything just works.
23+
<!-- At its heart, Hypergraph will local-first. Every piece of data is stored on the client, making reads and writes instant—no waiting for server responses. When you're online, our CRDT-based sync ensures your data flows seamlessly between devices and collaborators. When you're offline? Everything just works. -->
2424

2525
Security isn't an afterthought—it's built into our foundation. With end-to-end encryption, your data is only readable by those you explicitly trust. No intermediaries, no compromises.
2626

2727
The real magic happens with our GRC-20 Knowledge Graph. It's not just a data format; it's a new way of thinking about how information connects and flows through your applications. Every mutation, whether it's adding a note or updating a relationship, becomes part of a larger, interoperable knowledge network.
2828

2929
<!-- TODO: ADD GIF OF DATA MODEL -->
3030

31-
## Looking Ahead
31+
<!-- ## Looking Ahead
3232
33-
We're launching this alpha today, June 10, 2025, and we're targeting a beta release in August. Our roadmap to a stable release in Q4 2025 is ambitious but achievable with your help. The beta will bring enhanced stability, an expanded API surface, and comprehensive documentation based on your feedback.
33+
We're launching this alpha today, July 3. Our roadmap to a stable release in Q4 2025 is ambitious but achievable with your help. The beta will bring enhanced stability, an expanded API surface, and comprehensive documentation based on your feedback. -->
3434

35-
## Join the Alpha Today
35+
<!-- ## Join the Alpha Today
3636
3737
Getting started is simple. Install our SDK:
3838
3939
```bash
4040
# TODO: ADD INSTALLER TO NPM npm install @hypergraph/sdk-alpha
4141
```
4242
43-
Head to our [Quickstart guide](/docs/quickstart) to build your first Hypergraph app, or dive deep into our [API Reference](/docs/api-reference) to explore the possibilities. We support Node.js and modern browsers, with React hooks that make integration a breeze.
43+
Head to our [Quickstart guide](/docs/quickstart) to build your first Hypergraph app, or dive deep into our [API Reference](/docs/api-reference) to explore the possibilities. We support Node.js and modern browsers, with React hooks that make integration a breeze. -->
4444

4545
## A Note on What to Expect
4646

47-
Let's be transparent: this is an alpha release. You'll see rapid changes as we iterate based on your feedback. Some features are still experimental, and you might encounter sync delays with larger graphs or limited support on mobile browsers. But that's exactly why we need you—every bug report, feature request, and question helps shape Hypergraph's future.
47+
Let's be transparent: this is an developer preview release. You'll see rapid changes as we iterate based on your feedback. Some features are still experimental, and you might encounter sync delays with larger graphs or limited support on mobile browsers. But that's exactly why we need you—every bug report, feature request, and question helps shape Hypergraph's future.
4848

4949
## Let's Build Together
5050

@@ -58,6 +58,6 @@ We read every message and your feedback directly shapes our roadmap.
5858

5959
## Ready to Shape the Future?
6060

61-
This is just the beginning. Hypergraph represents our vision for the future of Web3 development, but it's your creativity and feedback that will help us realize its full potential. [Get started with the Quickstart](/docs/quickstart), and explore our [API Reference](/docs/api-reference), and join us in building the next generation of collaborative, decentralized applications.
61+
This is just the beginning. Hypergraph represents our vision for the future of Web3 development, but it's your creativity and feedback that will help us realize its full potential. [Get started with the Quickstart](/docs/quickstart), and join us in building the next generation of collaborative, decentralized applications.
6262

6363
We can't wait to see what you'll create.

docs/docs/core-concepts.md

Lines changed: 1 addition & 132 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ tags: [concepts, architecture]
77

88
# 🧠 Core Concepts
99

10-
Hypergraph re-imagines traditional client–server apps as **local-first**, **peer-syncing** knowledge graphs. Understanding the following building blocks will help you design applications that feel real-time, privacy-preserving, and interoperable by default.
10+
Hypergraph re-imagines traditional client–server apps as knowledge graphs. Understanding the following building blocks will help you design applications that feel real-time, privacy-preserving, and interoperable by default.
1111

1212
## Table of Contents
1313

1414
- [Knowledge Graphs](#knowledge-graphs)
15-
- [Hypergraph SDK](#hypergraph-sdk-in-action)
1615
- [Spaces](#spaces)
1716
- [Identities](#identities)
1817
- [Inboxes](#inboxes)
@@ -53,62 +52,6 @@ Hypergraph takes knowledge graphs further by making them:
5352

5453
> **The magic:** Under the hood, Hypergraph serializes everything using the **GRC-20** standard. As a developer, you just work with simple SDK calls—Hypergraph handles the complex cryptography and networking. If you're curious about the low-level details, check out the [GRC-20 section](#grc-20-advanced) below.
5554
56-
## Hypergraph SDK in Action
57-
58-
Let's build that photographer example step by step:
59-
60-
```ts
61-
import { useHypergraph } from '@graphprotocol/hypergraph-react';
62-
63-
function CreateProfile() {
64-
const { createEntity, createRelation } = useHypergraph();
65-
66-
const handleCreateProfile = async () => {
67-
// 1️⃣ Create Teresa as a person
68-
const teresa = await createEntity({
69-
name: 'Teresa',
70-
type: 'Person',
71-
properties: {
72-
profession: 'photographer',
73-
bio: 'Street photographer based in Tokyo'
74-
}
75-
});
76-
77-
// 2️⃣ Create her camera
78-
const camera = await createEntity({
79-
name: 'Fujifilm X100V',
80-
type: 'Camera',
81-
properties: {
82-
brand: 'Fujifilm',
83-
model: 'X100V'
84-
}
85-
});
86-
87-
// 3️⃣ Connect them with an "owns" relationship
88-
await createRelation({
89-
from: teresa.id,
90-
to: camera.id,
91-
type: 'owns',
92-
properties: {
93-
purchaseDate: '2023-06-15'
94-
}
95-
});
96-
};
97-
98-
return <button onClick={handleCreateProfile}>Create Profile</button>;
99-
}
100-
```
101-
102-
That's it! Behind the scenes, Hypergraph:
103-
- Generates unique IDs for each entity
104-
- Encrypts the data (if in a private Space)
105-
- Syncs changes to all connected devices
106-
- Makes everything queryable via GraphQL
107-
108-
**Next:** Learn about [Spaces](#spaces)—how Hypergraph organizes people and data into collaborative groups.
109-
110-
<!-- GRC-20 deep-dive moved to the bottom of the doc -->
111-
11255
## Spaces
11356

11457
A **Space** is the fundamental unit of collaboration.
@@ -183,80 +126,6 @@ Imagine if every social app stored data differently—Instagram used JSON, TikTo
183126

184127
GRC-20 solves this by creating a **universal format** for knowledge. Any app that speaks GRC-20 can read, write, and build upon data created by any other GRC-20 app.
185128

186-
### The Five Building Blocks
187-
188-
Let's decode the sentence *"Teresa, a photographer, owns a Fujifilm camera"* into its GRC-20 components:
189-
190-
| **English** | **GRC-20 Term** | **What It Represents** |
191-
|-------------|-----------------|------------------------|
192-
| "Teresa" | **Entity** | A unique thing in the graph |
193-
| "photographer" | **Value** | A piece of data attached to an entity |
194-
| "profession" | **Property** | The type/schema of a value |
195-
| "Person" | **Type** | The category an entity belongs to |
196-
| "owns" | **Relation** | A connection between two entities |
197-
198-
### Raw GRC-20 Code
199-
200-
Here's how that sentence looks when written directly with the [`@graphprotocol/grc-20`](https://www.npmjs.com/package/@graphprotocol/grc-20) library:
201-
202-
```ts title="Low-level GRC-20 example"
203-
import { Graph } from '@graphprotocol/grc-20';
204-
205-
// 1️⃣ Define your schema IDs (normally auto-generated)
206-
const PERSON_TYPE = 'schema:type:person';
207-
const CAMERA_TYPE = 'schema:type:camera';
208-
const PROFESSION_PROP = 'schema:property:profession';
209-
const BRAND_PROP = 'schema:property:brand';
210-
const OWNS_RELATION = 'schema:relation:owns';
211-
212-
// 2️⃣ Create entities with their properties
213-
const { id: teresaId, ops: teresaOps } = Graph.createEntity({
214-
name: 'Teresa',
215-
types: [PERSON_TYPE],
216-
values: [
217-
{ property: PROFESSION_PROP, value: 'photographer' }
218-
]
219-
});
220-
221-
const { id: cameraId, ops: cameraOps } = Graph.createEntity({
222-
name: 'Fujifilm X100V',
223-
types: [CAMERA_TYPE],
224-
values: [
225-
{ property: BRAND_PROP, value: 'Fujifilm' }
226-
]
227-
});
228-
229-
// 3️⃣ Create the relationship
230-
const { ops: relationOps } = Graph.createRelation({
231-
fromEntity: teresaId,
232-
toEntity: cameraId,
233-
relationType: OWNS_RELATION
234-
});
235-
236-
// 4️⃣ Bundle everything into a single "edit"
237-
const allOperations = [...teresaOps, ...cameraOps, ...relationOps];
238-
239-
// 5️⃣ Publish to the network (IPFS, blockchain, etc.)
240-
await Graph.publishEdit({ ops: allOperations });
241-
```
242-
243-
### When Would You Use GRC-20 Directly?
244-
245-
Most developers should stick with the Hypergraph SDK! But you might drop down to GRC-20 if you're:
246-
247-
- **Building infrastructure tools** (indexers, validators, etc.)
248-
- **Migrating data** from other formats into the knowledge graph
249-
- **Creating custom query engines** that need maximum performance
250-
- **Debugging issues** at the protocol level
251-
252-
For typical app development, Hypergraph's React hooks and high-level APIs are much more convenient and handle all the GRC-20 complexity for you.
253-
254-
---
255-
256-
**Want to learn more?** Read the full [GRC-20 specification](https://github.com/graphprotocol/graph-improvement-proposals/blob/main/grcs/0020-knowledge-graph.md) on GitHub.
257-
258-
---
259-
260129
### Edit on GitHub
261130

262131
[✏️ Suggest changes](https://github.com/graphprotocol/hypergraph/edit/main/docs/docs/core-concepts.md)

docs/docs/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ It will walk you through creating a new, fully-functional React application powe
3535

3636
### 1. Install the Hypergraph CLI
3737

38-
First, clone the Hypergraph repository, which contains TypeSync.
38+
First install the Hypergraph CLI.
3939

4040
```bash
4141
npm install -g @graphprotocol/hypergraph-cli@latest

docs/docs/schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The Hypergraph schema allows you define the data model for your application. It
44

55
## Example
66

7-
Here is an example of a schema for a Todo app with the properties `name` and `completed`.
7+
Here is an example of a schema for an Event app with the properties `name` and `description`.
88

99
```ts
1010
import { Entity, Type } from '@graphprotocol/hypergraph';

docs/src/pages/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ function HomepageHeader() {
1515
<Heading as="h1" className="hero__title">
1616
{siteConfig.title}
1717
</Heading>
18+
<p style={{ marginTop: '-0.5rem', marginBottom: '2rem' }}>(Developer Preview)</p>
1819
<p className="hero__subtitle">{siteConfig.tagline}</p>
19-
<div className={styles.buttons}>
20+
<div className={styles.buttons} style={{ marginTop: '5rem' }}>
2021
<Link className="button button--secondary button--lg" to="/docs/quickstart">
2122
Hypergraph Quickstart - 5min ⏱️
2223
</Link>

0 commit comments

Comments
 (0)