@hasna/shortlinks 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  CLI-only shortlink management for custom domains.
4
4
 
5
- `shortlinks` creates Bitly-style short URLs, supports multiple domains, records click analytics, can run a tiny redirect server, and includes helper commands for Cloudflare DNS/Workers, `@hasna/domains`, and `@hasna/cloud` sync. Production serving can run directly against the shared RDS database with `--cloud`; local SQLite is only for explicit local/offline use.
5
+ `shortlinks` creates Bitly-style short URLs, supports multiple domains, records click analytics, can run a tiny redirect server, and includes helper commands for Cloudflare DNS/Workers, `@hasna/domains`, and package-native cloud sync. Production serving can run directly against the shared RDS database with `--cloud`; local SQLite is only for explicit local/offline use.
6
6
 
7
7
  [![npm](https://img.shields.io/npm/v/@hasna/shortlinks)](https://www.npmjs.com/package/@hasna/shortlinks)
8
8
  [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE)
@@ -127,17 +127,16 @@ This package does not install or call any removed `connect-*` packages.
127
127
 
128
128
  ## Cloud Sync
129
129
 
130
- `shortlinks` is compatible with `@hasna/cloud` conventions:
130
+ Cloud sync is optional and implemented inside this package:
131
131
 
132
132
  ```bash
133
- cloud setup
134
133
  shortlinks cloud migrate
135
134
  shortlinks cloud push
136
135
  shortlinks cloud pull
137
136
  shortlinks cloud sync
138
137
  ```
139
138
 
140
- The cloud database service name is `shortlinks`.
139
+ Set `HASNA_SHORTLINKS_CLOUD_DATABASE_URL` or configure `~/.hasna/shortlinks/cloud/config.json` to run in hybrid/cloud mode with PostgreSQL. The cloud database service name is `shortlinks`.
141
140
  Use direct RDS mode for production and live management:
142
141
 
143
142
  ```bash
@@ -151,7 +150,7 @@ shortlinks serve --cloud --host 127.0.0.1 --port 8787
151
150
  For an apex domain that needs stable A records, `infra/aws-ec2-user-data.sh` bootstraps a small EC2 redirect origin with:
152
151
 
153
152
  - `@hasna/shortlinks` installed through Bun
154
- - direct reads and click writes against the `shortlinks` RDS database through `@hasna/cloud`
153
+ - direct reads and click writes against the `shortlinks` RDS database through the package-native PostgreSQL store
155
154
  - Caddy terminating HTTPS and proxying to `shortlinks serve`
156
155
 
157
156
  The script reads the RDS password from AWS Secrets Manager through the instance role; it does not contain secret values.