What this page is for
Use/ to:
- Paste or type content
- Let the editor detect the language
- Choose sharing and privacy options
- Save the paste
- Open a share dialog
- Get a QR code after saving
Layout
The page is split into two parts:- A large editor on the left
- A tool panel on the right

Editor behavior
The editor:- Tracks your current text live
- Tries to auto-detect the language
- Shows line numbers
- Formats code where appropriate
- Intercepts
Ctrl+S/Cmd+Sso the browser does not open “Save As” - Stores an unsaved draft in your browser’s local storage (only for content up to 4 KB)
Tool panel
The tool panel contains:- A language badge
- “Advanced Options”
SaveandSharebuttonsCopyandClearbuttons- Login or dashboard/logout buttons at the bottom

Advanced Options
Visibility
You can choosePublic, Unlisted or Private.
When you choose Private:
- If you are logged in, the next paste is saved as private
- If you are not logged in, SunPaste warns you and switches the choice to Unlisted

Custom URL slug
Use this when you want a human-readable URL instead of a random 8-character slug. Rules:- Optional field
3to64characters- Letters, numbers, and hyphens only

Expiration
Options:Never, 10 Minutes, 1 Hour, 24 Hours, 7 Days, 30 Days, 1 Year, Custom.
If you choose Custom, a date/time picker appears and you must choose a future value.
When the paste reaches its expiration time:
- The viewer page shows an expired state
- API endpoints return
410 Gone


Burn After Read
This toggle is labeledSelf-destruct after first view.
- The first viewer sees a warning page
- Once they confirm, the content is shown
- The paste is permanently deleted after that view
- Burn-after-read and timed expiration are mutually exclusive in the UI
- Turning burn-after-read on disables the expiration controls
- Choosing an expiration other than
Neverturns the burn toggle off, unless burn is forced globally by admin settings



Password protection
This toggle is labeledEnable password protection. When you save or share with it enabled:
- A password dialog appears
- You must enter a password before the paste is created
- The password must be at least 6 characters and contain both letters and numbers

Preview toggle
The preview button switches the editor between raw source and preview mode. Preview is useful for Markdown, HTML, JSON and CSV. For other languages, the component may say preview is not available and ask you to show the raw source instead.
QR code area
Before you save, this area shows a placeholder. After you save successfully:- A QR preview appears
- You can choose
Small,Medium, orLarge - You can download the QR code image for the last saved paste


Main buttons
Save (Ctrl + S)
When you click Save:
- SunPaste reads the current editor content.
- If password protection is enabled, it first asks you for the password.
- The paste is created.
- The QR preview is updated.
- The browser address bar changes to
/view/{slug}even though you stay on the editor page. - A notification appears.
- Normal save: success notification showing the visibility type
- Burn-after-read save: warning notification explaining it is a one-time paste
- No content: warning notification
- Invalid custom slug: field error and notification
- Size limit exceeded: error notification with the actual and allowed size

Share
When you clickShare, SunPaste saves first, then opens a share dialog. The dialog always shows the browser view URL and a copy button.
The raw URL is only shown when all of these are true:
- The paste is not private
- The paste is not password-protected
- Playground private mode is off

Copy
Copy copies the current editor content to your clipboard.
Clear
Clear resets:
- The editor’s content
- The detected language
- Visibility back to Public
- Burn-after-read back to off
- Password protection back to off
- Expiration back to Never
- Custom slug
- The QR panel back to its placeholder state

Bottom buttons
If you are not logged in, the page showsLogin. If you are logged in, it shows Dashboard and Logout.
- If playground private mode is enabled and you are anonymous, the page blocks saving/sharing and asks you to log in.
- Anonymous users cannot save private pastes.
- Public and Unlisted currently behave almost the same for direct-link access in the UI.
- QR codes are generated for each saved paste in three sizes.
