Getting started
1
Open Code Pens
Click Code Pens in the sidebar. If it isn’t pinned, find it under More.
2
Create a new pen
Click New Pen. The editor opens with an HTML field, a CSS field, and a live preview panel.
3
Write your code
Type in the HTML or CSS fields. The preview refreshes as you type — faster than a second. JavaScript goes inside
<script> tags in your HTML field; there’s no separate JS tab.4
Save
Saving is automatic. About a second after you stop typing, your changes are saved. You don’t need to click anything.
5
Share
When your pen is ready, click Publish in the header, then Copy link. Paste the URL anywhere — no login is needed to view it.
What you can do
Live preview editor
HTML and CSS fields with an instant sandboxed preview that refreshes as you type.
CDN libraries
Load Chart.js, Alpine.js, Tailwind, or any CDN-hosted library at runtime.
Public sharing
Publish to a permanent URL that works for anyone without a Navis Ops account.
Social unfurling
Links unfurl with title and preview image in Slack, Discord, and Twitter.
Unpublish and republish
Take a pen offline without losing its URL — republish to bring the same link back.
Project linking
Attach a pen to a project so it shows up in the project’s Code Pens tab.
Editor
The editor has two fields: HTML and CSS. The live preview updates in real time as you type. What you can use in a pen:- Any valid HTML, including
<canvas>, forms, modals,<video>,<audio>, and custom elements - CSS with custom properties, animations, transitions, and
@mediaqueries - JavaScript inside
<script>tags in the HTML field — modern browser APIs,fetch,IntersectionObserver,requestAnimationFrame, and more - External libraries loaded from a CDN (unpkg, jsDelivr, esm.sh)
There is no separate JavaScript tab. Write your scripts inside
<script> tags in the HTML field.Using libraries
To use a library, add a<script> tag in your HTML field pointing to a CDN URL. No build step or package manager is needed.
Sharing
Publishing a pen creates a permanent public URL atnavisops.com/p/<slug>. Anyone with the link can view the pen — no Navis Ops account required.
1
Publish
Click Publish in the pen editor header.
2
Copy the link
Click Copy link in the confirmation dialog. The URL is now on your clipboard.
3
Share it
Paste the URL into Slack, Discord, iMessage, email, or anywhere else. The pen is immediately accessible.
Social unfurling
When you paste a pen URL into Slack, Discord, or Twitter, the platform fetches a preview using Open Graph metadata. Navis Ops serves the pen’s title and a preview image automatically.- Slack — unfurls with the pen title and a card preview
- Discord — unfurls with the pen title and preview image
- Twitter — shows a summary card with the pen title
Social previews can lag up to 5 minutes after you rename a pen. If you update the title and share immediately, platforms may show the old title until their cache refreshes.
Unpublish and republish
Unpublishing takes the pen offline — the public URL stops working immediately for new visitors. The URL is preserved, so republishing brings the same link back online. To unpublish: open the pen, click Publish in the header, then click Unpublish. To republish: open the unpublished pen and click Publish again. The same/p/<slug> URL resumes working.
A browser tab that already has the pen loaded keeps running until the user reloads the page. Unpublishing stops new page loads immediately but doesn’t kill existing open sessions. To force a complete stop, delete the pen.
Project linking
Link a pen to a project to keep your demos and sketches alongside the related tasks and notes.1
Open the project
Go to the project’s detail page and click the Code Pens tab.
2
Link the pen
Click Link pen and select the pen you want to attach. Or drag an existing pen onto the tab.
Walkthrough: share a chart demo
You want to show a teammate a quick bar chart prototype.1
Create a pen
Click New Pen and title it Sales chart sketch.
2
Add the chart code to HTML
Paste the following into the HTML field:
3
Add some CSS
Paste the following into the CSS field:
4
Preview
The bar chart renders immediately in the preview panel. Q1, Q2, and Q3 bars appear — no page reload needed.
5
Publish and share
Click Publish, then Copy link. Paste the URL into Slack. Slack unfurls the pen’s title and a preview card. Your teammate clicks the link and sees the live chart in their browser — no login required.
Limitations
FAQ
I unpublished my pen but the URL still works in someone's browser tab.
I unpublished my pen but the URL still works in someone's browser tab.
Unpublishing stops new page loads immediately. A tab that already has the pen loaded keeps running until the user refreshes the page. To force a complete stop, delete the pen.
Can I delete a pen permanently?
Can I delete a pen permanently?
Deleting from the Code Pens list is a soft delete — you get an undo toast right after. Soft-deleted pens are hidden from your list and their public URL stops working. If you need a hard purge (to guarantee the data is fully removed), contact support.
Are JavaScript errors visible?
Are JavaScript errors visible?
Open your browser’s developer tools while viewing the pen. The sandboxed iframe surfaces console errors there. There’s no built-in console panel inside the pen editor.
Can I version or roll back a pen?
Can I version or roll back a pen?
Pens don’t have version history the way Notes do. Autosave overwrites the previous state. If you want to preserve a version, duplicate the pen before making changes.
Will the public URL change if I rename the pen?
Will the public URL change if I rename the pen?
No. The URL is based on a randomly generated slug, not the pen’s title. Renaming the pen updates the title that appears in social previews but leaves the URL unchanged.
See also
Files
Store private binaries you want to keep but not share publicly.
Notes
Write and organize rich-text content that doesn’t need a live code preview.
Projects
Link a pen to a project to keep demos alongside related tasks and notes.
MCP Connector
Connect AI assistants to your real workspace data with structured tool access.