Storage implementations for AT Protocol OAuth applications. Provides a simple key-value storage interface with implementations for in-memory and SQLite backends.
Changelog#
All notable changes to this project will be documented in this file.
[1.0.0] - 2025-12-05#
Breaking Changes#
- Renamed
valTownAdaptertosqliteAdapter- the adapter works with any SQLite driver using theexecute({ sql, args })pattern (Val.Town, libSQL, Turso, etc.)
Migration#
Replace:
import { valTownAdapter } from "@tijs/atproto-storage";
With:
import { sqliteAdapter } from "@tijs/atproto-storage";
[0.1.1] - 2025-11-27#
Fixed#
- Formatting issues in CI workflow
[0.1.0] - 2025-11-27#
Added#
- Initial release
OAuthStorageinterface for key-value storage with TTL supportMemoryStorageimplementation for testing and developmentSQLiteStorageimplementation for production use- Adapter pattern for SQLite backends:
valTownAdapter()for Val.Town sqlite and libSQL/TursodenoSqliteAdapter()for @db/sqlite (Deno native)betterSqlite3Adapter()for better-sqlite3 (Node.js)
- Automatic table creation and schema management
- TTL-based expiration with cleanup method
- Comprehensive test suite