Main JSON

Sora uses a simple JSON file to manage and integrate different streaming modules. You can easily configure new modules by editing this JSON file, adding details like the source name, URLs, and streaming settings.

JSON Fields:

Fields
Type
Description
Required?
Variables

sourceName

string

Name of the source.

-

author

-

Information about the modules author, including name and icon.

-

name

string

Name of the author.

-

icon

string

Icon of the author.

-

iconUrl

string

URL to the modules icon.

-

version

integer

Version of the module.

-

language

string

Language of the module.

-

baseUrl

string

baseUrl of the source.

-

streamType

string

Stream type of the module.

HLS, MP4

quality

string

Quality of the stream.

360p, 720p, 1080p

searchBaseUrl

string

Search url of the source. Make sure to include %s in the place where the search query will go.

%s

scriptUrl

string

Url to the raw link of the JavaScript file.

-

asyncJS

string

Set to true to load the script asynchronously.

true, false

streamAsyncJS

string

Set to true to only load the stream function asynchronously.

true, false

softsub

string

Set to true to load subtitles.

true, false

Full format:

{
   "sourceName": "YourSourceName",
   "iconUrl": "https://your-source.com/icon.png",
   "author": {
       "name": "AuthorName",
       "icon": "https://your-source.com/author-icon.png"
   },
   "version": "1.0.0",
   "language": "English (DUB)",
   "streamType": "HLS",
   "quality": "720p",
   "baseUrl": "https://api.your-source.com/",
   "searchBaseUrl": "https://your-source.com/search=%s",
   "scriptUrl": "https://your-source.com/script.js",
   "asyncJS": true,
   "streamAsyncJS": false.
   "softsub": true
}

Example:

{
   "sourceName": "Hianime",
   "iconUrl": "https://raw.githubusercontent.com/50n50/maisgay/refs/heads/main/hianime/icon.png",
   "author": {
       "name": "50/50",
       "icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:&s"
   },
   "version": "1.0.1",
   "language": "English (DUB)",
   "streamType": "HLS",
   "quality": "720p",
   "baseUrl": "https://api.animemundo.net/",
   "searchBaseUrl": "https://api.animemundo.net/api/v2/hianime/search?q=%s",
   "scriptUrl": "https://raw.githubusercontent.com/50n50/maisgay/refs/heads/main/hianime/hianime.js",
   "asyncJS": true
}

Last updated