narasimha
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

Narasimha


WARNING: This project is in a very early stage and not yet ready for production use. I'm in the process of extracting code from Churros' API documentation package and turning it into a library.


A collection of functions and Svelte components to easily build a documentation site for a GraphQL API.

Getting Started

Create your website by using our template:

yarn create narasimha my-docs-site

Using the utility functions to get schema information

You can, in the e.g. load function of a SvelteKit page, use the utility functions to get schema information:

import { schemaUtils } from 'narasimha';
import { schema } from '$lib/schema';
export async function load({ params }) {
	return { query: schemaUtils.findQueryInSchema(schema, params.query) };
}

Using the UI components directly

You can also use the components directly in an existing Svelte(Kit) project:

<script>
    import { Query } from 'narasimha';
    export let data: PageData;
</script>

<Query query={data.query}>

Readme

Keywords

none

Package Sidebar

Install

npm i narasimha

Weekly Downloads

1

Version

0.0.6

License

MIT

Unpacked Size

85.7 kB

Total Files

68

Last publish

Collaborators

  • ewen-lbh