---
title: Index Stores | Developer Documentation
---

Index stores are underlying storage components that contain metadata(i.e. information created when indexing) about the [index](/typescript/framework/modules/data/data_index/index.md) itself.

## Available Index Stores

- [SimpleIndexStore](/typescript/framework-api-reference/classes/simpleindexstore/index.md): A simple in-memory index store with support for [persisting](/typescript/framework/modules/data/stores#local-storage/index.md) data to disk.
- [PostgresIndexStore](/typescript/framework-api-reference/classes/postgresindexstore/index.md): A PostgreSQL index store, , see [PostgreSQL Storage](/typescript/framework/modules/data/stores#postgresql-storage/index.md).

Check the [LlamaIndexTS Github](https://github.com/run-llama/LlamaIndexTS) for the most up to date overview of integrations.

## Using PostgreSQL as Index Store

```
npm i llamaindex @llamaindex/postgres
```

You can configure the `schemaName`, `tableName`, `namespace`, and `connectionString`. If a `connectionString` is not provided, it will use the environment variables `PGHOST`, `PGUSER`, `PGPASSWORD`, `PGDATABASE` and `PGPORT`.

```
import { Document, VectorStoreIndex, storageContextFromDefaults } from "llamaindex";
import { PostgresIndexStore } from "@llamaindex/postgres";


const storageContext = await storageContextFromDefaults({
  indexStore: new PostgresIndexStore(),
});
```

## API Reference

- [BaseIndexStore](/typescript/framework-api-reference/classes/baseindexstore/index.md)
