Interactive Examples

vScript Examples

Explore vScript through interactive examples and see how symbolic protocols work in practice.

Choose an Example

Basic Session
Simple vScript session with identity binding and content injection
Basic Sessionvscript
1
2
3
4
vS.0ath; // identity bind
vS.enter(mode:"creative"); // session start
vS.inject("Design alt.party header");
vS.rift#worklog; // capture receipt

This example shows the fundamental vScript session lifecycle: identity binding, context setting, content injection, and state capture.

Targeted Communication
Using @ targeting and # tagging for directed actions
Targeted Communicationvscript
1
2
3
vS.compose("Poster v2 ready");
vS.notify@design#update("check figma");
vS.ping@ops("deploy queued");

Demonstrates how vScript can target specific identities (@design, @ops) and route messages through channels (#update).

State-Driven Execution
How different states influence command behavior
State-Driven Executionvscript
1
2
3
4
5
vS.enter("creative");
vS.inject("Generate concept art");
vS.setState("crisis");
vS.inject("Fix critical bug")! // forced execution
vS.recal(); // recenter state

Shows how the same inject command behaves differently in 'creative' vs 'crisis' states, and how punctuation (!) forces execution.

Sealed Operations
Protected execution with boxed scopes
Sealed Operationsvscript
1
2
3
4
vS.enter[protected];
vS.inject("Sensitive operation");
vS.rift#secure;
vS.flush!; // push despite guards

Demonstrates sealed execution contexts [protected] and secure operations for sensitive tasks.

Execution Output

Simulation Results
See how vScript commands would execute in a real environment
Select an example and click "Run Example" to see the execution simulation

Real-World Use Cases

Creative Workflows
1
2
3
vS.enter("creative");
vS.inject("Design poster");
vS.rift#portfolio;

Manage creative projects with state-aware execution and automatic portfolio logging.

Team Communication
1
2
vS.notify@team#standup;
vS.ping@ops("ready");

Route messages to specific team members and channels with contextual targeting.

Crisis Management
1
2
3
vS.setState("crisis");
vS.inject("Fix bug")!
vS.notify@all#urgent;

Handle urgent situations with forced execution and emergency broadcast capabilities.

Ready to Build?

Start implementing vScript in your own projects and discover the power of symbolic protocols.