A simple web application that simulates the Stargate dialer interface. Users can select symbols to dial an address, which is then saved to a SQLite database along with a destination (if known). The app also includes a scraper to fetch known addresses and destinations from a Stargate wiki.
- Interactive glyph dialer interface (111 symbols)
- Save dialed addresses to SQLite database
- View dial history
- Scrape known addresses from Stargate wiki (stargate.fandom.com)
- Responsive design
/stargate
├── server.js # Express server with SQLite and scraping logic
├── package.json # npm dependencies
├── public/
│ ├── index.html # Main HTML page
│ ├── style.css # Styling
│ └── app.js # Frontend logic
└── stargate.db # SQLite database (generated on first run)
- Make sure you have Node.js installed (version 12 or higher).
- Navigate to the project directory:
cd /home/aryonp/Documents/antigravity/stargate - Install the dependencies:
npm install
- Start the server:
node server.js
- Open your web browser and go to
http://localhost:3000. - Click on the glyphs to select 7 symbols (the typical Stargate address length).
- Press the "DIAL" button to save the address.
- View your dial history below the dialer.
- (Optional) Visit
http://localhost:3000/api/scrape-addressesto see scraped data from the Stargate wiki.
The application uses a SQLite database (stargate.db) to store:
symbolstable: Contains the 111 Stargate symbols.dialed_addressestable: Stores each dialed address, its destination (if known), and a timestamp.
GET /api/symbols- Returns all symbols.POST /api/dial- Saves a dialed address. Expects JSON:{ "address": "1-2-3-4-5-6" }GET /api/history- Returns the dialed address history.GET /api/scrape-addresses- Scrapes known addresses from the Stargate wiki and returns them as JSON.
- The scraper attempts to extract data from
https://stargate.fandom.com/wiki/List_of_stellar_addresses. - If the scraper fails or returns no data, it falls back to some sample data.
- The glyphs currently use placeholder symbols (numbers or simple shapes). In a real Stargate dialer, each glyph has a unique symbol. You can replace the
unicodefield in thesymbolstable with actual Stargate glyph unicode characters or images if desired.
ISC