Celestium

Open format

CEXF: an introduction

Start with CEXF at a glance

Files

The files of format version 1 live under /cexf/v1/ and never move. Compare the SHA-256 to check that your copy is intact.

  • CEXF-AT-A-GLANCE.md11.6 kB

    The overview, at a glance

    SHA-256 5c7dc7ca84c991063c90f71a24c61a9211ab50a9dc8b203e90760bcd269cc6a7

  • CEXF-SPECIFICATION.md206 kB

    The specification (normative)

    SHA-256 23720e57cb06ba24f0f210286cef1b566c0938fd722e31a0d00bcfbd3223eef0

  • CEXF-GUIDE.md229 kB

    The guide (informative)

    SHA-256 662d23307ea1ca408998d37927df585f481cd62582fb11b2a75cffd3ed6d6615

  • cexf-schema.json52.5 kB

    The JSON Schema

    SHA-256 2b55c78a97e9c85f35691ccea130556953ce9948cdba47c8d3045b71e75c8b21

  • cexf-test-vectors.json792 kB

    The test vectors

    SHA-256 2d0bdc975722a319d40a71de2b4c08112fa79694d5fd9c267ccd369eb575afb2

  • cexf-v1.zip240 kB

    Everything in one zip, with the Dutch and English introductions

    SHA-256 d73960e9ee6bf52b5a41128147d60fbb83146b6d2a6f6641b7b8f080491bd713

Read them on this site:Specification,Guide.

Describes format version 1.

CEXF is an open file format for astrology data. A .cexf file holds people, events, countries and organisations, with their charts and notes, as plain JSON. You can open it in any text editor. You can still read it in ten years. You can hand it to another program.

This page is an introduction. It is not the specification and it carries no field rules. If this page and the specification disagree, the specification governs.

Who it is for, and what you get

  • You use an astrology program and want your data to stay yours. CEXF gives you a file you can read yourself, move to another program and keep.
  • You build or maintain a program. CEXF gives you a documented format to read and write, a schema to check files with, and test documents to hold your reader up against. You do not need Celestium, and you do not need anyone's permission.
  • You convert data from another format. Appendix D of the guide says how nine other formats map onto CEXF and what is lost on the way.

Free to use

Anyone may write software that reads or writes .cexf files, for any purpose, without permission and without payment. The texts are under CC BY 4.0, the schema and the test vectors under CC0 (see "License" below).

A first file

This is the smallest usable file: one subject, one chart.

{
  "format": "cexf",
  "version": 1,
  "subjects": [
    {
      "id": 1,
      "displayName": "Anna Jansen",
      "charts": [
        {
          "sequence": 0,
          "time": {
            "utc": "1985-03-01T06:30:00Z",
            "timeZone": "Europe/Amsterdam",
            "localTime": "1985-03-01T07:30:00",
            "utcOffset": "+01:00"
          },
          "location": { "latitude": 52.3702, "longitude": 4.8952 }
        }
      ]
    }
  ]
}

That is all a birth chart needs. Everything beyond it is optional, and a reader that meets something it does not know never throws the whole file away.

Where to go next

You want Go to
A one-page overview: the data model, the main fields and a minimal file CEXF-AT-A-GLANCE.md
The rules, every field and every error case (normative) CEXF-SPECIFICATION.md
A quick start, the rationale, a full example and the test vectors explained CEXF-GUIDE.md
To check a file by machine cexf-schema.json
Documents that are demonstrably valid or demonstrably wrong, to try your own reader on cexf-test-vectors.json

If you are going to write software that reads or writes .cexf, start with the overview, then the quick start in the guide, and use the specification for every rule. This page deliberately holds no field names with rules attached, no ranges, no patterns and no error handling: two texts that carry the same rules drift apart, and then nobody can tell which one is right.

This page is at celestium.nl/en/cexf/. A Dutch version is at celestium.nl/cexf/. The files above live under https://celestium.nl/cexf/v1/, and the URLs under /cexf/v1/ never move.


Why this format exists

The data someone enters into an astrology program belongs to them. Names, birth details, notes, and often not even their own data but a client's. That information should not be locked inside the database of one program, readable only for as long as that one program keeps running on that one machine.

CEXF exists so that this data can move. To another installation of the same program, to an entirely different program, or to a file you can still open and read yourself in ten years, whether or not the program that wrote it still exists.

