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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@resumerealm/open-resume-format

v0.0.1

Published

Open Resume Format (ORF) is a standard based on JSON for representing resume (CV) data

Downloads

2

Readme

Open Resume Format (ORF)

ORF is a simple, open, and human-readable format for resumes. It is designed to be easy to read and write, and to be easily converted to other formats.

TS types

This repo includes TS types for ORF files, which can be found in src/version/YYYY-MM-DD/resume.d.ts.

Resume type

Example resume type from 2023-04-28 looks like below:

interface Resume {
  /**
   * The version of resume schema in format of date (YYYY-MM-DD)
   */
  version: string;
  
  professionalSummary: ProfessionalSummary;
  
  dataProcessingPermission: DataProcessingPermission;
  
  personalInformation: PersonalInformation;
  
  experience: Experience;
  
  education: Education;
  
  certifications: Certifications;
  
  projects: Projects;
  
  languages: Languages;
  
  skills: Skills;
  
  awardsAndHonors: AwardsAndHonors;
  
  volunteerExperience: VolunteerExperience;
  
  references: References;
  
  /**
   * Additional attributes of the resume, used also for custom plugins configuration
   */
  attributes: {
    [k: string]: unknown;
  };
  
}

Examples

Resume type for specific version can be imported like this:

import type { Resume } from '@resumerealm/open-resume-format/lib/version/2023-04-28/resume.schema';

const myResume: Resume = {
    // ...
};

for latest version you can use latest instead of version:

import type { Resume } from '@resumerealm/open-resume-format/lib/version/latest/resume.schema';

const myResume: Resume = {
    // ...
};

You can also import versions or version date format, same date format is used across schema:

import {
    // date format
    DATE_VERSION_FORMAT,
    // array of all available versions
    openResumeVersions,
    // latest version
    openResumeLatestVersion,
} from '@resumerealm/open-resume-format';

// You can also import type of all available versions
import type {
    OpenResumeVersion
} from '@resumerealm/open-resume-format';

If you want to know the latest version of the schema

Schema

this repo includes a schema for ORF files, which can be found in src/version/YYYY-MM-DD/resume.schema.json alongside the TS typings for the ORF version. TS types are generated from the schema.

The schema is written in JSON Schema, and can be used to validate ORF files.

Example

npm i ajv ajv-formats @resumerealm/open-resume-format
import addFormats from "ajv-formats"
import Ajv from "ajv";
import { getSchema } from '@resumerealm/open-resume-format';

const ajv = new Ajv();
addFormats(ajv);

async function main() {
    const fakeResumeObject = {};
    // schema is versioned by date, so you can provide any date and it will return the closest schema
    const schema = await getSchema('2023-04-29');
    // or 'latest' to get the latest schema
    // const schema = await getSchema('latest');
    const validate = ajv.compile(schema);
    const valid = validate(fakeResumeObject);
    
    if (!valid) {
        console.log('invalid data');
        return;
    }
    
    console.log('valid data');
}

main();

Contributing

Contributions are welcome :)

Adding a new version

just copy-paste the latest version folder from src/version/YYYY-MM-DD, change date to today's and update the json schema, everything else is autogenerated from the schema. Run the below command to generate types, utils and build the project:

npm run build:all

TODO

  • [ ] add tests for each version