WebSim.ai Advanced Guide

1. Generated Backend

Generated Backends allow users to call on a simulated database in their websims. To use, type '/api/backendhere'. For example, for my Underground Martian Expedition I used '/api/martianplants'. When the user asks for a plant, it gives back a generated plant and its information from a simulated database.

2. Real Backend

WebSim allows users to call on functioning real world APIs. In this example, I asked my websim to use Leaflet's open source mapping software, along with OpenMeteo. I didn't even provide it a link, but it was able to properly find what it needed. The result was a worldwide map that could be clicked in any location in order to see its current weather.

3. HTMX Streaming

WebSim.ai leverages HTMX streaming to provide seamless, dynamic updates to your web pages without full page reloads.

Example: Implement a live chat feature using HTMX streaming for real-time message updates.
Tip: HTMX streaming is great for creating responsive, app-like experiences in your WebSim projects.

4. Plugins

Extend the functionality of your WebSim.ai projects with our growing library of plugins. These pre-built components can be easily integrated into your simulated websites.

Example: Add a weather widget to your page using the WebSim Weather Plugin.
Tip: Check the plugin marketplace regularly for new additions and updates.

5. Context Management

WebSim.ai provides powerful context management tools to help you maintain consistency across your simulated web universe.

Example: Use context variables to maintain user state across multiple pages in your WebSim project.
Note: Proper context management is crucial for creating cohesive, multi-page experiences.

6. !Continue

The !Continue feature allows you to expand and elaborate on your WebSim.ai creations, providing a way to generate additional content or functionality.

Example: Use !Continue to generate more articles for a blog or additional levels for a game.
Tip: Experiment with different prompts and instructions to guide the continuation process.