That purpose shows in three choices that would otherwise look arbitrary:

  • Readable JSON instead of a binary format. You should be able to open the file and make sense of it yourself, without the program that wrote it.
  • A published specification under a permissive license. A format that is not documented, or that may only be read with permission, can in practice only be read by its maker. For your data that is a second lock.
  • No calculated planet positions in the file. Those belong to a program's calculation step, not to your data. Carrying them would tie the file to one program's calculation engine instead of to the birth facts themselves.

What a file contains

A .cexf file is a single JSON object. At the top it says what it is and which version of the format it follows, and below that comes the data itself.

The core is a list of subjects. A subject is whatever a horoscope is about: a person, but also an event, a country or an organisation. Each subject has a list of charts: the birth chart itself, plus, optionally, derived charts such as a solar return, a direction or a composite.

A file can also carry folders, so that a folder structure comes along instead of everything landing in one heap, and notes, the annotations someone wrote on a person or on a chart.

A subject can also record the person's sex and carry vendor extensions of its own (relations, tags, other names), and a subject can be a standalone horary question. A chart can record where its data came from (a reliability rating, a class of source and a free text), on which clock and in which calendar the time was originally given (civil time, local mean time or local apparent time; Gregorian or Julian) and how much of the offset is summer time, whether its zodiac is tropical, sidereal (with a registered or a custom ayanamsa) or draconic, and from which point of view its positions are seen (geocentric, heliocentric, topocentric, barycentric or selenocentric). A place can carry a country code and a region. A note does not need a creation moment, and a composite or a synastry chart does not need a moment or a place of its own. Dates before 1 AD can be written. Besides returns, directions and composites, the derived chart kinds include life events and annual profections. A direction, a progression or a composite can also say which variant of the technique it was calculated with, and a chart can say which variant of the lunar node and of the Black Moon it used (mean or true node; mean, osculating or interpolated apogee). All of this is optional.

The smallest usable file is at the top of this page.


Design choices that deserve an explanation

These are the places where someone reading the format for the first time usually frowns. The rules themselves are in the specification; here you find the reason.

It is called subject, not person

A horoscope is by no means always about a human being. Astrologers cast charts for the founding of a company, for a country, for an earthquake or for the moment a question was asked. If the field were called person, each of those cases would become a small lie: you would fill in a person who is not a person, and the receiver would have no way to know what it was instead. As it is, the subject carries a kind of its own, and the rest of the file stays the same.

A calculation variant gets its own key, not a parameter

For a number of techniques there are variants that lead to a different chart. Take the minor progression, where one month stands for one year of life. It works with either the synodic month (29.53059 days) or the sidereal month (27.32166 days), and in the literature both go by the same name. Each gives a different chart.

Such variants therefore each get their own chart-type key, instead of one key with a parameter that says which variant it is. That spares the builder of a reader a whole class of mistakes: a key you do not know, you set aside with a notice, and that is exactly what should happen. A parameter you do not know is easily ignored, and then you import, without noticing, a different chart than the one that was meant.

This holds when there is no unambiguous standard value that a reader can fall back on, as with the month length above. Where such a standard exists, a parameter is enough. That is why the direction of a direction, forward or backward, is a parameter and not a pair of keys: every source examined that describes these techniques treats the backward variant together with the forward one, so a builder who has implemented the technique knows both.

A few choices are different. Programs offer them explicitly, side by side: how the age of a primary direction becomes an arc (the Ptolemy, Naibod or Cardan key, say), how aspects are measured, whether the ecliptic latitude counts, how the angles of a progressed chart follow, and how the houses of a composite follow. For these there are optional parameters with a register of names, and they have no default value. A file that leaves one out says nothing about the choice. A reader that meets that uses its own choice and tells the user. A reader that cannot calculate a variant that the file names also uses its own choice and tells the user. It does not guess in silence.

CEXF carries the input of a calculation and the technique that was chosen. It does not carry the whole calculation rule. How a program applies a technique in detail is its own business, the same way the ephemeris is.

direction is required for directions

A direction can run forward in time or backward. In the field these are called direct and converse, and the difference matters: the same person gets different aspects from it.

There is no default value and the field may not be missing. A reader that silently took "no value" to mean "direct" would deliver a wrong chart for every converse direction, with nobody having a reason to look. A chart that is skipped with a clear notice is better than a chart that looks right and is not.

