ask-kit
v0.0.7
Published
A comprehensive gamification engine for Telegram mini-apps that enables rapid development of engaging social applications.
Downloads
23
Maintainers
Readme
ASK Kit (AppSolution Social Kit)
A comprehensive npm package containing reusable modules, templates, guides, and scripts for rapid development of Telegram mini-apps with gamification features.
Overview
ASK Kit is a unified npm package that accelerates development of Telegram mini-apps by providing ready-to-use modules for gamification, social features, and engagement mechanics. Contains reusable code, templates, development guides, and automation scripts to help you launch your MVP in 30 days.
Package Contents
Reusable Modules
- Quest and task management systems
- Streak tracking and rewards
- Referral system components
- Internal currency and economy
- Notification services
- Analytics and metrics
- User engagement features
Templates & Guides
- Project structure templates
- Development best practices
- Integration guides
- Configuration examples
Development Tools
- Build and deployment scripts
- Type definitions
- Utility functions
- Testing frameworks
Installation
npm
npm install ask-kityarn
yarn add ask-kitpnpm
pnpm add ask-kitPackage Info:
- 📦 Size: 5.7 kB (gzipped)
- 📁 Unpacked: 16.5 kB
- 🔧 TypeScript: Built-in type declarations
- 📋 Files: 13 total files
- 🌐 npm: ask-kit
Quick Start
TypeScript/ES Modules
import { dump, VERSION } from 'ask-kit'
console.log('ASK Kit Version:', VERSION)
dump() // Example utility functionCommonJS
const { dump, VERSION } = require('ask-kit')
console.log('ASK Kit Version:', VERSION)
dump() // Example utility functionReal-world Usage
In a Telegram Mini App
import { dump, VERSION } from 'ask-kit'
// Initialize your Telegram mini app
function initTelegramApp() {
console.log(`Powered by ASK Kit v${VERSION}`)
// Use ASK Kit utilities
dump() // Debug information
// Your app logic here
setupGameification()
initializeRewards()
}
// Call on app start
initTelegramApp()In a Node.js Project
const { dump, VERSION } = require('ask-kit')
console.log('Starting server with ASK Kit', VERSION)
dump()
// Your server logicComplete Examples
See the examples/ directory for complete TypeScript examples:
examples/basic-usage/- ESM TypeScript exampleexamples/commonjs-usage/- CommonJS TypeScript example
Testing the Package
# Clone the repository to test examples
git clone https://github.com/socaseinpoint/ask-kit.git
cd ask-kit
# Test ESM example
cd examples/basic-usage
npm install
npm start
# Test CommonJS example
cd ../commonjs-usage
npm install
npm startTechnical Features
- Scalable modular architecture
- Full TypeScript support
- Cross-platform compatibility
- Real-time features
- High-load ready components
- Automated testing and quality control
Tests
Comprehensive test coverage with Vitest - modern, fast testing framework.
npm test # Run all tests
npm run test:coverage # Run with coverage
npm run test:ui # Open test UI- 9 tests with 100% coverage
- Automated testing on every commit
- CI/CD integration in release workflow
API Reference
Current Exports (v0.0.6)
// Available imports
import {
dump, // Debug utility function
VERSION // Package version string
} from 'ask-kit'
// Usage
dump() // Logs: "I have no mouth but I must scream"
console.log(VERSION) // Logs: "0.0.6"Coming Soon
Future versions will include:
QuestSystem- Quest and task managementRewardSystem- Rewards and achievementsAnalytics- User engagement trackingReferralSystem- Referral program managementNotificationSystem- Push notifications- And more gamification modules!
Documentation
- Usage Guide - Complete usage examples and integration guide
- Development Guide - Setup and development workflow
- Deployment Guide - Complete publishing guide
- Quick Deploy - Fast track to npm publishing
- Architecture - System design and structure
- Changelog - Version history and updates
Browser Support
ASK Kit supports all modern browsers and Node.js environments:
- Node.js: 16+
- Browsers: Chrome 90+, Firefox 88+, Safari 14+, Edge 90+
- TypeScript: 4.3+ (built-in types)
- Module Systems: ESM, CommonJS, UMD
Contributing
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make changes and test:
npm run prepublishOnly - Commit and push:
git commit -m 'Add feature' - Open a Pull Request
# Development setup
git clone https://github.com/socaseinpoint/ask-kit.git
cd ask-kit && npm install && npm run devContact
- Telegram: @socaseinpoint
- Email: [email protected]
License
Proprietary. Contact for licensing options.
