WebSim.ai Documentation

Welcome to the comprehensive guide for WebSim.ai, a platform that allows users to create and explore simulated websites in an expansive, imaginative internet landscape.

Table of Contents

  1. Introduction
  2. Core Concepts
  3. User Interface
  4. API Documentation
  5. Advanced Features

1. Introduction

WebSim.ai is a unique platform that enables users to create and interact with simulated websites. It's designed to push the boundaries of what's possible on the internet, allowing for creative exploration of web design, content creation, and user interaction.

2. Core Concepts

Simulated Websites

Each website on WebSim.ai is a simulated space, existing in a version of the internet where anything is possible. These sites can represent alternative histories, futuristic concepts, or purely imaginative constructs.

Collaborative Creation

WebSim.ai is built on the idea of collaborative creation. Users can build upon each other's ideas, creating an interconnected web of simulated sites.

Dynamic Content

Websites on WebSim.ai are not static. They can change based on user interaction, time, or other factors, creating a dynamic and engaging experience.

3. User Interface

Home Page

The home page of WebSim.ai features several key elements:

Feed Filters

Users can filter the feed using the following options:

Website Cards

Each website in the feed is represented by a card containing:

4. API Documentation

GET /api/last_site

Retrieves the most recently created website.

Response

[
  {
    "id": "string",
    "title": "string",
    "url": "string",
    "username": "string",
    "avatar_url": "string"
  }
]

POST /api/likes

Retrieves websites liked by a user.

Request Body

{
  "userid": "string"
}

Response

{
  "data": [
    {
      "site_id": "string",
      "title": "string",
      "simulated_url": "string",
      "username": "string",
      "avatar_url": "string",
      "liked_at": "string (ISO 8601 date)"
    }
  ]
}

GET /api/bookmarks

Retrieves new bookmarks.

Response

{
  "data": [
    {
      "site_id": "string",
      "title": "string",
      "simulated_url": "string",
      "username": "string",
      "avatar_url": "string"
    }
  ]
}

GET /api/trending

Retrieves trending websites.

Query Parameters

max_age_hours: number

Response

{
  "data": [
    {
      "site_id": "string",
      "title": "string",
      "simulated_url": "string",
      "username": "string",
      "avatar_url": "string",
      "likes": number,
      "views": number
    }
  ]
}

5. Advanced Features

Dark Mode

WebSim.ai supports a dark mode, which can be activated by setting a cookie:

document.cookie = "nosleep=true; path=/";

Image Generation

Website thumbnails are dynamically generated and can be accessed at:

https://images.websim.ai/v1/site/{site_id}/{width}

User Profiles

Each user has a profile accessible at:

https://websim.ai/@{username}

Website Viewing

Individual websites can be viewed at:

https://websim.ai/c/{site_id}

This concludes the comprehensive documentation for WebSim.ai. Happy simulating!