The moment is recorded in several ways

A moment is recorded as absolute time in UTC, as the clock reading someone actually noted, as the offset that applied at that moment, and as a time zone identifier.

The redundancy is deliberate. The absolute time is what a program calculates with, and it never changes. The recorded clock reading is what the user once entered, and a receiving program must never quietly overwrite it with its own recalculation. That is where the risk lies, because time zone data from before 1970 is unreliable in many places. A program that "corrects" on the basis of such data suddenly shows the user a different birth time than they ever typed in, and nothing on screen explains why.

By storing both, nobody has to choose, and a reader can report a difference instead of silently letting one of the two win.

Calculated positions are not carried

Planet positions and house cusps are not in the file. They can be derived from the moment and the place, and every program does that itself, with its own ephemeris and its own settings. Sending them along would mean importing somebody else's calculations without ever finding out when they differ from your own.

The house system: no opinion is also a valid opinion

A chart may state which house system it should be drawn in, but it does not have to. If it is missing, that means "I have no opinion about it, decide for yourself", and explicitly not "use the usual default".

That distinction matters as soon as a file moves between two programs that handle it differently. In Celestium the house system is a setting you can switch at any moment, so leaving it blank is the accurate representation. In programs where it is fixed per chart the moment the chart is saved, that program is forced to pick something itself, with a fair chance that it is not what the user saw.

The node and the Black Moon: optional information

Programs calculate the lunar node and the Black Moon in different ways: the mean or the true node, and for the Black Moon the mean, the osculating or the interpolated apogee. A chart may say which variant its writer used (lunarNode, blackMoon), and it does not have to. A reader that keeps only one global setting for these points draws the chart with that setting, and tells the user only when the file names a different variant. A reader that keeps the variant per chart takes it over. The names in the register point at an exact calculation, because "Lilith" and "Black Moon" do not mean the same point in every program.

An invalid description does not fail the import

Names, notes, labels, the name of a time zone, the source of the data and the variants above only describe a record. If one of them is wrong (an empty name, a note with a date that does not exist, a value of the wrong type), the reader reports it, leaves that one member out and keeps the record. The subject and its charts do not go with it. A fault in what decides a chart, such as the moment, the place, the kind of chart or the zodiac, still costs the chart or the subject. Informative fields never make an import fail.

A lock on a folder is recorded, never carried

If the source has a code on a folder, the file says that there was a lock and nothing more. No password, no hashed form, no salt.

The reason is arithmetic. A four-digit PIN has ten thousand possibilities, and against a hashed form that travels with the file, each of them can be tried without anyone noticing. In a file that is meant to be passed on, including that hashed form would amount to including the code itself, while the person who set it believes otherwise.

Leaving it out silently is just as wrong. Someone who deliberately locks a folder should not discover that the lock evaporated along the way. Hence the middle road: the receiving side knows there was a lock and can ask for one. The reference implementation does this with an extra step in its import wizard, in which you can enter a new code per folder or leave the field empty.

Extensions get a namespace of their own

Every program knows things this format does not describe. Instead of pretending otherwise, there is room where a vendor can store its own data under its own name. A reader that does not know such a block leaves it alone and hands it back unchanged on the next export. That way someone who passes a file from hand to hand does not lose pieces of their data along the way.


A file carries personal data

A .cexf file carries personal data: names, birth data and notes, often of people other than you. Three kinds of content can reveal more than you mean to give away: the free text of notes, the tags and relations that a program stores in the extensions of a subject, and the names of life events. They can contain special categories of personal data in the sense of Article 9 of the GDPR, for example data about health, sexual life or religion. The format does not filter this content and cannot. What goes into a file, and where the file goes, is the responsibility of the person and the program that write and pass it on. For the same reason the format has no closed vocabulary for event types, tags or any other field in which a health condition could be named.


Two programs that are both called "Celestium"

This causes regular confusion when reading the specification, so here is the distinction up front.

Celestium is the astrology application itself. It does not use this format directly.

Celestium Exchange is the separate exchange program and, at the same time, the reference implementation of this format. It reads and writes .cexf files, and therefore knows concepts that the main application does not. Sometimes Celestium cannot show them either, and then the user should find out through a notice.

Where the specification says "Celestium", it means the application; where it says "Celestium Exchange", it means the exchange program.


