You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Slangroom is a plugin system to enhance the domain-specific Zencode language, allowing to define custom operations to new sentences and making it easy to execute fast cryptographic operations on any data structure.
28
+
Slangroom is a plugin system to enhance the domain-specific [Zencode language](hhttps://dev.zenroom.org/#/), allowing to define custom operations to new sentences and making it easy to execute fast cryptographic operations on any data structure.
30
29
31
30
Zencode has a **no-code** approach. It is a domain-specific language (DSL) **similar to human language**. One can process large data structures through complex cryptographic and logical transformations.
32
31
33
32
Zencode helps developers to **empower people** who know what to do with data: one can write and review business logic and data-sensitive operations **without learning to code**.
34
33
35
-
### To use it head your browser to [https://apiroom.net/](https://apiroom.net)
34
+
Start by reading the [full documentation](https://dyne.org/slangroom/).
35
+
36
+
***
37
+
38
+
<divid="toc">
36
39
37
-
<detailsid="toc">
38
-
<summary><strong>🚩 Table of Contents</strong> (click to expand)</summary>
40
+
### 🚩 Table of Contents <!-- omit in toc -->
39
41
42
+
-[💾 Install](#-install)
40
43
-[🎮 Quick start](#-quick-start)
44
+
- [🌐 Usage in the browser](#-usage-in-the-browser)
Given I fetch the local timestamp in seconds and output into 'timestamp'
118
+
Given I have a 'time' named 'timestamp'
119
+
Then print the 'timestamp'
120
+
`;
121
+
const data = {};
122
+
const keys = {};
123
+
124
+
const res =awaitslangroom.execute(script, { data, keys })
125
+
```
126
+
127
+
If you do not wwant to integrate slangroom in your code but wwant to use it, you can simply use:
128
+
*[ncr](https://github.com/forkbombEu/ncr): No code REST API server based on slangroom
129
+
*[slangroom-exec](https://github.com/dyne/slangroom-exec): CLI tool to run slangroom contracts (offers also go bindings)
130
+
*[twinroom](https://github.com/forkbombEu/twinroom): Create your own CLI tool that under the hoods run slangroom contracts.
131
+
132
+
### 🌐 Usage in the browser
133
+
134
+
Slangroom can also be directly used in the browser thorugh the plugin @slangroom/browser. This plugin at the moment contains only a subsets of plugin that are:
both of this dependencies can be install with [mise](https://mise.jdx.dev/) by simply running `mise install` in the root of this repository. So the steps to build slangroom are:
186
+
187
+
```sh
188
+
# clone it
189
+
git clone https://github.com/dyne/slangroom
190
+
cd slangroom
191
+
192
+
# if you want to handle node and pnpm deps with mise now run: mise install
193
+
194
+
# install slangroom dependencies
195
+
pnpm i
196
+
# build slangroom
197
+
pnpm build
198
+
```
51
199
200
+
**[🔝 back to top](#toc)**
201
+
202
+
***
203
+
## 📋 Testing
204
+
205
+
In order to test slangroom you will need to:
206
+
* have a redis server running on your machine, it usually can be started with:
Given I connect to 'database' and send statement 'statement' and send parameters 'parameters' and execute sql statement with parameters and output into 'result'
3
+
Given I connect to 'database' and send statement 'statement' and send parameters 'parameters' and execute parametrized sql statement and output into 'result'
0 commit comments