Skip to content

Commit 8c6677d

Browse files
committed
-
1 parent 6b947cb commit 8c6677d

12 files changed

+73
-77
lines changed

content/posts/add-llm-to-your-cloud.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ In this article, I'll go over how to use the LLM (or GPT) capabilities of [tauby
2626
A Taubyte Cloud can provide LLM capabilities through what we call a Satellite. In this case it's [taubyte-llama-satellite](https://github.com/samyfodil/taubyte-llama-satellite) which exports llama.cpp capabilities to the Taubyte Virtual Machine, thus giving Serverless Functions (or DFunctions, as per Taubyte's terminology) LLM features.
2727

2828
## LLAMA SDK
29-
Satellites export low-level functions that aren't very intuitive to use directly. Fortunately, it's possible to address that with a user-friendly SDK. The [Go](https://go.dev/) SDK for taubyte-llama-satellite](https://github.com/samyfodil/taubyte-llama-satellite) can be found [here](https://github.com/samyfodil/taubyte-llama-satellite/tree/main/sdk).
29+
Satellites export low-level functions that aren't very intuitive to use directly. Fortunately, it's possible to address that with a user-friendly SDK. The [Go](https://go.dev/) SDK for [taubyte-llama-satellite](https://github.com/samyfodil/taubyte-llama-satellite) can be found [here](https://github.com/samyfodil/taubyte-llama-satellite/tree/main/sdk).
3030

3131
## Get Ready
3232
Before proceeding, let's ensure you have a project and a DFunction ready to go. If not, please refer to ["Create a Function"](https://tau.how/guides/build/02-guide/02-create-a-dfunc/).
@@ -147,9 +147,7 @@ package lib
147147

148148
import (
149149
"github.com/taubyte/go-sdk/event"
150-
"github.com/samyf
151-
152-
odil/taubyte-llama-satellite/sdk"
150+
"github.com/samyfodil/taubyte-llama-satellite/sdk"
153151
"io"
154152
)
155153

content/posts/add-llm-to-your-project.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ In this article, I'll go over how to use the LLM (or GPT) capabilities of [tauby
2525
A Taubyte Cloud can provide LLM capabilities through what we call a Satellite. In this case it's [taubyte-llama-satellite](https://github.com/samyfodil/taubyte-llama-satellite) which exports llama.cpp capabilities to the Taubyte Virtual Machine, thus giving Serverless Functions (or DFunctions, as per Taubyte's terminology) LLM features.
2626

2727
## LLAMA SDK
28-
Satellites export low-level functions that aren't very intuitive to use directly. Fortunately, it's possible to address that with a user-friendly SDK. The [Go](https://go.dev/) SDK for taubyte-llama-satellite](https://github.com/samyfodil/taubyte-llama-satellite) can be found [here](https://github.com/samyfodil/taubyte-llama-satellite/tree/main/sdk).
28+
Satellites export low-level functions that aren't very intuitive to use directly. Fortunately, it's possible to address that with a user-friendly SDK. The [Go](https://go.dev/) SDK for [taubyte-llama-satellite](https://github.com/samyfodil/taubyte-llama-satellite) can be found [here](https://github.com/samyfodil/taubyte-llama-satellite/tree/main/sdk).
2929

3030
## Get Ready
3131
Before proceeding, let's ensure you have a project and a DFunction ready to go. If not, please refer to ["Create a Function"](https://tau.how/guides/build/02-guide/02-create-a-dfunc/).
@@ -146,9 +146,7 @@ package lib
146146

147147
import (
148148
"github.com/taubyte/go-sdk/event"
149-
"github.com/samyf
150-
151-
odil/taubyte-llama-satellite/sdk"
149+
"github.com/samyfodil/taubyte-llama-satellite/sdk"
152150
"io"
153151
)
154152

content/posts/be-competitive-in-few-minutes.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ $ curl https://get.tau.link/tau | sh
136136
> It's worth noting that a single host can support multiple nodes, provided their ports do not overlap. However, for the purposes of this guide, we will maintain a one-node-per-host configuration.
137137
138138
Upon successful installation, you should see an output similar to the following:
139-
```
139+
```bash
140140
% Total % Received % Xferd Average Speed Time Time Time Current
141141
Dload Upload Total Spent Left Speed
142142
100 3982 100 3982 0 0 3962 0 0:00:01 0:00:01 --:--:-- 3966
@@ -156,7 +156,7 @@ The configuration process for a node is straightforward and can be executed with
156156
```sh
157157
$ sudo tau config generate -n enterprise.starships.ws \
158158
-s compute --protos all --ip 34.133.173.124 \
159-
--dv --swarm
159+
--dv --swarm
160160
```
161161

162162
Here's a quick rundown of the options used:
@@ -170,7 +170,7 @@ Here's a quick rundown of the options used:
170170
> Note: It's generally not advisable to enable all protocols on a single node due to potential conflicts and resource constraints. This article simplifies the setup for demonstration purposes. Adjustments to the protocol configuration can easily be made with a single command, which we will explore in future discussions.
171171
172172
Upon successful configuration, you'll receive the node's ID as confirmation:
173-
```
173+
```bash
174174
[INFO] ID: 12D3KooWKv5oNF2a6h9sYzRUPEAaYe6feTbBbcLYZYVFrMDDCHzY
175175
```
176176

@@ -218,7 +218,6 @@ domains:
218218
plugins: {}
219219
```
220220
> Should the location be inaccurately determined, you have the option to correct it manually.
221-
222221
The final step involves validating the configuration to ensure its accuracy and completeness:
223222
```sh
224223
$ sudo tau conf validate -s compute
@@ -284,7 +283,7 @@ $ sudo systemctl status tau@compute
284283
```
285284

286285
You should see output similar to the following, indicating that the `tau@compute` service is active and running:
287-
```
286+
```bash
288287
● tau@compute.service - Taubyte Tau Service Running compute
289288
Loaded: loaded (/lib/systemd/system/tau@.service; enabled; vendor preset: enabled)
290289
Active: active (running) since Fri 2024-02-09 22:43:52 UTC; 1min 5s ago
@@ -352,6 +351,7 @@ You'll be prompted to enter a password for the encryption:
352351
```txt
353352
Password?
354353
```
354+
355355
> Remember this password; it's crucial for the subsequent steps.
356356

357357
The exported configuration will resemble the following (omit the `location` to let it be automatically determined for the other nodes):
@@ -422,12 +422,12 @@ With the template and necessary preparations in place, proceed to configure the
422422
- **For the Second Host:**
423423
```sh
424424
$ sudo tau config gen --ip 34.130.131.76 --use compute.tmpl.yaml --bootstrap /ip4/34.133.173.124/tcp/4242/p2p/12D3KooWKv5oNF2a6h9sYzRUPEAaYe6feTbBbcLYZYVFrMDDCHzY
425-
```
425+
```
426426

427427
- **For the Third Host:**
428428
```sh
429429
$ sudo tau config gen --ip 35.235.122.141 --use compute.tmpl.yaml --bootstrap /ip4/34.133.173.124/tcp/4242/p2p/12D3KooWKv5oNF2a6h9sYzRUPEAaYe6feTbBbcLYZYVFrMDDCHzY
430-
```
430+
```
431431

432432
Important considerations:
433433
- Utilize the correct IP addresses for each host.
@@ -468,7 +468,7 @@ Running a DNS lookup should now reflect all active hosts:
468468
![](/blog/images/slimdig-all-seer-tau-ent-starships-ws.png)
469469

470470
- **For the Generated Domain:** Delegate the specified subdomain to your cloud by adding the appropriate `NS` entry, enhancing domain management and flexibility.
471-
![](/iamges/add-ns-entry-s-ftll-ink.png)
471+
![](/blog/images/add-ns-entry-s-ftll-ink.png)
472472

473473
### Bootstrapping for Recovery and Expansion
474474
Ensure all nodes are aware of each other to facilitate network resilience and data consistency:
@@ -495,7 +495,7 @@ To extend our cloud's reach, we proceed to configure the additional nodes with p
495495
- **On the Third Host**:
496496
```sh
497497
$ sudo tau config gen --ip 35.235.122.141 --use compute.tmpl.yaml --bootstrap /ip4/34.133.173.124/tcp/4242/p2p/12D3KooWKv5oNF2a6h9sYzRUPEAaYe6feTbBbcLYZYVFrMDDCHzY
498-
```
498+
```
499499

500500
**Important**: Use the correct IP addresses for each host and the first node's multi-address for initial discovery. You'll be prompted to enter the password established during the template creation phase—this step is crucial for maintaining security and consistency across your cloud infrastructure.
501501

content/posts/branches-taubyte.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Both **Tau** and **Dream** support running on branches.
2424
## Default Behavior
2525

2626
By default:
27+
2728
- **Tau** (production) runs on `main` and `master` branches
2829
- **Dream** (local) also defaults to these branches
2930

@@ -92,19 +93,19 @@ This time it should **succeed**. If you imported a project with existing functio
9293

9394
## Commands Reference
9495

95-
| Command | Description |
96-
|---------|-------------|
97-
| `dream new multiverse` | Start Dream on default branch (main) |
98-
| `dream new multiverse -b dev` | Start Dream on `dev` branch |
99-
| `dream inject push-all` | Trigger builds for all repos |
96+
| Command | Description |
97+
| ----------------------------- | ------------------------------------ |
98+
| `dream new multiverse` | Start Dream on default branch (main) |
99+
| `dream new multiverse -b dev` | Start Dream on `dev` branch |
100+
| `dream inject push-all` | Trigger builds for all repos |
100101

101102
## Troubleshooting
102103

103-
| Issue | Cause | Solution |
104-
|-------|-------|----------|
105-
| "Reference not found" | Branch doesn't exist on remote | Create branch in console |
104+
| Issue | Cause | Solution |
105+
| --------------------- | --------------------------------- | ------------------------------------ |
106+
| "Reference not found" | Branch doesn't exist on remote | Create branch in console |
106107
| Wrong branch building | Dream started on different branch | Restart Dream with correct `-b` flag |
107-
| Changes not appearing | Built on wrong branch | Verify console shows correct branch |
108+
| Changes not appearing | Built on wrong branch | Verify console shows correct branch |
108109

109110
## Best Practices
110111

@@ -126,4 +127,3 @@ You've learned how to:
126127
Branching enables safe, isolated development that follows industry best practices. You can experiment freely knowing your main branch stays stable until you're ready to merge.
127128

128129
Next, learn how to [ship to production](/blog/posts/ship-to-production-taubyte) when your project is ready.
129-

content/posts/build-your-cloud.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ In this article, I'll go over how to use the LLM (or GPT) capabilities of [tauby
2626
A Taubyte Cloud can provide LLM capabilities through what we call a Satellite. In this case it's [taubyte-llama-satellite](https://github.com/samyfodil/taubyte-llama-satellite) which exports llama.cpp capabilities to the Taubyte Virtual Machine, thus giving Serverless Functions (or DFunctions, as per Taubyte's terminology) LLM features.
2727

2828
## LLAMA SDK
29-
Satellites export low-level functions that aren't very intuitive to use directly. Fortunately, it's possible to address that with a user-friendly SDK. The [Go](https://go.dev/) SDK for taubyte-llama-satellite](https://github.com/samyfodil/taubyte-llama-satellite) can be found [here](https://github.com/samyfodil/taubyte-llama-satellite/tree/main/sdk).
29+
Satellites export low-level functions that aren't very intuitive to use directly. Fortunately, it's possible to address that with a user-friendly SDK. The [Go](https://go.dev/) SDK for [taubyte-llama-satellite](https://github.com/samyfodil/taubyte-llama-satellite) can be found [here](https://github.com/samyfodil/taubyte-llama-satellite/tree/main/sdk).
3030

3131
## Get Ready
3232
Before proceeding, let's ensure you have a project and a DFunction ready to go. If not, please refer to ["Create a Function"](https://tau.how/guides/build/02-guide/02-create-a-dfunc/).
@@ -147,9 +147,7 @@ package lib
147147

148148
import (
149149
"github.com/taubyte/go-sdk/event"
150-
"github.com/samyf
151-
152-
odil/taubyte-llama-satellite/sdk"
150+
"github.com/samyfodil/taubyte-llama-satellite/sdk"
153151
"io"
154152
)
155153

content/posts/cicd-taubyte.md

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,13 @@ Taubyte comes with a **built-in CI/CD system**. Every time you push changes to t
2525

2626
The build process is defined inside the **`.taubyte` folder**, which lives at the root of your codebase. You'll find this folder in the code of any function, website, or library.
2727

28-
![Builds page with eye and stack icons](/blog/images/hitchhikers-guide/builds-eyeicon-list-stackicon.png)
29-
3028
### Folder Contents
3129

32-
| File | Purpose |
33-
|------|---------|
34-
| `config.yaml` | Defines the build workflow |
35-
| `build.sh` | Script executed by the workflow |
36-
| Additional files | Build-specific assets |
30+
| File | Purpose |
31+
| ---------------- | ------------------------------- |
32+
| `config.yaml` | Defines the build workflow |
33+
| `build.sh` | Script executed by the workflow |
34+
| Additional files | Build-specific assets |
3735

3836
## The Configuration File
3937

@@ -59,12 +57,12 @@ workflow:
5957
6058
### Configuration Breakdown
6159
62-
| Field | Description | Example |
63-
|-------|-------------|---------|
64-
| `version` | Config format version | `"1.0"` |
65-
| `environment.image` | Docker image for builds | `node:alpine` |
66-
| `environment.variables` | Environment variables | Key-value pairs |
67-
| `workflow` | Ordered list of scripts | `["generate.sh", "test.sh", "build.sh"]` |
60+
| Field | Description | Example |
61+
| ----------------------- | ----------------------- | ---------------------------------------- |
62+
| `version` | Config format version | `"1.0"` |
63+
| `environment.image` | Docker image for builds | `node:alpine` |
64+
| `environment.variables` | Environment variables | Key-value pairs |
65+
| `workflow` | Ordered list of scripts | `["generate.sh", "test.sh", "build.sh"]` |
6866

6967
## Convention Over Configuration
7068

@@ -80,16 +78,17 @@ For serverless functions, Taubyte currently supports **WebAssembly only**. We pr
8078

8179
### Official Build Containers
8280

83-
| Language | Container | Use Case |
84-
|----------|-----------|----------|
85-
| Go | `taubyte/go-wasi` | Go functions |
86-
| Go (libraries) | `taubyte/go-wasi-lib` | Go libraries |
87-
| Rust | `taubyte/rust-wasi` | Rust functions |
88-
| AssemblyScript | `taubyte/assemblyscript-wasi` | AS functions |
81+
| Language | Container | Use Case |
82+
| -------------- | ----------------------------- | -------------- |
83+
| Go | `taubyte/go-wasi` | Go functions |
84+
| Go (libraries) | `taubyte/go-wasi-lib` | Go libraries |
85+
| Rust | `taubyte/rust-wasi` | Rust functions |
86+
| AssemblyScript | `taubyte/assemblyscript-wasi` | AS functions |
8987

9088
### Go Example
9189

9290
**config.yaml**:
91+
9392
```yaml
9493
version: "1.0"
9594
environment:
@@ -99,6 +98,7 @@ workflow:
9998
```
10099

101100
**build.sh**:
101+
102102
```bash
103103
#!/bin/bash
104104
go mod tidy
@@ -108,6 +108,7 @@ tinygo build -o /out/main.wasm -target wasi .
108108
### Rust Example
109109

110110
**config.yaml**:
111+
111112
```yaml
112113
version: "1.0"
113114
environment:
@@ -117,6 +118,7 @@ workflow:
117118
```
118119

119120
**build.sh**:
121+
120122
```bash
121123
#!/bin/bash
122124
cargo build --release --target wasm32-wasi
@@ -129,13 +131,13 @@ cp target/wasm32-wasi/release/*.wasm /out/main.wasm
129131

130132
### What WASI Provides
131133

132-
| Capability | Description |
133-
|------------|-------------|
134-
| File access | Read/write files in sandbox |
135-
| Networking | HTTP requests, sockets |
136-
| Randomness | Cryptographic random numbers |
137-
| Environment | Environment variables |
138-
| Clocks | Time and timing functions |
134+
| Capability | Description |
135+
| ----------- | ---------------------------- |
136+
| File access | Read/write files in sandbox |
137+
| Networking | HTTP requests, sockets |
138+
| Randomness | Cryptographic random numbers |
139+
| Environment | Environment variables |
140+
| Clocks | Time and timing functions |
139141

140142
### Why WASI Matters for Taubyte
141143

@@ -151,6 +153,7 @@ WASI modules can interact with the outside world in a **controlled, portable way
151153
### For Functions
152154

153155
Your build must output a file at:
156+
154157
```bash
155158
/out/main.wasm
156159
```
@@ -160,6 +163,7 @@ This is the WebAssembly binary that gets deployed.
160163
### For Websites
161164

162165
All files must be placed in:
166+
163167
```bash
164168
/out/
165169
```
@@ -169,6 +173,7 @@ The entire folder contents become your static site.
169173
### Website Example
170174

171175
**config.yaml**:
176+
172177
```yaml
173178
version: "1.0"
174179
environment:
@@ -180,6 +185,7 @@ workflow:
180185
```
181186

182187
**build.sh** (for a React app):
188+
183189
```bash
184190
#!/bin/bash
185191
npm install
@@ -188,7 +194,6 @@ mkdir -p /out
188194
cp -r build/* /out/
189195
```
190196

191-
192197
## Triggering Builds
193198

194199
### In Production
@@ -220,12 +225,12 @@ dream inject push-specific <repo-id>
220225

221226
## Common Build Issues
222227

223-
| Issue | Cause | Solution |
224-
|-------|-------|----------|
225-
| `/out/main.wasm` not found | Build output in wrong location | Check `build.sh` output path |
226-
| Docker image not found | Typo in image name | Verify container name |
227-
| Build timeout | Long compilation | Optimize code, split into libraries |
228-
| Missing dependencies | Not in container | Add `npm install` or `go mod tidy` |
228+
| Issue | Cause | Solution |
229+
| -------------------------- | ------------------------------ | ----------------------------------- |
230+
| `/out/main.wasm` not found | Build output in wrong location | Check `build.sh` output path |
231+
| Docker image not found | Typo in image name | Verify container name |
232+
| Build timeout | Long compilation | Optimize code, split into libraries |
233+
| Missing dependencies | Not in container | Add `npm install` or `go mod tidy` |
229234

230235
## Conclusion
231236

@@ -239,4 +244,3 @@ Taubyte's CI/CD system is designed for simplicity:
239244
Every push builds and publishes your serverless functions and static websites automatically, keeping deployment simple and seamless.
240245

241246
Next, learn about [working with branches](/blog/posts/branches-taubyte) for feature development and testing.
242-

content/posts/create-an-online-marketplace-pt1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Steps:
8585

8686
We’ll use [agents.doc](https://github.com/taubyte/agents.doc) as documentation. Prompt your AI to generate code:
8787

88-
```
88+
```bash
8989
"Create a fully functioning simple Auth CRUD API using JWT.
9090
Use different files for organization.
9191
Use only simple and necessary code.
@@ -199,7 +199,7 @@ Backend library example: [tb_library_auth_service](https://github.com/ghir-hak/t
199199

200200
4. Prompt AI:
201201

202-
```
202+
```bash
203203
"Use TailwindCSS to create a minimalist elegant Auth page.
204204
Use the .env file for the base URL.
205205
Use window.location.origin for API calls."

0 commit comments

Comments
 (0)