# A public repo's schema file
https://github.com/docusealco/docuseal/blob/master/db/schema.rb
```

You can generate an ER diagram by inserting `liambx.com/erd/p/` into the URL:

```
https://liambx.com/erd/p/github.com/docusealco/docuseal/blob/master/db/schema.rb
      👾^^^^^^^^^^^^^^^^^👾
```

It's so easy! Isn't it? 🚀

## Tips & Tricks

### Bookmarklet for Quick Access

You can create a bookmarklet to quickly open schema files in Liam ERD. Here's how:

1. Create a new bookmark in your browser
2. Set the following JavaScript code as the URL:

```javascript
javascript:(function(){var u=window.location.href;var newUrl="https://liambx.com/erd/p/" + u.replace(/^https?:\/\//, '');window.open(newUrl,'_blank');})();
```

Now, when viewing a schema file (like `schema.rb`) on GitHub, simply click the bookmarklet to open it directly in Liam ERD! 🎯

## Appendix: Schema Format Options

### Schema Format

Liam ERD automatically detects the schema format (see [Format Auto-Detection](/docs/parser/supported-formats#format-auto-detection)). If needed, you can override the detected format using the `format` query parameter:

```
https://liambx.com/erd/p/public.example.net/path/to/file?format=schemarb
```

For more details about format detection and supported formats, check [**/docs/parser/supported-formats**](/docs/parser/supported-formats).


---
title: Troubleshooting Web Version
---

## Loading Schema Files Hosted Outside GitHub

Liam ERD Web supports loading schema files hosted on GitHub by default. When you specify a GitHub URL (e.g., `github.com/username/repo/blob/branch/path/to/schema.rb`), Liam ERD automatically converts it to a raw content URL (`raw.githubusercontent.com/username/repo/branch/path/to/schema.rb`).

However, when loading schema files hosted on platforms other than GitHub, please note the following:

### Important Notes for Files Hosted Outside GitHub

- Liam ERD Web does not perform URL conversion for non-GitHub sources
- You must provide a direct link to the raw content file, not an HTML page
- The URL should point to a page that returns only the schema file content without HTML markup

### Examples

✅ **Correct URL Format (Raw Content)**
```
https://gist.githubusercontent.com/username/gistid/raw/commitsha/filename.yml
https://gitlab.com/username/repo/-/raw/main/db/schema.rb
https://bitbucket.org/username/repo/raw/main/prisma.schema
```

❌ **Incorrect URL Format (HTML Pages)**
```
https://gist.github.com/username/gistid
https://gitlab.com/username/repo/-/blob/main/db/schema.rb
https://bitbucket.org/username/repo/src/main/prisma.schema
```