GitHub - anoushk1234/anchor-prisma-transpiler: A transpiler that convert your anchor programs idl to a prisma schema

1 min read Original article ↗

Sqlana ⚡️

Introduction

Let's say you wrote a solana program using anchor, now you want to build a dapp, you have two options either use an indexer and rely on your contract for data or have a database and api. Both approaches require a database schema~

Introducing Sqlana ⚡️

A transpiler for all our schemas.
Anchor program IDL -> Prisma Schema △
Anchor program IDL -> SQL Schema 💿
Anchor program IDL -> Graphql Schema 🕸

Currently this works with Prisma Schema but we want to add support for more.

Demo

Demo Video

Quickstart

  • yarn install
  • Add the idl json file in idl.json
  • yarn setup (only for first time otherwise yarn start)

Support this project on anoushk.sol or wagmi.bio/anoushk