{"_id":"stellar-api-safe","name":"stellar-api-safe","dist-tags":{"latest":"1.0.8"},"versions":{"1.0.8":{"name":"stellar-api-safe","version":"1.0.8","description":"The official Stellar API wrapper for Nakama token management bots.","main":"index.js","dependencies":{"axios":"^1.7.2","discord.js":"^14.15.3","stellar-api-core":"^1.0.0"},"_id":"stellar-api-safe@1.0.8","_nodeVersion":"24.14.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-YS91pDYSn/dsP4z1E7aBSyOXXr0RGGgi4co5eHfTV3VVytphlf7CM3gbIulBbOdaIR9ov0mKCMFYQLPc7bkWGw==","shasum":"c9b9a392b30e99a7df9ce8bdfc58aa2cf6534f3c","tarball":"https://registry.npmjs.org/stellar-api-safe/-/stellar-api-safe-1.0.8.tgz","fileCount":3,"unpackedSize":15659,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIA5S+awYKsnBqf5TSY/B7eWU5xkeGyBmi4LuIX0BFhaEAiEAl+A6y2Dz9tDzqzMSc4T0fR8xuJIN1Yxw+zTBTfSNVuo="}]},"_npmUser":{"name":"kuro1234","email":"richwebb050@gmail.com"},"directories":{},"maintainers":[{"name":"kuro1234","email":"richwebb050@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/stellar-api-safe_1.0.8_1784840319328_0.8674592094398201"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-23T20:58:39.269Z","1.0.8":"2026-07-23T20:58:39.481Z","modified":"2026-07-23T20:58:39.723Z"},"maintainers":[{"name":"kuro1234","email":"richwebb050@gmail.com"}],"description":"The official Stellar API wrapper for Nakama token management bots.","readme":"# Stellar API\n\nThe official, ultra-powerful API wrapper for building Nakama Discord Bots instantly. \n**Architecture designed & engineered by @kur0125.**\n\n## Features\n- **13 Lines of Code**: You can get a complete bot running with almost no programming experience.\n- **Dynamic Admin Panel**: It automatically creates an interactive dropdown panel in your server when new users link their tokens.\n- **Channel Auto-Cleaner**: Keeps your chat clean by automatically deleting old messages in the bot's channel.\n- **Autonomous Refreshing**: Handles Nakama token refresh cycles in the background, ensuring tokens don't expire.\n- **Webhook Integration**: Includes automatic webhook logging so you can easily track user activity.\n\n## Installation\n\n```bash\nnpm install stellar-api-core\n```\n\n## How to Use\n\nCreate an `index.js` file and paste the following code:\n\n```javascript\nconst StellarBot = require('stellar-api-core');\n\nconst bot = new StellarBot({\n    // Your Discord Bot Token (from Discord Developer Portal)\n    discordToken: 'YOUR_BOT_TOKEN_HERE',\n    \n    // The ID of the server where the bot will run\n    serverId: '123456789012345678',\n    \n    // The specific channel where the bot will spawn the panel and delete messages\n    channelId: '987654321098765432',\n    \n    // An array of Discord User IDs who are allowed to use the Dropdown panel\n    adminIds: ['YOUR_DISCORD_USER_ID'],\n    \n    // Provided by the Stellar API owner\n    apiUrl: 'https://stellarapi-backend-production.up.railway.app' \n});\n\n// Starts the bot!\nbot.start();\n```\n\n## Commands Included Automatically:\n- `/add`: Users can securely link their `token` and `refresh_token`.\n- `/refresh`: Users can manually force a refresh and download their new `token.json`.\n- `/delete`: Users can permanently wipe their token data from the server.\n\n---\n*Powered by Stellar API | @kur0125*\n","readmeFilename":"README.md","_rev":"1-f03791c009864bee6738e9d05c4a6803"}