npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@talendant/json-schema-to-es-index

v0.0.5

Published

Support translation of json schema to es index

Readme

= json-schema-to-es-index(1) Talendant, LLC v0.0.1 :doctype: manpage :manmanual: JSON-SCHEMA-TO-ES-INDEX :mansource: JSON-SCHEMA-TO-ES-INDEX :man-linkstyle: pass:[blue R < >]

== Name

json-schema-to-es-index - converts a Json Schema schema to an elastic search index

== Synopsis

json-schema-to-es-index [OPTION]...

== Options

-o, --out-file=OUT_FILE:: Write result to file OUT_FILE.

-s, --source=SOURCE_FILE:: The Json schema file to use as input OUT_FILE.

== Exit status

0:: Success. Elastic search index successfully generated

127:: Failure. Elastic search index failed to generate

== Description

This is an early release geared towards the needs of Talendant. We did just enough work to support our use case and will add more as we get drivers. We think its relatively complete at the moment, but use it at your own risk.

Most JSON Schema structures are supported, when one is not supported an error is emitted.

The default mappings generally work. When the a specific default needs to be overridden you can add a type decoration to the description to override the generated type. Type descriptions follow the format @es: followed by the elastic search type. For example, to override location element and have it be indexed as a geo_point, you add the @es:geo_point type decoration to the json schema.

[source, json]

{ $id: 'https://talendant.com/csv-import.json', $schema: 'http://json-schema.org/draft-07/schema#', title: 'candidate', description: 'Defines the format of a parsed csv file', type: 'object', required: ['name', 'location', 'uniqueIdentifiers'],

properties: { name: { type: 'string', description: 'The name of the candidate.', }, uniqueIdentifiers: { $ref: '#/definitions/identifiers' }, location: { description: '@es:geo_point', properties: { lat: { type: 'number', description: 'The latitude of the ponit', }, lon: { type: 'number', description: 'The longitude of the point', }, }, additionalProperties: false, }, skills: { type: 'array', items: { type: 'string' }, }, history: { type: 'array', items: { $ref: '#/definitions/historyEntry' }, }, }, additionalProperties: false, definitions: { historyEntry: { type: 'object', properties: { username: { description: '@es:keyword', type: 'string' }, changedOn: { description: '@es:date', type: 'string', format: 'date-time', }, }, }, identifiers: { type: 'object', properties: { github: { description: '@es:keyword', type: 'string' }, gitlab: { description: '@es:keyword', type: 'string' }, twitter: { description: '@es:keyword', type: 'string' }, linkedin: { description: '@es:keyword', type: 'string' }, }, additionalProperties: false, }, }, }

== Resources

Project web site: http://pages.gitlab.com/json-schema-to-es-index

== Copying

Copyright (C) 2019 {author}. + Free use of this software is granted under the terms of the MIT License.