Where to find what in the specification

The table points into the specification, except where it says "CEXF-GUIDE" (the guide, CEXF-GUIDE.md) or "CEXF-AT-A-GLANCE" (the overview, CEXF-AT-A-GLANCE.md).

You are looking for Look at
A one-page overview: the data model, the main fields and a minimal file CEXF-AT-A-GLANCE
What a reader and a writer must minimally support CEXF-GUIDE, Minimum support
The words must, should and may, what a reader and a writer owe, and what a notice is Conformance and conventions (before §1)
Basic principles and the root object §1, §2
Folders §3
Subjects, the kinds of subject (including a standalone horary question) and the difference between kind and chart type §4
The structure of a chart §5
All chart types and their parameters §6
Time, time zones, what wins on a conflict and what the time means for each chart type §7, §7.7
The clock the time was read on, calendars, years before 1 AD, and the summer-time part of the offset §7.9, §7.10, §7.11
Location, with country code and region §7a
Notes and text markup §7b
Zodiac (tropical, sidereal, draconic), ayanamsa, custom ayanamsa, house system, the variant of the node and the Black Moon, and the point of view of the positions §7c
Linked charts: parents and source charts §8
Extensions per vendor §9
Error handling (one outcome per situation, with precedence, and which members are informative) and versioning §10
Why positions and houses are missing §11
A quick start for builders CEXF-GUIDE, Quick start
A fully worked example file CEXF-GUIDE, §12
Test vectors, with the reason each one exists CEXF-GUIDE, §12a
Exporting: what you lose along the way §14
Reporting a gap or proposing an extension §15
Glossary CEXF-GUIDE, Glossary
Worked example files, one for each of several sections CEXF-GUIDE, Worked example files for the sections
Where the reference implementation does less than the format allows CEXF-GUIDE, Appendix A
Pitfalls when building a reader or writer, by programming language CEXF-GUIDE, Appendix B
Names of ayanamsas in other programs CEXF-GUIDE, Appendix C
How other formats map onto this one CEXF-GUIDE, Appendix D

License

Implementing this format (writing software that reads or writes .cexf files) requires no permission and no payment from the rights holder. Copyright protects the wording of the documents, not the format they describe.

© 2026 Timothy van der Ham. Rights holder: Timothy van der Ham.

The specification, the overview, the guide and the introductions. The specification, its overview CEXF-AT-A-GLANCE.md, its guide CEXF-GUIDE.md and the introductions to it (this page and its Dutch counterpart) are under CC BY 4.0 (SPDX-License-Identifier: CC-BY-4.0). You may share and adapt them for any purpose, including commercially, provided you give appropriate credit, link to the license and indicate whether you changed anything. A suitable credit names the document you use, with its title and its URL. For this page it reads: "CEXF: an introduction, © 2026 Timothy van der Ham, https://celestium.nl/en/cexf/, licensed under CC BY 4.0."

Code examples and JSON fragments in the texts, the schema and the test vectors are under CC0 1.0 (SPDX-License-Identifier: CC0-1.0). They exist to be copied, and an attribution requirement per file only creates friction there.

What this license does not cover. It covers only the texts and files named above. It does not cover the source code of Celestium or Celestium Exchange, to which no right is granted here. Nor does it reach into any .cexf file you create: a file with your own data or a client's is not covered in any direction, and this declaration makes no claim of any kind on such a file.

Names. Product names in these texts are trademarks of their owners and are used only to say what they are. "CEXF" and "Celestium" are names of the rights holder's format and programs. They are not licensed: the license gives no right to use either name for a product of your own or to suggest that the rights holder endorses it. Saying that your software reads or writes CEXF is fine.

People in the examples. All persons in the examples and in the test vectors are fictitious. Any likeness to a real person is accidental.

The full, binding license declaration is in CEXF-SPECIFICATION.md.


Where to find the original

This format is published on celestium.nl. The specification, the overview, the guide, the schema and the test vectors of version 1 live under https://celestium.nl/cexf/v1/. This introduction is at https://celestium.nl/en/cexf/, and the Dutch one at https://celestium.nl/cexf/. The URLs under /cexf/v1/ never move, and a new version of the format gets a new path. If you come across this file loose somewhere, copied into another project or forwarded as an attachment, you will find the original there, along with any newer versions.