https://github.com/marksteve/hocuspocus-extension-postgres
a generic Hocuspocus persistence driver for postgres
https://github.com/marksteve/hocuspocus-extension-postgres
hocuspocus postgres
Last synced: 25 days ago
JSON representation
a generic Hocuspocus persistence driver for postgres
- Host: GitHub
- URL: https://github.com/marksteve/hocuspocus-extension-postgres
- Owner: marksteve
- Created: 2023-07-31T07:03:10.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-31T07:03:30.000Z (almost 3 years ago)
- Last Synced: 2025-01-30T14:25:16.276Z (over 1 year ago)
- Topics: hocuspocus, postgres
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/hocuspocus-extension-postgres
- Size: 29.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# hocuspocus-extension-postgres
a generic [Hocuspocus](https://tiptap.dev/hocuspocus/introduction) persistence driver for postgres
## Usage
```js
import { Logger } from '@hocuspocus/extension-logger'
import { Server } from '@hocuspocus/server'
import { Postgres } from 'hocuspocus-extension-postgres'
const port = process.env.PORT ?? 1234
const server = Server.configure({
port,
extensions: [
new Logger(),
new Postgres({
connectionString: 'postgres://postgres@localhost:5432/postgres',
}),
],
})
server.listen()
```
## License
[MIT License](https://marksteve.mit-license.org/)