Necropolis
Typescript ScriptUI starter template
Install / Use
/learn @adamplouff/NecropolisREADME
Necropolis
Typescript ScriptUI starter template. Run as a resizable ScriptUI Panel, headless, or from Kbar.
Includes:
- JSON
- Footer info system
- Simplified button stack building
Documentation
Getting started
- Clone the repo without history
git clone --depth 1 https://github.com/adamplouff/necropolis.git newProjName
or use Degit to clone without an origin:
degit https://github.com/adamplouff/necropolis.git
- Open the project in VS Code and CMD+Shift+F to replace
Necropolisto your new project name. It's low-tech and simple.
Main variables
Update these to change the footer.
const scriptName = 'Necropolis'
const scriptVersion = '0.1.0'
const releaseYear = '2021'
const author = 'Battle Axe'
const helpURL = 'https://battleaxe.co/'
releaseYearwill create a copyright range from the first release to the current year, or a single year if the release and current years match.helpURLbecomes the link in the [ ? ] button. Remove or leave blank to remove this link.
Buttons
Within the buildUI() function, is an array of button objects. Add new buttons with a reference to the func they should call as strings.
const buildUI = () => {
const buttons = [
{
text: 'Do cool shit',
func: 'mainFunc()',
helpTip: 'This is a tooltip'
},
]
...
Kbar support
A template for Kbar arguments is included.
switch (button.argument.toLowerCase()) {
case 'run': // Kbar argument name
mainFunc()
break;
default:
buildUI()
break;
}
Scripts
Update
(thanks to Tom Scharstein)
- Updates semantic versioning in:
package.jsonscriptVersionvariable in host.ts
Package
(thanks to Remco Janssen)
- Converts
./dist/ProjectName.jsxto jsxbin - Creates a
manual.urlfile linking to thedocsUrlin package.json - Zips up all the files as
ProjectName_0.1.0.zipinto./archive/- ProjectName.jsx
- ProjectName manual.url
- All files in
./Package/
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
