MCPcopy Index your code
hub / github.com/KiddoV/wails-pure-js-template

github.com/KiddoV/wails-pure-js-template @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
9 symbols 16 edges 3 files 7 documented · 78%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

About

This is an extremely straightforward Wails template, comprising essential web components (HTML, CSS, JS) and intentionally lacking any front-end frameworks, dependencies, or Node package management. As a result, you'll end up with an exceptionally lightweight source folder (1 - 5MB).

That being said, this is a good template for something like a Hello World application, which doesn't require you to store ~200-300MB of source files.

Instruction

  1. Do all the setup/ installation for Wails.
  2. Open command prompt on your desire directory.
  3. > wails init -n [your-app-name] -t https://github.com/KiddoV/wails-pure-js-template
  4. > cd ./[your-app-name]
  5. > wails dev
  6. Keep developing...

Live Development

To run in live development mode, run wails dev in the project directory. The frontend dev server will run on http://localhost:34115. Connect to this in your browser and connect to your application.

Building

To build a redistribute, production mode package, use wails build.

Or build with UPX for better distribution size: wails build -upx -upxflags="--best --lzma"

To use UPX, you need to download and at least put the path in the System Enviroment Variables:

Windows Capture

Adding Dependencies

You don't have to rely on npm to add dependencies.

If your application requires internet access, you can add dependencies via a CDN links.

If your application is used offline, simply download dependencies and save them in the src/libs folder, then import them in the index.html file.

E.g.

<script src="https://github.com/KiddoV/wails-pure-js-template/raw/main/libs/jquery/jquery-3.7.1.js"></script>

Core symbols most depended-on inside this repo

NewApp
called by 1
app.tmpl.go
Greet
called by 1
app.tmpl.go
startup
called by 0
app.tmpl.go
domReady
called by 0
app.tmpl.go
beforeClose
called by 0
app.tmpl.go
shutdown
called by 0
app.tmpl.go
main
called by 0
main.tmpl.go
greet
called by 0
frontend/src/main.js

Shape

Method 5
Function 3
Struct 1

Languages

Go89%
TypeScript11%

Modules by API surface

app.tmpl.go7 symbols
main.tmpl.go1 symbols
frontend/src/main.js1 symbols

For agents

$ claude mcp add wails-pure-js-template \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page