Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1,346 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Snappy

๐Ÿ“‹ Prerequisites

๐Ÿ”„ Workflow

  • โš™๏ธ !setup.bat: Configure git and install project dependencies.
  • โœ… !check.bat: Run all CI checks.
  • ๐Ÿงน !cleanup.bat: Clean up repository.
  • ๐Ÿ“ฆ !upgrade.bat: Upgrade dependencies interactively.
  • ๐Ÿ”„ !upgrade_actions.bat: Upgrade GitHub Actions.

๐Ÿงฌ Prisma workflow

Schema source of truth: packages/db-core/prisma/schema.prisma.

๐ŸŒฟ Feature branch

  1. Run bun do dev.
  2. Modify schema.prisma and restart dev server during development.

โœ… Before merge

  1. Rebase on main.
  2. Run bun do finish-feature.
  3. Review changes.
  4. Commit if ok.

โš ๏ธ Note: after bun do finish-feature, do not modify schema.prisma. If schema changed, run bun do finish-feature again.

๐Ÿš€ Deploy

๐Ÿ” Secrets

  • ๐Ÿ“ค Decrypt: bun do decrypt โ†’ secrets.prod.yaml
  • ๐Ÿ”’ Encrypt: bun do encrypt โ†’ writes secrets.prod.enc.yaml (securely save printed key as SECRETS_KEY)

secrets.prod.yaml is temporary; delete it after encrypting.

๐Ÿ™ GitHub Environment production

Secret Description
SSH_HOST Server hostname or IP
SSH_USER SSH username
SSH_PRIVATE_KEY Private SSH key (full PEM)
SECRETS_KEY Prod secrets encryption key

๐Ÿ“ฆ S3 (Reg.ru)

  • Create a dev and prod buckets, access keys and set up access rights.
  • Add secrets: S3_ACCESS_KEY, S3_SECRET_KEY, S3_BUCKET.

๐ŸŒ Local development

Dev server (bun do dev) is always at https://home.local (site) and https://home.local/app (app). The machine hostname should be home so phones and other devices on the LAN can resolve home.local. Android debug APK uses the same URL.

๐Ÿค– Android signing

  • Dev: bun do android-keys-dev
  • Prod: bun do decrypt โ†’ bun do android-keys-prod โ†’ bun do encrypt

๐Ÿ” Dev HTTPS

  1. bun do cert
    • creates $env:USERPROFILE\.snappy\cert\ folder.
  2. certutil -addstore -user Root "$env:USERPROFILE\.snappy\cert\ca.pem"
  3. bun do dev

On a phone: copy ca.pem to the device and install it as a CA certificate (Settings โ†’ Security).

๐Ÿš‡ Robokassa (shop technical settings)

  • Hash: MD5
  • ResultURL: POST https://snappy-ai.ru/api/webhooks/robokassa
  • SuccessURL: GET https://snappy-ai.ru/app/billing/robokassa/success
  • FailURL: GET https://snappy-ai.ru/app/billing/robokassa/fail

๐Ÿ“œ Logs

Server logs go to .logs/ in the repo root (created automatically; gitignored):

  • http โ€” Fastify request/access logs (HttpLog)
  • payment โ€” top-up, settle, credit, Robokassa webhook / tunnel (Log.payment)
  • auth โ€” signup reject / bonus, email send failures (Log.auth)
  • ai โ€” LLM proxy gate / debit (Log.ai)

Rotation: daily and at ~20โ€ฏMB, keep 14 files. For top-up / tunnel issues inspect .logs/payment*.log on the server and locally.

๐Ÿ› ๏ธ Technologies

๐Ÿ“Ž Service links

๐Ÿ“Š Repository & monitoring

๐ŸŽ›๏ธ AI consoles

๐ŸŒ Hosting & DNS

Mail

๐Ÿ’ณ Payments

๐Ÿค– AI (recommended)

๐Ÿค– Agents

  • ๐Ÿง  Hermes Agent โ€” Autonomous agent with memory (GitHub).
  • ๐Ÿ’ป OpenCode โ€” Open-source coding agent (GitHub).
  • ๐Ÿงช n0x โ€” The full AI stack in one browser tab (GitHub).
  • ๐Ÿงฉ Claude Code โ€” Community research mirror (GitHub).

๐Ÿ‡ท๐Ÿ‡บ Russian model providers

๐Ÿ† LLM rankings

๐Ÿ”— Links

  • assistant-ui โ€” open-source React toolkit for production AI chat experiences.

About

Telegram bot for content tuning

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages