Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: CI

on:
pull_request:

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun run lint
- run: bun run typecheck
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ build/
tmp/
temp/
.env
*.sqlite
*.sqlite-journal
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Ignore artifacts:
node_modules
build
coverage
bun.lock
src/openapi/api.ts
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@
### Installation

```shell script
npm i
npm start
bun install
bun start
```

Works well on Heroku (you'll need `Redis` addon)
One SQLite file (`bytes.sqlite` by default). `entries` holds `namespace`, `key`, and a `BLOB` value. `sequences` holds the namespace-to-counter relation, with `seq` as an `INTEGER`.

### Environment variables

Set them as env variables or put them into `.env` file in project root dir.

- `REDISCLOUD`
- `PORT` — HTTP port (default `3001`)
- `DB_PATH` — SQLite file path (default `bytes.sqlite`)
- `TRUST_PROXY` — hop count to trust for `X-Forwarded-For` (unset means the limiter uses the socket address)

### OpenAPI

Expand Down
300 changes: 300 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

160 changes: 0 additions & 160 deletions examples/synced-async-storage.ts

This file was deleted.

Loading
Loading