Skip to content

Commit d5f689d

Browse files
Merge branch 'modus-docs' into kevinm/modus
2 parents 097bb45 + 0da60c0 commit d5f689d

File tree

14 files changed

+727
-80
lines changed

14 files changed

+727
-80
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
modus/.DS_Store

community-and-support.mdx

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
---
22
title: Community and Support
3-
description: ""
3+
description: "Get help with Hypermode and connect with other developers"
44
---
55

6-
<Warning>- forums or community platforms - how to get help and support</Warning>
6+
Welcome to the Hypermode community! Whether you're just getting started or you're a seasoned developer, we're here to help you every step of the way. We’re excited to have you as part of the Hypermode community and look forward to seeing what you build!
7+
8+
## Getting help
9+
10+
If you need help with Hypermode, there are several ways to get support:
11+
12+
**[Discord](https://discord.hypermode.com)**: our main community forum where you can ask questions, share your knowledge, and connect with other developers
13+
14+
**GitHub Issues**: if you encounter a bug or have a feature request, you can open an issue on the relevant GitHub repository
15+
16+
- [Modus](https://github.com/hypermodeinc/modus/issues)
17+
- [Hyp CLI](https://github.com/hypermodeinc/hyp-cli/issues)
18+
19+
## Commercial support
20+
21+
All paid Hypermode packages include a commercial support arrangement. Customers can reach out to us via the Hypermode Console or via email at [[email protected]](mailto:[email protected]).
22+
23+
## Stay connected
24+
25+
Stay up-to-date with the latest news, updates, and announcements from Hypermode:
26+
27+
- **[X](https://x.com/hypermodeinc)**: follow us on X for the latest news and updates
28+
- **[Blog](https://hypermode.com/blog)**: explore our blog for in-depth articles, tutorials, and case studies

configure-environment.mdx

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,31 @@
11
---
22
title: Configure Environnment
3-
description: ""
3+
description: "Configure the project's environment in Hypermode Console"
44
---
55

6-
<Warning>- host secrets - shared vs. dedicated models - scaling</Warning>
6+
## Host Secrets
7+
8+
In your project dashboard, navigate to Settings -> Hosts. Here you can configure secrets that are used for connecting to external hosts.
9+
10+
## Shared vs Dedicated Models
11+
12+
By default, models hosted on Hypermode run on a shared instance. All new projects use shared models. You can specify `"dedicated": true` in your `hypermode.json` to enable dedicated models:
13+
14+
```json
15+
{
16+
...
17+
"models": {
18+
"text-generator": {
19+
"sourceModel": "meta-llama/Meta-Llama-3.1-8B-Instruct",
20+
"provider": "hugging-face",
21+
"host": "hypermode",
22+
"dedicated": true
23+
}
24+
}
25+
...
26+
}
27+
```
28+
29+
## Scaling
30+
31+
Coming soon

create-project.mdx

Lines changed: 73 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,88 @@ title: Create Project
33
description: ""
44
---
55

6-
Each project within Hypermode includes its own GraphQL endpoint, configuration settings, and data store.
6+
This section walks you through the process of setting up a new project using Hypermode's toolchain, from installation to deployment.
77

8-
- **Project Endpoint**: A project's endpoint is structured as `<project-slug>-<org-slug>.hypermode.app`. This unique endpoint allows you to interact with your project's data and functionality by hitting `/graphql`. For more details on integrating with the API, see [Integrate API](/integrate-api).
8+
<Note>
9+
A Modus app and the Hypermode CLI are required to create a project. To create
10+
a Modus app, see the [Modus Docs](/modus/quickstart).
11+
</Note>
912

10-
### Steps to Create a New Project
13+
### Hypermode CLI
1114

12-
1. **Select an Organization**
13-
To create a new project, navigate to the top-level navigation bar and select the organization under which the project will be created.
15+
<Steps>
16+
<Step title="Install the Hypermode CLI">
17+
First install the Hypermode CLI to deploy your Modus app to Hypermode:
1418

15-
- **Empty State**: If your organization does not have any projects yet, click the "Create a Project" button in the empty state section of the page.
16-
- **Existing Organizations**: For organizations with existing projects, use the "New Project" button located on the right side of the organization’s dashboard.
19+
<CodeGroup>
20+
```bash MacOS
21+
brew install hypermode
22+
```
1723

18-
2. **Choose a Template**
19-
Select a template that best matches your use case or start with a base template to configure your project from scratch. Available options include:
24+
```bash Windows
25+
TODO:
26+
```
2027

21-
- **Predefined Templates**: Ready-to-use configurations for common scenarios, providing a quick start.
22-
- **Expert Template**: A more advanced configuration option, allowing customization of data sources and structure.
23-
- **Modus Git Repository Import**: Import a Modus-based Git repository to integrate with your existing project workflows.
28+
```bash
29+
Linux TODO:
30+
```
2431

25-
> **Note**: If you select the Expert template, you have the option to populate the data store with sample data or upload your own custom data with a .csv file after the project is created.
32+
</CodeGroup>
33+
</Step>
2634

27-
3. **Deploy the Project**
28-
After choosing a template or importing a repository, click the **Deploy** button. This action initiates the deployment process, setting up your project's endpoint and configurations based on the selected template.
35+
<Step title="Authenticate">
36+
Sign up or log in to authenticate:
2937

30-
### Next Steps
38+
<CodeGroup>
39+
```bash Signup
40+
hyp signup
41+
```
3142

32-
Once the deployment process is complete, you can:
43+
```bash Login
44+
hyp login
45+
```
3346

34-
- Access the project’s GraphQL endpoint at `<project-slug>-<org-slug>@hypermode.app/graphql`.
35-
- Configure additional project settings.
36-
- Begin integrating with your project's API by following the steps outlined in the [Integrate API](/integrate-api) section.
47+
</CodeGroup>
3748

38-
For further guidance on project configuration and management, refer to the [Modify Project](/modify-project) documentation.
49+
</Step>
50+
<Step title="Initialize the project">
51+
To build and prepare your Modus app for the Hypermode Platform, run:
52+
53+
```bash
54+
hyp init
55+
```
56+
57+
This command adds a default GitHub Action to build and deploy your Hypermode functions, along with importing any additional configuration files.
58+
59+
</Step>
60+
<Step title="Push app to GitHub">
61+
Push your app to GitHub to initiate the deployment.
62+
</Step>
63+
<Step title="View your project">
64+
Find your project by signing in to the [Hypermode Platform](hypermode.com/sign-in).
65+
</Step>
66+
</Steps>
67+
68+
#### Alternatively:
69+
70+
If you’re starting from the Hypermode Platform instead of the CLI, follow these steps:
71+
72+
<Steps>
73+
<Step title="Create an account">
74+
Visit the [Hypermode Sign-Up Page](http://hypermode.com/sign-up) to create
75+
an account and an organization.
76+
</Step>
77+
<Step title="Access your organization home">
78+
After signing up, navigate to the [Organization
79+
Home](http://hypermode.com/go) to view and manage your organization.
80+
</Step>
81+
<Step title="Create a new project">
82+
From the organization home, create a new project by clicking [New
83+
Project](http://hypermode.com/new). Provide the project name, description,
84+
and select your language or runtime (e.g., AS/Go).
85+
</Step>
86+
<Step title="Sync your project">
87+
When initializng your project from the Hypermode CLI, select your existing
88+
project to sync to your Modus app.
89+
</Step>
90+
</Steps>
137 KB
Loading
241 KB
Loading

integrate-api.mdx

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,39 @@
11
---
22
title: Integrate API
3-
description: ""
3+
description: "Use the project's API endpoint and token"
44
---
55

6-
<Warning>API endpoint + keys</Warning>
6+
## API Endpoint
7+
8+
You can find your project's API endpoint in your project dashboard. The endpoint follows this format: `https://<project-slug>-<org-slug>.hypermode.app/graphql`.
9+
10+
## API Token
11+
12+
In your project dashboard, navigate to Settings -> API Keys to find your API token.
13+
14+
You can access the API by passing the API token in the `Authorization` header. Here's an example using the `fetch` API in JavaScript:
15+
16+
<CodeGroup>
17+
18+
```javascript index.js
19+
const endpoint = ""; // your API endpoint
20+
const key = ""; // your API key
21+
// your graphql query
22+
const query = `query {
23+
...
24+
}`;
25+
26+
const response = await fetch(endpoint, {
27+
method: "POST",
28+
headers: {
29+
"Content-Type": "application/json",
30+
Authorization: key,
31+
},
32+
body: JSON.stringify({
33+
query: query,
34+
}),
35+
});
36+
const data = await response.json();
37+
```
38+
39+
</CodeGroup>

modify-organization.mdx

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,26 @@ description: ""
55

66
Within an organization, you can modify the name and slug to align with your naming conventions and organizational structure.
77

8-
### Steps to Modify an Existing Organization
8+
### Steps to modify an existing organization
99

10-
1. **Navigate to the Organization Settings**
10+
<Steps>
11+
<Step title="Navigate to the organization settings">
1112
To modify an organization, navigate to the top-level navigation bar and select the organization you want to update. Once you are in the organization’s scope, go to the **Settings** tab in the horizontal navigation.
12-
13-
2. **Edit Organization Settings**
13+
</Step>
14+
<Step title="Edit organization settings">
1415
In the **Organization Settings** section, you can:
1516

16-
- **Change the Organization Name**: Update the organization’s name as needed to reflect your current organizational structure or naming conventions.
17-
- **Update the Organization Slug**: Modify the organization slug if required.
17+
- **Change the organization name**: Update the organization’s name as needed to reflect your current organizational structure or naming conventions.
18+
- **Update the organization slug**: Modify the organization slug if required.
19+
- **Slug requirements**: Organization slugs must be 25 characters or less and can only contain letters and numbers. They must not start or end with a dash (`-`).
20+
21+
> **Note**: Changing the organization or project slug will also update the GraphQL endpoints for all associated projects. Ensure that any clients or integrations using the old endpoints are updated accordingly.
1822
19-
- **Slug Requirements**: Organization slugs must be 25 characters or less and can only contain letters and numbers. They must not start or end with a dash (`-`).
23+
</Step>
2024

21-
> **Note**: Changing the organization or project slug will also update the GraphQL endpoints for all associated projects. Ensure that any clients or integrations using the old endpoints are updated accordingly.
25+
</Steps>
2226

23-
### Saving Changes
27+
### Saving changes
2428

2529
After making any modifications, click the **Save** button to apply your updates. Keep in mind that updating the organization slug may temporarily disrupt service availability until the updates are fully applied.
2630

@@ -32,7 +36,7 @@ these changes with your team or stakeholders.
3236

3337
</Warning>
3438

35-
### Deleting an Organization
39+
### Deleting an organization
3640

3741
If you no longer need an organization, you can delete it permanently. To delete an organization, all projects must be deleted first.
3842

modify-project.mdx

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,24 @@ title: Modify Project
33
description: ""
44
---
55

6-
<Warning>- updating project name and slug - updating GitHub connection</Warning>
7-
86
Once a project has been created, you can modify its name and slug through the project’s settings.
97

10-
### Steps to Modify an Existing Project
8+
### Steps to modify an existing project
119

12-
1. **Navigate to the Project Settings**
10+
<Steps>
11+
<Step title="Navigate to the project settings">
1312
To edit a project, first navigate to the top-level navigation bar and select the project you want to modify. Once you are in the project scope, go to the **Settings** tab, which is located in the left-side navigation menu.
14-
15-
2. **Edit Project Settings**
13+
</Step>
14+
<Step title="Edit project settings">
1615
In the **Project Settings** section, you can:
1716

18-
- **Change the Display Name**: Update the display name of your project to reflect new functionalities or naming conventions.
19-
- **Update the Project Slug**: Modify the project slug if needed. Project slugs must be 100 characters or less, must not start or end with a dash (`-`), and only include letters and numbers.
20-
> **Note**: Changing the organization slug or project slug will also update the project's GraphQL endpoint. If the project slug is longer than 31 characters, the slug will be truncated and will include a random string to maintain uniqueness. Ensure that any clients or integrations using the old endpoint are updated accordingly.
17+
- **Change the display name**: Update the display name of your project to reflect new functionalities or naming conventions.
18+
- **Update the project slug**: Modify the project slug if needed. Project slugs must be 100 characters or less, must not start or end with a dash (`-`), and only include letters and numbers. > **Note**: Changing the organization slug or project slug will also update the project's GraphQL endpoint. If the project slug is longer than 31 characters, the slug will be truncated and will include a random string to maintain uniqueness. Ensure that any clients or integrations using the old endpoint are updated accordingly.
19+
20+
</Step>
21+
</Steps>
2122

22-
### Saving Changes
23+
### Saving changes
2324

2425
After making any modifications, click the **Save** button to apply your updates. Keep in mind that updating the project slug may temporarily disrupt service availability until the updates are fully applied.
2526

@@ -31,10 +32,10 @@ these changes with your team or stakeholders.
3132

3233
</Warning>
3334

34-
### Deleting a Project
35+
### Deleting a project
3536

3637
If you no longer need a project, you can delete it permanently. Deleting a project will remove all associated data, configurations, and its GraphQL endpoint.
3738

38-
To delete a project, go to the top-level navigation bar and select the project you want to delete. In the project scope, click on the **Settings** tab located in the left-side navigation menu.
39+
To delete a project, go to the top-level navigation bar and select the project you want to delete. In the project scope, click the **Settings** tab located in the left-side navigation menu.
3940

40-
Within **Settings** click on the **Delete** section. Click on the **Delete** button and enter the project’s name as confirmation. This action is irreversible and will permanently delete all project data and configurations.
41+
Within **Settings** click the **Delete** section. Click **Delete** and enter the project’s name as confirmation. This action is irreversible and will permanently delete all project data and configurations.

0 commit comments

Comments
 (0)